SDL 2.0 OpenGL textures. |
razerwolf
|
The last two arguments to SDL_GL_BindTexture aren't for passing data in, it is for passing data out, because on systems that support the GL_ARB_texture_rectangle OpenGL Extension the texture coordinates won't be in the range of 0.0-1.0 but in 0.0 to width/height
so rectangle drawing code should look something like this:
|
|||||||||||||
|