Home | History | Annotate | Download | only in test

Lines Matching defs:gl

2 """Very simple test script for the SGI gl library extension module
9 gl = import_module('gl')
10 GL = import_module('GL')
93 raise unittest.SkipTest, "No $DISPLAY -- skipping gl test"
95 # touch all the attributes of gl without doing anything
97 print 'Touching gl module attributes...'
101 getattr(gl, attr)
107 gl.foreground()
110 gl.prefposition(500, 900, 500, 900)
113 w = gl.winopen('CrissCross')
116 gl.clear()
119 gl.ortho2(0.0, 400.0, 0.0, 400.0)
122 gl.color(GL.WHITE)
125 gl.color(GL.RED)
128 gl.bgnline()
131 gl.v2f(0.0, 0.0)
132 gl.v2f(400.0, 400.0)
135 gl.endline()
138 gl.bgnline()
141 gl.v2i(400, 0)
142 gl.v2i(0, 400)
145 gl.endline()
151 gl.winclose(w)