add opengl code

This commit is contained in:
2025-11-22 12:10:46 +08:00
parent 36f886b189
commit d24ca28e74
31 changed files with 745 additions and 32 deletions

View File

@ -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;
};