Using OpenGL

Darren via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 15 12:03:22 PDT 2016


On Thursday, 15 September 2016 at 02:11:03 UTC, Mike Parker wrote:
> //snip

Okay the crashing was my fault, more or less a copy-paste error.  
The program now runs but has a black rectangle where a texture 
should be.

This is the code I'm using: 
https://dfcode.wordpress.com/2016/09/15/texcodewip/
(The code for the shaders is at the bottom)

For comparison, this is the code I'm trying to make work:
http://www.learnopengl.com/code_viewer.php?code=getting-started/textures


More information about the Digitalmars-d-learn mailing list