How can I get a jpeg picture's array of pixels to memory and draw it by OPGL function?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
How can I get a jpeg picture's array of pixels to memory and draw it by OPGL function?Thanks a lot!:)
i assume u mean OpenGL by OPGL. it is quite easy, you open the jpeg file, decompress it (there are a lot of articles about that on codeproject) and then you create a texture with it and put it on a 3d object, e.g. a cube, or a triange, etc. Don't try it, just do it! ;-)