Hey!
I love how certain functions allow developers to pass parameters that are constant. For example, some function to set window properties might only accept the following for arguments:
so you would pass along something as such:
- SCREEN_FULL
- SCREEN_WINDOWED
- SCREEN_NONE
Now, obviously these aren't set types (such as intergers, strings, whatever), so they must be defined as a structure somewhere. I just can't figure out how such setup is done.Code:window.setup(SCREEN_FULL);
Can someone point me to an API that does such, possibly something small for me to understand, so that I can figure out how this sort of thing is done?
Thanks so much!
FlyingIsFun1217