Ejemplo n.º 1
0
// Get the combined transform of a sprite
// \param sprite Sprite object
// \return Transform combining the position/rotation/scale/origin of the object
// const sfTransform* sfSprite_getTransform(const sfSprite* sprite);
func (self Sprite) Transform() Transform {
	return Transform{C.sfSprite_getTransform(self.Cref)}
}
Ejemplo n.º 2
0
// Get the combined transform of a sprite
// \param sprite Sprite object
// \return Transform combining the position/rotation/scale/origin of the object
// const sfTransform* sfSprite_getTransform(const sfSprite* sprite);
func (self Sprite) Transform() Transform {
	t := C.sfSprite_getTransform(self.Cref)
	return Transform{&t}
}