Non power of 2 texture woes...
Take a look at the SDL_ttf/OpenGL demo I put in the AGL forum. It deals with making a nonpower-of-2 image into a power of two one, and rendering it correctly. SDL_ttf OpenGL
Or :)
Should do it I guess :P ( Works fine for me )
// Check for some extensions. Extensions = strdup((char*)glGetString(GL_EXTENSIONS)); if (strstr("GL_ARB_texture_rectangle", Extensions) == 0) { TextureType = GL_TEXTURE_RECTANGLE_ARB; } else { TextureType = GL_TEXTURE_2D; DoYourPowerOf2FunctionThingHere(); }
Should do it I guess :P ( Works fine for me )
Thanks everybody for the feedback. Like I have said, and what is fairly obvious from my post, I am realy kinda new to OpenGL. I have played with it in the past, but I never even got as far as lighting. I did some texture stuff, but that was about it for 3d. I will look into loading and checking for the extension.
Again, thanks.
Again, thanks.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement