5 ms·
Glitter – Dead-simple boilerplate for OpenGL
- DanAndersen 11y agoTo help improve my OpenGL/graphics knowledge, I've started going through GPU Gems ( https://a248.e.akamai.net/f/248/10/10/http.developer.nvidia.com/GPUGems/gpugems_part01.html https://a248.e.akamai.net/f/248/10/10/http.developer.nvidia.... ) and building my own examples of the concepts in each chapter. I was very happy to find Glitter recently, as it made the obnoxious hurdle of setting up all the dependencies unnecessary. Also, setting up Glitter was what led me to finally "getting" what CMake was for and how it fit into a development pipeline.
- Polytonic 11y agoYeah, CMake is a bit of a complicated beast to "learn" so to speak. I spent a fair number of hours pulling my hair out trying to get it working. This is the result! Hope you find it helpful!
- santaclaus 11y agoIs there a particular reason you choose to explicitly add CXX flags ('-std=c++11') over CMake's compiler feature support? The later is, in principle, more portable and future proof than hardcoding the flags.
- Polytonic 11y agoThis was asked in an issue earlier today. It's a combination of 1) I didn't even know such flags existed! and 2) I had some compatibility issues with older versions of CMake on my test machines. I'll look into adding it in the future though!
- santaclaus 11y agoSuper cool! How does this compare to the (now mostly defunct) GLUT?
- Polytonic 11y agoGLUT is a windowing library. GLFW3, SDL, SFML mostly replace everything it does in terms of windowing and input. :)
- Polytonic 11y agoThis might be easier on the eyes for people as well: http://polytonic.github.io/Glitter/ http://polytonic.github.io/Glitter/ Looks a bit prettier than the default GitHub repository page anyway.
- ronjouch 11y agoNeat, thanks for your work! Newbie interested in OpenGL here, I followed the instructions but get a segfault, any idea? I pasted my session at http://pastebin.com/hxXauQSQ http://pastebin.com/hxXauQSQ
- shadowmint 11y agoFYI one of the lesser known features of cmake is that it can invoke your build tool as well: cmake .. cmake --build . This smartly invokes make/ninja/msbuild or whatever directly from the command line; very useful on windows machines or to have 'universal' cmake runners for CI that touches multiple platforms. (Also, tutorials; `cmake .. && cmake --build .` should smartly determine the correct compiler for the system and build it; you don't need the -G "FOO" stuff unless you're specifically doing something fancy)
- Polytonic 11y agoTIL! This is awesome! I never knew about this. What does it do under Windows? Does it run say, devenv.exe/msbuild in the shell, as opposed to in Visual Studio?
- shadowmint 11y agoYes, that's exactly what it does, if you're using the VS backend (which is the default). (So you can actually be in 100% console mode in windows if you want and never launch VS. :)
- deleted 11y ago[deleted]
- Polytonic 11y agoBy "developer" is this from the perspective of say, a company looking to use Glitter as a starting point for something? Glitter started off as a quickstart for students taking Computer Graphics related classes at my school, not as the foundation for writing commercial game engines. Was there something in mind that you feel like is missing? I'm happy to add to the readme.