This is the thread I'm going to be asking about terms in C++... My first one:
Whats a BOOL (or a bool in openGL)?
This is the thread I'm going to be asking about terms in C++... My first one:
Whats a BOOL (or a bool in openGL)?
> Whats a BOOL
If you look through your header files, you will find
#define BOOL int
which should answer your question.
> (or a bool in openGL)?
'bool' is a standard C/C++ type, not an OpenGL type. It is a one-byte-long value, which can take either the value 'true' or 'false'.
Ess
Like a rat in a maze who says,
"Watch me choose my own direction"
Are you under the illusion
The path is winding your way? - Rush
Thanks, that kind of answers it.
I'm not 100% sure but I do think that bool is only standard in ansi c++ not c. Windows also defines bool's too.
If you are going to do a thread on C++ then use the C++ programming board.
Don't mean to be picky but in C++ bool is either TRUE or FALSE ( notice the uppercaps).
Again, don't mean to be rude or picky.
My site to register for all my other websites!
'Clifton Bazaar'
I think you mean, in C++ BOOL is either TRUE or FALSE. By contrast, bool, the primitive type, can take on the values specified by the keywords true or false. There is a difference -- BOOL is an int, which takes on the integer values TRUE or FALSE. bool is a primitive, which takes on the values true or false, which are also keywords.Originally posted by phantom
If you are going to do a thread on C++ then use the C++ programming board.
Don't mean to be picky but in C++ bool is either TRUE or FALSE ( notice the uppercaps).
Again, don't mean to be rude or picky.
bool, true, and false are keywords which are only defined under C++, BOOL, TRUE, and FALSE may be used in C.
right V
bool, true, false are keywords
and BOOL, TRUE, FALSE are defined in headers.
Ooooops........ Sorry about that, V is right. BOOl is either TRUE or FALSE.
My site to register for all my other websites!
'Clifton Bazaar'