I 'm making a game in C++ and I need some help, I want to display a bmp image. I want to read a a bmp file and save the color ids in a matrix. Could you please help me. :)

Member Avatar
Member Avatar
+0 forum 10

I start a new thread about this. I need just a piece of code that reads a bmp file. I [B]NEED[/B] this. Every program i made used custom graphic files, and a very unpractical graphic editor made by me . It would be more comfortable to use paint to make graphics . I need only a piece of codew that shows me how to read the content of a bmp file.

Member Avatar
Member Avatar
+0 forum 3

i use an older compiler, borland c++ 3.1 and it doesn't have the bool variable type so i made my own bool type [code] enum bool { false = 0, true }; [/code] but always when i try to make comparisons or other thing i get the warning ASSIGNING INT TO BOOL eg. [code] int main() { bool x, y = true; x = false; if( x == false ) x = true; if( x == true ) x = false; x = x || y; if( ( x || y ) == true ) // here i get ASSIGNING …

Member Avatar
Member Avatar
+0 forum 18

can more variables have the same value in an enum ? eg. [code] enum boolean { true = 1, false = 0, TRUE = 1, FALSE = 0 }; [/code]

Member Avatar
Member Avatar
+0 forum 1

The End.