Why I draw an png image using glDrawPixels() can't work well?

Started by wdl7770016, August 06, 2012, 03:12:27

Previous topic - Next topic

Evil-Devil

Bind order, draw order? You only bind one texture inside your example code.

Binding the texture just sets the opengl state. Its like taking a key for the lock.
Actually i don't know if the bind method will enable GL_TEXTURE_2D by itself. Just give it a try, but you might not want to depend on it.

I can post an example when i'm home. MAybe that will make some things more clear :)

wdl7770016

Quote from: Evil-Devil on August 09, 2012, 18:03:13
Bind order, draw order? You only bind one texture inside your example code.

Binding the texture just sets the opengl state. Its like taking a key for the lock.
Actually i don't know if the bind method will enable GL_TEXTURE_2D by itself. Just give it a try, but you might not want to depend on it.

I can post an example when i'm home. MAybe that will make some things more clear :)

Thx wait for you