dreware
03-20-05, 06:28 AM
how can i upload bmp in c++ (dev-c++ stinks :mad: ) :confused:
SOMEONE PLZ EMAIL GLAUX.H AND GRAPHICS.H
to dreware321@hotmail.com or IM to dreware321 (aim)
or reply it
:bugeye:
Aborted_Fetus
03-20-05, 07:07 AM
http://www.nehe.opengl.cz/download/download/gl_soubory.zip
graphics.h is a Borland specific library and cannot be used with Dev-C++.
There is an alternative, though:
http://www.geocities.com/uniqueness_template/
Check out the section: "How do I use Borland Graphics Interface (graphics.h)?"
This post took me less than two minutes, and I have NO experience in programming graphics in C++ (or at all for that matter). Learn how to use Google.
okinrus
03-21-05, 04:45 AM
You can't usually just download a header file and expect to use it. glaux is a microsoft extension to opengl, and is likely only available using the microsoft implementation library. Fortunately most of the tutorials for opengl should have alternatives. I know nehe's tutorials do.
Crunchy Cat
03-25-05, 08:14 AM
how can i upload bmp in c++ (dev-c++ stinks :mad: ) :confused:
SOMEONE PLZ EMAIL GLAUX.H AND GRAPHICS.H
to dreware321@hotmail.com or IM to dreware321 (aim)
or reply it
:bugeye:
The easy way: Load it as a resource, select it into a device context, and
render away using your favorite blitting function.
The harder way: Load it into memory by reading it as a binary file:
http://www.daubnet.com/formats/BMP.html#BasicFileFormat
Blit it to a DC using StretchDIBits (). Good for animation at the Win32
level especially when used against a double buffered target.