Пример #1
0
func SetListenerDirection(x, y, z float32) {
	C.sfListener_setDirection(C.sfVector3f{
		C.float(x),
		C.float(y),
		C.float(z),
	})
}
Пример #2
0
// \brief Set the orientation of the listener in the scene
// The orientation defines the 3D axes of the listener
// (left, up, front) in the scene. The orientation vector
// doesn't have to be normalized.
// The default listener's orientation is (0, 0, -1).
// \param position New direction of the listener
// sfListener_setDirection(sfVector3f orientation);
func SetDirection(orientation Vector3f) {
	C.sfListener_setDirection(orientation.Cref)
}