173 reputation
6
bio website youtu.be/dQw4w9WgXcQ
location Ireland
age
visits member for 2 years, 1 month
seen Jul 8 at 21:33

Web development intern. Software development hobbyist. Command-line junkie. Closet genius.


May
14
awarded  Autobiographer
Oct
5
awarded  Scholar
Oct
5
accepted Is OpenGL 1.x deprecated?
Oct
5
awarded  Student
Oct
5
comment Is OpenGL 1.x deprecated?
Related: gamedev.stackexchange.com/questions/37369/…
Oct
5
comment Is OpenGL 1.x deprecated?
Thanks, that helps a lot. In my case, it should be quite easy to migrate since I have an abstraction layer above all the OpenGL-specific code. On the note of Apple, you guys are saying that there's no OGL1.4 on OSX?
Oct
5
revised Is OpenGL 1.x deprecated?
deleted 3 characters in body
Oct
5
asked Is OpenGL 1.x deprecated?
Oct
4
comment Using glReadBuffer/glReadPixels returns black image instead of the actual image only on Intel cards
Maybe you need to read from the GL_BACK buffer? The OpenGL manpages says that's the default for double-buffered mode. But for reference, the above code (with GL_FRONT or GL_BACK) did work on my Intel HD card.
Oct
4
comment pointers to member functions in an event dispatcher
@derivative The free function approach is just using function pointers. What Neil is saying is to include a userdata parameter, e.g. have a static member function static void MyClass::Handler( Event* event, void* userdata ). Inside it, cast userdata to MyClass. It will then have access to MyClass's internals. But you'll also need to store the userdata argument along with the callback: dispatcher->setCallback( &MyClass::Handler, (void*)myClassObj );. You can even have the static callback invoke a private member: ((*MyClass)userdata)->RealHandler(event);. It's ugly but it works
Oct
4
revised What should I worry about when changing OpenGL origin to upper left of screen?
added 106 characters in body
Oct
4
revised What should I worry about when changing OpenGL origin to upper left of screen?
added 106 characters in body
Oct
4
awarded  Editor
Oct
4
revised What should I worry about when changing OpenGL origin to upper left of screen?
added 327 characters in body
Oct
4
awarded  Teacher
Oct
4
answered What should I worry about when changing OpenGL origin to upper left of screen?
Oct
4
answered Trying to figure out SDL pixel manipulation?
Oct
4
awarded  Supporter