JoshuaBrookover / bigg

bgfx, imgui, glfw, glm
The Unlicense
224 stars 35 forks source link

removed hardcoded opengl renderer type and updated cubes example #10

Closed widberg closed 5 years ago

widberg commented 5 years ago

I removed the hard coded OpenGL RendererType in bigg.cpp and replaced it with the type parameter which is RendererType::Count by default. The cubes example has been updated to load the shaders based on the selected RendererType. I used loadShader from the bgfx examples for reference. Both examples have been tested on Windows, Mac, and Linux without any issues.