예제 #1
0
// Get the combined transform of a text
// \param text Text object
// \return Transform combining the position/rotation/scale/origin of the object
// const sfTransform* sfText_getTransform(const sfText* text);
func (self Text) Transform() Transform {
	return Transform{C.sfText_getTransform(self.Cref)}
}
예제 #2
0
파일: gfx-text.go 프로젝트: drhodes/go-sfml
// Get the combined transform of a text
// \param text Text object
// \return Transform combining the position/rotation/scale/origin of the object
// const sfTransform* sfText_getTransform(const sfText* text);
func (self Text) Transform() Transform {
	t := C.sfText_getTransform(self.Cref)
	return Transform{&t}
}