| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- class "Entity"
- function Entity:Entity()
- if self.__ptr == nil then
- self.__ptr = Polycore.Entity()
- end
- end
- function Entity:Render()
- return Polycore.Entity_Render(self.__ptr)
- end
- function Entity:Update()
- return Polycore.Entity_Update(self.__ptr)
- end
- function Entity:transformAndRender()
- return Polycore.Entity_transformAndRender(self.__ptr)
- end
- function Entity:setMatrix(matrix)
- return Polycore.Entity_setMatrix(self.__ptr, matrix.__ptr)
- end
- function Entity:rebuildTransformMatrix()
- return Polycore.Entity_rebuildTransformMatrix(self.__ptr)
- end
- function Entity:addEntity(newChild)
- return Polycore.Entity_addEntity(self.__ptr, newChild.__ptr)
- end
- function Entity:addChild(newChild)
- return Polycore.Entity_addChild(self.__ptr, newChild.__ptr)
- end
- function Entity:removeChild(entityToRemove)
- return Polycore.Entity_removeChild(self.__ptr, entityToRemove.__ptr)
- end
- function Entity:updateEntityMatrix()
- return Polycore.Entity_updateEntityMatrix(self.__ptr)
- end
- function Entity:renderChildren()
- return Polycore.Entity_renderChildren(self.__ptr)
- end
- function Entity:getPosition()
- return Polycore.Entity_getPosition(self.__ptr)
- end
- function Entity:setPosition(x, y, z)
- return Polycore.Entity_setPosition(self.__ptr, x, y, z)
- end
- function Entity:setPositionX(x)
- return Polycore.Entity_setPositionX(self.__ptr, x)
- end
- function Entity:setPositionY(y)
- return Polycore.Entity_setPositionY(self.__ptr, y)
- end
- function Entity:setPositionZ(z)
- return Polycore.Entity_setPositionZ(self.__ptr, z)
- end
- function Entity:setScaleX(x)
- return Polycore.Entity_setScaleX(self.__ptr, x)
- end
- function Entity:setScaleY(y)
- return Polycore.Entity_setScaleY(self.__ptr, y)
- end
- function Entity:setScaleZ(z)
- return Polycore.Entity_setScaleZ(self.__ptr, z)
- end
- function Entity:Translate(x, y, z)
- return Polycore.Entity_Translate(self.__ptr, x, y, z)
- end
- function Entity:Scale(x, y, z)
- return Polycore.Entity_Scale(self.__ptr, x, y, z)
- end
- function Entity:setScale(x, y, z)
- return Polycore.Entity_setScale(self.__ptr, x, y, z)
- end
- function Entity:getScale()
- return Polycore.Entity_getScale(self.__ptr)
- end
- function Entity:getCombinedPosition()
- return Polycore.Entity_getCombinedPosition(self.__ptr)
- end
- function Entity:getCombinedPitch()
- return Polycore.Entity_getCombinedPitch(self.__ptr)
- end
- function Entity:getCombinedYaw()
- return Polycore.Entity_getCombinedYaw(self.__ptr)
- end
- function Entity:getCombinedRoll()
- return Polycore.Entity_getCombinedRoll(self.__ptr)
- end
- function Entity:setParentEntity(entity)
- return Polycore.Entity_setParentEntity(self.__ptr, entity.__ptr)
- end
- function Entity:getParentEntity()
- return Polycore.Entity_getParentEntity(self.__ptr)
- end
- function Entity:rebuildRotation()
- return Polycore.Entity_rebuildRotation(self.__ptr)
- end
- function Entity:dirtyMatrix(val)
- return Polycore.Entity_dirtyMatrix(self.__ptr, val)
- end
- function Entity:setPitch(pitch)
- return Polycore.Entity_setPitch(self.__ptr, pitch)
- end
- function Entity:setYaw(yaw)
- return Polycore.Entity_setYaw(self.__ptr, yaw)
- end
- function Entity:setRoll(roll)
- return Polycore.Entity_setRoll(self.__ptr, roll)
- end
- function Entity:Roll(roll)
- return Polycore.Entity_Roll(self.__ptr, roll)
- end
- function Entity:Yaw(roll)
- return Polycore.Entity_Yaw(self.__ptr, roll)
- end
- function Entity:Pitch(roll)
- return Polycore.Entity_Pitch(self.__ptr, roll)
- end
- function Entity:getPitch()
- return Polycore.Entity_getPitch(self.__ptr)
- end
- function Entity:getYaw()
- return Polycore.Entity_getYaw(self.__ptr)
- end
- function Entity:getRoll()
- return Polycore.Entity_getRoll(self.__ptr)
- end
- function Entity:setRotationQuat(w, x, y, z)
- return Polycore.Entity_setRotationQuat(self.__ptr, w, x, y, z)
- end
- function Entity:getRotationQuat()
- return Polycore.Entity_getRotationQuat(self.__ptr)
- end
- function Entity:getTransformMatrix()
- return Polycore.Entity_getTransformMatrix(self.__ptr)
- end
- function Entity:getConcatenatedMatrix()
- return Polycore.Entity_getConcatenatedMatrix(self.__ptr)
- end
- function Entity:getConcatenatedRollMatrix()
- return Polycore.Entity_getConcatenatedRollMatrix(self.__ptr)
- end
- function Entity:setTransformByMatrix(matrix)
- return Polycore.Entity_setTransformByMatrix(self.__ptr, matrix.__ptr)
- end
- function Entity:setTransformByMatrixPure(matrix)
- return Polycore.Entity_setTransformByMatrixPure(self.__ptr, matrix.__ptr)
- end
- function Entity:setRenderer(r_enderer)
- return Polycore.Entity_setRenderer(self.__ptr, r_enderer.__ptr)
- end
- function Entity:getCombinedColor()
- return Polycore.Entity_getCombinedColor(self.__ptr)
- end
- function Entity:setColor(r, g, b, a)
- return Polycore.Entity_setColor(self.__ptr, r, g, b, a)
- end
- function Entity:setColorInt(r, g, b, a)
- return Polycore.Entity_setColorInt(self.__ptr, r, g, b, a)
- end
- function Entity:recalculateBBox()
- return Polycore.Entity_recalculateBBox(self.__ptr)
- end
- function Entity:getBBoxRadius()
- return Polycore.Entity_getBBoxRadius(self.__ptr)
- end
- function Entity:getCompoundBBoxRadius()
- return Polycore.Entity_getCompoundBBoxRadius(self.__ptr)
- end
- function Entity:setBBoxRadius(rad)
- return Polycore.Entity_setBBoxRadius(self.__ptr, rad)
- end
- function Entity:setBlendingMode(newBl_endingMode)
- return Polycore.Entity_setBlendingMode(self.__ptr, newBl_endingMode)
- end
- function Entity:getChildCenter()
- return Polycore.Entity_getChildCenter(self.__ptr)
- end
- function Entity:setDepthWrite(val)
- return Polycore.Entity_setDepthWrite(self.__ptr, val)
- end
- function Entity:doUpdates()
- return Polycore.Entity_doUpdates(self.__ptr)
- end
- function Entity:lookAt(loc, upVector)
- return Polycore.Entity_lookAt(self.__ptr, loc.__ptr, upVector.__ptr)
- end
- function Entity:lookAtEntity(entity, upVector)
- return Polycore.Entity_lookAtEntity(self.__ptr, entity.__ptr, upVector.__ptr)
- end
- function Entity:getLookAtMatrix(loc, upVector)
- return Polycore.Entity_getLookAtMatrix(self.__ptr, loc.__ptr, upVector.__ptr)
- end
- function Entity:buildPositionMatrix()
- return Polycore.Entity_buildPositionMatrix(self.__ptr)
- end
- function Entity:adjustMatrixForChildren()
- return Polycore.Entity_adjustMatrixForChildren(self.__ptr)
- end
- function Entity:setMask(mask)
- return Polycore.Entity_setMask(self.__ptr, mask.__ptr)
- end
- function Entity:clearMask()
- return Polycore.Entity_clearMask(self.__ptr)
- end
- function Entity:getCompoundScale()
- return Polycore.Entity_getCompoundScale(self.__ptr)
- end
- function Entity:getEntityProp(propName)
- return Polycore.Entity_getEntityProp(self.__ptr, propName)
- end
|