Пример #1
0
 def drawToTexAlpha(self, fbo, width, height, bgTex, alpha, boundPlane, top):
     fpos = (c_float * 3)()
     fpos[0] = 0.0
     fpos[1] = 0.0
     fpos[2] = 0.0
     collider.setPosition(fpos)
     setup_angle_axis=NULL_ROT.get_angle_axis()
     setup_axis=setup_angle_axis[1].normalized()
     fpos[0] = setup_axis.x
     fpos[1] = setup_axis.y
     fpos[2] = setup_axis.z
     setAngleAxisRotation(c_float(setup_angle_axis[0]), fpos)
     wrapper.drawToTex(self.mesh, alpha, fbo, width, height, bgTex, boundPlane, top)
Пример #2
0
 def drawToTexAlpha(self, fbo, width, height, bgTex, alpha, boundPlane,
                    top):
     fpos = (c_float * 3)()
     fpos[0] = 0.0
     fpos[1] = 0.0
     fpos[2] = 0.0
     collider.setPosition(fpos)
     setup_angle_axis = NULL_ROT.get_angle_axis()
     setup_axis = setup_angle_axis[1].normalized()
     fpos[0] = setup_axis.x
     fpos[1] = setup_axis.y
     fpos[2] = setup_axis.z
     setAngleAxisRotation(c_float(setup_angle_axis[0]), fpos)
     wrapper.drawToTex(self.mesh, alpha, fbo, width, height, bgTex,
                       boundPlane, top)
Пример #3
0
 def __init__(self):
     self.pos=NULL_VEC.copy()
     self.att=NULL_ROT.copy()
Пример #4
0
 def __init__(self):
     self.pos = NULL_VEC.copy()
     self.att = NULL_ROT.copy()