All pastes #912096 Raw Edit

Something

public text v1 · immutable
·published 2008-02-21 03:45 UTC
rendered paste body
cdef class Planar (Scene) :
  def __cinit__(self, *args, **kw) :
    cdef ode.dGeomID plane
    plane = ode.dCreateBox (self._spaceID,10.0,0.5,10.0)
    #ode.dGeomSetData(plane, <void*> self)
    stdio.printf("asdf")
#  def __cinit__(self, *args, **kw) :
  cdef void _coreRender(self) :
    Scene._coreRender(self)
    gl.glBegin(gl.GL_TRIANGLE_STRIP)
    #gl.glNormal3f(0, 1, 0)
    gl.glVertex3f(1,0,0)
    gl.glVertex3f(-1,0,0)
    gl.glVertex3f(0,0,-1)
    gl.glVertex3f(0,0,1)
    gl.glVertex3f(1,0,0)
    gl.glEnd()