MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / initGL

Function initGL

pyPBD/examples/render_tools.py:186–198  ·  view source on GitHub ↗
(resX, resY)

Source from the content-addressed store, hash-verified

184 }
185
186def initGL(resX, resY):
187 pygame.init()
188 display = (resX, resY)
189 pygame.display.set_mode(display, DOUBLEBUF|OPENGL)
190
191 glEnable (GL_DEPTH_TEST)
192 glEnable (GL_NORMALIZE)
193 glShadeModel (GL_SMOOTH)
194 glPolygonMode (GL_FRONT_AND_BACK, GL_FILL)
195
196 gluPerspective(45, (display[0]/display[1]), 0.5, 50.0)
197
198 initShader()
199
200

Callers 8

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

initShaderFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected