|
|
|
@ -40,6 +40,7 @@ doRenderLoop(render_state* rs, frame_callback_fn callback_fn) |
|
|
|
|
|
|
|
|
|
|
|
callback_fn(rs); |
|
|
|
callback_fn(rs); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: need to implement new roDraw() and call from renRenderFrame()
|
|
|
|
renRenderFrame(rs); |
|
|
|
renRenderFrame(rs); |
|
|
|
SDL_GL_SwapWindow(rs->handles.window); |
|
|
|
SDL_GL_SwapWindow(rs->handles.window); |
|
|
|
frameTime = SDL_GetTicks() - frameStart; |
|
|
|
frameTime = SDL_GetTicks() - frameStart; |
|
|
|
@ -66,7 +67,7 @@ main() |
|
|
|
entity spaceship = group_1->entities[0]; |
|
|
|
entity spaceship = group_1->entities[0]; |
|
|
|
|
|
|
|
|
|
|
|
// TODO: this should be handled in entInit
|
|
|
|
// TODO: this should be handled in entInit
|
|
|
|
entSetWorldPosition(spaceship, 0, 0, 0); |
|
|
|
entSetWorldPosition(spaceship, glm::vec3(0, 0, 0)); |
|
|
|
entScale(spaceship, glm::vec3(20, 20, 20)); |
|
|
|
entScale(spaceship, glm::vec3(20, 20, 20)); |
|
|
|
// TODO: implement setting rotation from entity
|
|
|
|
// TODO: implement setting rotation from entity
|
|
|
|
//spaceship.rotation = glm::vec4(0, 0, 0, 0);
|
|
|
|
//spaceship.rotation = glm::vec4(0, 0, 0, 0);
|
|
|
|
|