openGL can read an bmf picture or another picture ????
-
No, OpenGL cannot load any images on its own, you will need to use an external library for that (for instance DevIL or FreeImage or maybe GLUT). But I don't know if these libraries support bmf because I never heard of that format.
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++ -
No, OpenGL cannot load any images on its own, you will need to use an external library for that (for instance DevIL or FreeImage or maybe GLUT). But I don't know if these libraries support bmf because I never heard of that format.
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++ -
sorry , it is my mistake -> bmp. i need to load a bmp picture by openGL ,then i can use mouse in openGL to draw a point in that pic.
Then you can use DevIL or FreeImage (I think even GLUT is able to load bmp files but I'm not sure at all, I never used it). Did you look at these libraries ? If you are interested, you can also look at my second tutorial about OpenGL: it discusses resource management but it is probably it bit more higher level than what you are looking for.
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++