increase Texture details


i am using devil with OpenGL for loading textures. my problem is in the bad quality of sowed textures in my app (not all of the details of texture shown and most of the texel’s color combine together )

what can i do for improving this problem?

Don’t use devil. It messes up your textures if the dimensions are not a power of 2 in size.


i must use devil.
what can i do?

You can use ilGetData() to get access to the image pixels and then load these pixels into a target of GL_TEXTURE_2D (if your card supports GL_TEXTURE_NON_POWER_OF_2) or GL_TEXTURE_RECTANGLE.