passthrough of rendered objects to renderer

This commit is contained in:
Ben Kyd
2019-07-29 05:47:12 +01:00
parent 553f610413
commit 7f53c6714a
7 changed files with 63 additions and 8 deletions

View File

@@ -45,7 +45,22 @@ bool InfernoEngine::InitWindow(int xRes, int yRes) {
return true;
}
void InfernoEngine::SetScene(Scene* scene) {
m_scene = scene;
}
void InfernoEngine::SetCamera(Camera* camera) {
m_camera = camera;
}
void InfernoEngine::AutoInitCamera() {
// set up a camera
}
void InfernoEngine::Ready() {
if (!m_camera || !m_scene) return;
m_renderer->InitRender(m_camera, m_scene);
if (!m_initialized) m_initialized = true;
}