40617c8953
to specify the batch pipeline specified at StackOverflow See https://stackoverflow.com/questions/8923174/opengl-vao-best-practices#8923298
33 lines
419 B
C++
33 lines
419 B
C++
#pragma once
|
|
|
|
#include <time.h>
|
|
|
|
#include "Scene.h"
|
|
|
|
#include "MyShaderProgram.h"
|
|
|
|
#include "MyTriangle.h"
|
|
|
|
class MySimpleScene :
|
|
public Scene
|
|
{
|
|
public:
|
|
MySimpleScene();
|
|
~MySimpleScene();
|
|
|
|
void init() override;
|
|
|
|
void use() override;
|
|
|
|
void unuse() override;
|
|
|
|
void update(float delta_time, clock_t clock) override;
|
|
|
|
void render() override;
|
|
|
|
private:
|
|
MyShaderProgram m_shader_program;
|
|
MyTriangle m_triangle;
|
|
};
|
|
|