Engine update

This commit is contained in:
2026-02-26 14:46:29 +03:00
parent fcba7d9035
commit 2539ceee03
33 changed files with 1677 additions and 180 deletions

View File

@@ -28,31 +28,26 @@ public:
void SetViewMatrix(const glm::mat4& matView);
void SetProjectionMatrix(const glm::mat4& matProjection);
inline const glm::mat4& GetViewMatrix() { return m_ViewMatrix; }
inline const glm::mat4& GetProjectionMatrix() { return m_ProjectionMatrix; }
inline const glm::mat4& GetViewMatrix() { return m_viewMatrix; }
inline const glm::mat4& GetProjectionMatrix() { return m_projectionMatrix; }
void LoadSceneXML(const char* filename);
SDL_GLContext GetGLContext() { return m_pGLContext; }
private:
glm::mat4 m_ViewMatrix;
glm::mat4 m_ProjectionMatrix;
glm::mat4 m_viewMatrix;
glm::mat4 m_projectionMatrix;
SDL_Window* m_pWindow;
SDL_GLContext m_pGLContext;
GPUBuffer* m_pStretchedPicVBuf;
std::string m_sceneFilename;
std::string m_sceneName;
Model* m_sceneModel;
bool m_bUsingVAO;
bool m_usingVAO;
};
extern Render* g_pRender;
extern Render* g_render;
// TEMP
extern glm::vec3 g_viewOrigin;