Using OpenGL

Darren via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 14 09:49:51 PDT 2016


Kind of resurrecting this thread; hope that's okay.

I'm working through this tutorial: 
http://www.learnopengl.com/#!Getting-started/Textures

It uses SOIL to load images, but I haven't seen any SOIL bindings 
in dub.  I tried using SDL and SDL_Image but when the program ran 
it just crashed.  I guess I was doing something wrong.

While googling, the idea seemed to be to create and SDL_Surface* 
and pass that (or surface.pixels) as the last argument for 
glTexImage2D.  Didn't work for me, however.

Does anyone have any tips?


More information about the Digitalmars-d-learn mailing list