add opengl code
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
|
||||
#ifndef DEMOLAYER_H
|
||||
#define DEMOLAYER_H
|
||||
#include "Prism/Core/Layer.h"
|
||||
|
||||
#include "Prism.h"
|
||||
|
||||
class DemoLayer : public Prism::Layer
|
||||
{
|
||||
@ -21,6 +21,10 @@ public:
|
||||
|
||||
private:
|
||||
float m_ClearColor[4] = { 0.2f, 0.2f, 0.2f, 1.0f };
|
||||
|
||||
std::unique_ptr<Prism::VertexBuffer> m_VertexBuffer;
|
||||
std::unique_ptr<Prism::IndexBuffer> m_IndexBuffer;
|
||||
std::unique_ptr<Prism::Shader> m_Shader;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user