def __init__(self, entityName, componentInfo): Component.__init__(self, entityName, componentInfo) image = LoadImage(self.texture) self.halfHeight = self.height * 0.5 self.halfWidth = self.width * 0.5 self.imageID, _ = CreateImageTexture(image) self.vaoId = None self.programID = None self.physicsComponent = None self.uniformDataLocations = {} self.SetupRenderInfo()
def __init__(self, entityName, componentInfo): Component.__init__(self, entityName, componentInfo)
def __init__(self, entityName, componentInfo): Component.__init__(self, entityName, componentInfo) self.position = vector3.create(self.pos[0], self.pos[1], self.pos[2]) self.rotation = quaternion.create_from_z_rotation(self.rotAngle) self.worldMatrix = matrix44.create_identity() self.dirty = True
def __init__(self, entityName, componentInfo): Component.__init__(self, entityName, componentInfo) skeletonInfo = LoadResFile(self.skeletonPath) skeleton = CreateSkeleton(skeletonInfo)