globals: glClear glColor... on mac os x

hi

i have found out that when i remove global names like glColor etc. than the buttons are drawn the GUI works and even the hole script on os x.
i got this one working with unwrapper.

this is what i get when i do not remove the statements.

NameError: global name ‘glColor3f’ is not defined

i guess calls like glColor(0.4, 0.4, 0.45, 0.0) are important for drawing colors in any way for the gui.

can anybody explain it for me? i looked into the python documentation but huh i have no experience with python!

eicke

glColor defines the color of the openGL cursor (or something aki, not too sure on the terminology). In Scripts, it’s especially used to change the color of text labels in GUIs.

glClearColor clears the screen and defines a background color.

Martin