7cbe8acf30
Now the code is being compiled through .lib files!
34 lines
477 B
C++
34 lines
477 B
C++
#pragma once
|
|
|
|
#include <charcoal/Scene.h>
|
|
|
|
#include "MyBasicShaderProgram.h"
|
|
|
|
using namespace charcoal;
|
|
|
|
class MyBasicScene : public Scene
|
|
{
|
|
public:
|
|
MyBasicScene(Application& application);
|
|
~MyBasicScene();
|
|
|
|
void init() override;
|
|
|
|
void use() override;
|
|
|
|
void unuse() override;
|
|
|
|
void update(float delta_time, clock_t clock) override;
|
|
|
|
void prerender() override;
|
|
|
|
void render() override;
|
|
|
|
private:
|
|
MyBasicShaderProgram m_shader_program;
|
|
|
|
GLuint m_vbo;
|
|
GLuint m_vao;
|
|
};
|
|
|