mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
32 lines
782 B
C++
32 lines
782 B
C++
#pragma once
|
|
|
|
#include "lc_mesh.h"
|
|
#include "lc_array.h"
|
|
|
|
class lcScene
|
|
{
|
|
public:
|
|
lcScene();
|
|
|
|
void Begin(const lcMatrix44& ViewMatrix);
|
|
void End();
|
|
void AddMesh(lcMesh* Mesh, const lcMatrix44& WorldMatrix, int ColorIndex, lcRenderMeshState State, int Flags);
|
|
|
|
void AddInterfaceObject(const lcObject* Object)
|
|
{
|
|
mInterfaceObjects.Add(Object);
|
|
}
|
|
|
|
void Draw(lcContext* Context) const;
|
|
void DrawInterfaceObjects(lcContext* Context) const;
|
|
|
|
protected:
|
|
void DrawRenderMeshes(lcContext* Context, int PrimitiveTypes, bool EnableNormals, bool DrawTranslucent, bool DrawTextured) const;
|
|
|
|
lcMatrix44 mViewMatrix;
|
|
lcArray<lcRenderMesh> mRenderMeshes;
|
|
lcArray<int> mOpaqueMeshes;
|
|
lcArray<int> mTranslucentMeshes;
|
|
lcArray<const lcObject*> mInterfaceObjects;
|
|
bool mHasTexture;
|
|
};
|