def draw(self): intf.glBindTexture(intf.GL_TEXTURE_2D,self.image.name) intf.glPushMatrix() intf.glTranslatef(self.xpos,self.ypos,-self.trans) intf.glRotatef(self.rotate,1,0,0) intf.glScalef(self.scale,self.scale,self.scale) intf.glCallList(self.list) intf.glPopMatrix()
def draw(self): """ Must be drawn whene TEXTURE1 is active and TEXTURE_2D is enabled """ intf.glActiveTexture(intf.GL_TEXTURE1) intf.glBindTexture(intf.GL_TEXTURE_2D, self.texture.name) intf.glPushMatrix() intf.glTranslatef(self.pos[0], self.pos[1], self.pos[2]) intf.glRotatef(self.rotate[0], 1, 0, 0) intf.glRotatef(self.rotate[2], 0, 0, 1) intf.glCallList(self.list) # intf.glutSolidSphere(1,10,10) intf.glPopMatrix()