News for hackers. Stuff that matters.
Re:Glitter – Dead-simple boilerplate for OpenGL by shadowmint on Saturday August 29, 2015 @10:22PM (#10142052)
FYI 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)

Re:Glitter – Dead-simple boilerplate for OpenGL by Polytonic on Saturday August 29, 2015 @10:34PM (#10142078)
TIL! 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?

Re:Glitter – Dead-simple boilerplate for OpenGL by shadowmint on Saturday August 29, 2015 @10:36PM (#10142083)
Yes, 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. :)

Re:Glitter – Dead-simple boilerplate for OpenGL by DanAndersen on Saturday August 29, 2015 @05:22PM (#10141389)
To 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.... ) 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.

Re:Glitter – Dead-simple boilerplate for OpenGL by Polytonic on Saturday August 29, 2015 @06:12PM (#10141522)
Yeah, 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!

Re:Glitter – Dead-simple boilerplate for OpenGL by santaclaus on Saturday August 29, 2015 @06:41PM (#10141599)
Is 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.
Re:Glitter – Dead-simple boilerplate for OpenGL by Polytonic on Saturday August 29, 2015 @07:01PM (#10141643)
This 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!

Re:Glitter – Dead-simple boilerplate for OpenGL by Polytonic on Saturday August 29, 2015 @06:18PM (#10141541)
This might be easier on the eyes for people as well: http://polytonic.github.io/Glitter/

Looks a bit prettier than the default GitHub repository page anyway.

Re:Glitter – Dead-simple boilerplate for OpenGL by ronjouch on Saturday August 29, 2015 @09:19PM (#10141937)
Neat, 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

Re:Glitter – Dead-simple boilerplate for OpenGL by Polytonic on Saturday August 29, 2015 @09:22PM (#10141941)
Hi, can you open a GitHub issue for this? Would prefer to keep problems centralized to the repository.
Re:Glitter – Dead-simple boilerplate for OpenGL by ronjouch on Saturday August 29, 2015 @09:28PM (#10141951)
Sure, will do, I was just thinking it was some error of mine.
Re:Glitter – Dead-simple boilerplate for OpenGL by Polytonic on Saturday August 29, 2015 @10:22PM (#10142053)
Hey, I noticed you haven't actually opened an issue. Did you work through your problem or ...?
Re:Glitter – Dead-simple boilerplate for OpenGL by ronjouch on Saturday August 29, 2015 @11:46PM (#10142202)
Sorry, got busy just after posting. Here's a GitHub issue: https://github.com/Polytonic/Glitter/issues/8
[deleted]
Re:Glitter – Dead-simple boilerplate for OpenGL by Polytonic on Saturday August 29, 2015 @11:16PM (#10142154)
By "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.

Re:Glitter – Dead-simple boilerplate for OpenGL by santaclaus on Saturday August 29, 2015 @06:10PM (#10141512)
Super cool! How does this compare to the (now mostly defunct) GLUT?
Re:Glitter – Dead-simple boilerplate for OpenGL by Polytonic on Saturday August 29, 2015 @06:12PM (#10141519)
GLUT is a windowing library. GLFW3, SDL, SFML mostly replace everything it does in terms of windowing and input.

:)