Browse Source

should probably actually check for init errors

testing
cinnaboot 6 years ago
parent
commit
3c1d9728e9
  1. 7
      examples/assimp_loading/main.cpp
  2. 4
      examples/hello_world/main.cpp

7
examples/assimp_loading/main.cpp

@ -56,8 +56,13 @@ int
main()
{
render_state* rs = renInit("assimp loading");
meInitAssimp();
if (rs == nullptr) {
LOG(Error) << "Error Initialzing renderer\n";
return 1;
}
meInitAssimp();
// TODO: this needs to be more convenient
rs->render_groups = renAllocateGroup(1, *rs->default_shader);
rs->render_group_count = 1;

4
examples/hello_world/main.cpp

@ -8,6 +8,10 @@ int
main()
{
render_state* rs = renInit();
if (rs == nullptr)
return 1;
const uint TARGET_FPS = 60;
const uint FRAME_DELAY = 1000 / TARGET_FPS;
uint frameStart, frameTime;

Loading…
Cancel
Save