entity system!
This commit is contained in:
@@ -77,19 +77,25 @@ namespace Game
|
||||
}
|
||||
};
|
||||
|
||||
struct RenderState
|
||||
struct Model
|
||||
{
|
||||
bgfx::VertexBufferHandle VertexBuffer;
|
||||
bgfx::IndexBufferHandle IndexBuffer;
|
||||
bgfx::VertexLayout VertLayout;
|
||||
};
|
||||
|
||||
struct Material
|
||||
{
|
||||
bgfx::ProgramHandle Shader;
|
||||
uint64_t State = 0;
|
||||
};
|
||||
|
||||
class GameRendering
|
||||
{
|
||||
private:
|
||||
bgfx::VertexLayout VertLayout;
|
||||
bgfx::VertexBufferHandle VertexBuffer;
|
||||
bgfx::IndexBufferHandle IndexBuffer;
|
||||
bgfx::ProgramHandle Shader;
|
||||
Material Materials[8];
|
||||
Model Models[8];
|
||||
BgfxCallback Callback;
|
||||
RenderState State;
|
||||
public:
|
||||
void Setup();
|
||||
void Update();
|
||||
|
||||
Reference in New Issue
Block a user