PDA

View Full Version : GLboolean



JacobusOpperman
01-24-2017, 06:58 AM
Hi everyone!
I am very new to OpenGL programming but have done a lot of programming in Delphi. I want to make my OpenGL code compatible with Delphi so I want to know: the OpenGL data type GLboolean is compared to what in other languages? For example: is it an unsigned 32 bit integer or what? Please help ! Thankyou in advance!

Osbios
01-24-2017, 09:09 AM
It is defined as one byte. The spec says noting about signed or unsigned.

You find all the data type specifications on page 13:

https://www.opengl.org/registry/doc/glspec45.core.pdf

JacobusOpperman
01-24-2017, 11:13 AM
Thank you for the reply! Sorry that I missed the documentation.