compact library for creating window + OpenGL context + input handling?

Trass3r un at known.com
Mon Jan 9 05:13:41 PST 2012


>> Basically something like the SFML Window module, but written in D and
>> working on Windoze/Linux.
>
> GLFW, if all you need is OpenGL (heck, even GLUT maybe).

Isn't GLUT more or less dead and/or usage discouraged?
Hmm GLFW seems to be no better than SDL.


> Is there any reason, though? SDL is not dead anymore, and its API is
> being rewritten with 1.3 (aka SDL2).

SDL in its current form is heavily flawed.
Who knows when the new one will be ready.
And it especially still lacks important functionality:

"
Required
Sam: Add support for render targets
Sam: Add support for OpenGL context profiles
"


> Or do you mean written completely in D?
> (Can't think of anything, maybe GLFW would be (relatively) simple to  
> rewrite?)

Yep written in D.
Object-oriented, modular, no external dependencies.

btw, just remembered there's a basic window creation module and input  
handling code at  
https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/simpledisplay.d
Could be better though.


More information about the Digitalmars-d mailing list