Unable to load 2D texture

Started by
12 comments, last by mr_mo 15 years, 10 months ago
GL_GENERATE_MIPMAP is supported by everything. This became core in GL 1.4
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);
Advertisement
Thank you for the help.
I've tested the texture I use with NeHe Lesson 06(C# version) and the texture works fine.

I've also tried gluBuild2DMipmaps as well but nope. I'm looking at a working 2D texture source but I just can't figure out what I'm missing. I might have to start from scratch using that as a guide, which I don't mind.

Btw, can I use particles in 2D? or must I disable 2D and then enable 3D?

Edit:
I got it to work :D. Thanks for all your help guys :).

[Edited by - mr_mo on June 29, 2008 6:01:00 PM]
Quote:Original post by mr_mo
Edit:
I got it to work :D. Thanks for all your help guys :).

For posterity, what was the solution?
I just followed SDL's OpenGLFont guide. It contained a class that converted 2D surfaces to textures.

This topic is closed to new replies.

Advertisement