How to import into C++ Opengl TGA or BMP please help.?

people, its already 4th daytime im hunting for tutorial as well as anything exactly what may show me how to load TGA or perhaps BMP file in Opengl C++; there are 1000people most of writing their unique version, a number of them are 100 miles prolonged.some small but probably are not understood.i dont need sdl librory and also anything i need pure c++ computer code of how to access binary in addition to place them where necessary.iv tryed a few books that they dont explaing anything at all.can any individual tell myself where can i find regular, lovely, humanly spelled out TGA or BMP examining and importing process

hmm..openGL and also C++ are generally great intended for writing video games and exactly what real pro’s use (as nicely as directx) rather then these sport kits similar to unity and blender, HOWEVER…it is just not simple, it’s more advanced.

the link below points out everything but through your description its probably still a lot of.OpenGL has a pile of graphics functions to implement probably the most cutting advantage 3d in addition to 2d artwork technology nonetheless..if you are considering something like loadbitmap(“mypic.bmp”); plus drawbitmap(“mypic.bmp”) it probably are not for a person (yet).

http://www.gamedev.net/page/resources/_/reference/programming/sweet-snippets/how-to-load-a-bitmap-r1966

perhaps try looking at XNA if you work with windows, you’ll have to utilize C# however loading any bitmpa is as easy as

Texture2D mypic = ContentLoad(“mypic.bmp”);
// completed.

Leave a Reply