from objex import *
from whrandom import *

class cursor:
    def __init__(self,x=0,y=0,z=0):
         self.c = Qcyl(.1,6,1)
	 self.x = x
	 self.y = y
	 self.z = z
	 
    def draw(self):
       	glPushMatrix()
	glEnable(GL_LIGHTING)
	glMaterialfv(GL_FRONT, GL_DIFFUSE, [1., 1., 0., 0.])
	glTranslate(self.x,self.y,self.z)
	self.c.draw()
	glPopMatrix()
        #self.x = self.x + random() - 0.5 
        #self.y = self.y + random() - 0.5 
        #self.z = self.z + random() - 0.5 
	
