def __init__(self): self.position = vec3(0, 0, 0) self.yaw = 0 self.pitch = 0 self.roll = 0 self.frustrum = Frustrum() self.projection = GraphicsCard.screenProjection self.viewMatrix = None self.clipMatrix = None
def makeFrustrum(self): return Frustrum(self)
def __init__(self, ent, fov=60, aspect=float(4 / 3), zoom=0): self.ent = ent self.zoom = zoom self.projection = GraphicsCard.screenProjection self.frustrum = Frustrum()