예제 #1
0
	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()
예제 #2
0
	def __init__(self, entityName, componentInfo):
		Component.__init__(self, entityName, componentInfo)
예제 #3
0
	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
예제 #4
0
 def __init__(self, entityName, componentInfo):
     Component.__init__(self, entityName, componentInfo)
     skeletonInfo = LoadResFile(self.skeletonPath)
     skeleton = CreateSkeleton(skeletonInfo)