Home
last modified time | relevance | path

Searched refs:Mat4 (Results 1 – 8 of 8) sorted by relevance

/development/ndk/sources/android/ndk_helper/
Dvecmath.cpp38 Vec4 Vec4::operator*( const Mat4& rhs ) const in operator *()
51 Mat4::Mat4() in Mat4() function in ndk_helper::Mat4
57 Mat4::Mat4( const float* mIn ) in Mat4() function in ndk_helper::Mat4
63 Mat4 Mat4::operator*( const Mat4& rhs ) const in operator *()
65 Mat4 ret; in operator *()
105 Vec4 Mat4::operator*( const Vec4& rhs ) const in operator *()
115 Mat4 Mat4::Inverse() in Inverse()
117 Mat4 ret; in Inverse()
190 Mat4 Mat4::RotationX( const float fAngle ) in RotationX()
192 Mat4 ret; in RotationX()
[all …]
Dvecmath.h37 class Mat4; variable
52 friend class Mat4; variable
256 friend class Mat4; variable
497 friend class Mat4; variable
695 Vec4 operator*( const Mat4& rhs ) const;
746 class Mat4
756 Mat4();
757 Mat4( const float* );
759 Mat4 operator*( const Mat4& rhs ) const;
762 Mat4 operator+( const Mat4& rhs ) const
[all …]
DtapCamera.h74 Mat4 mat_rotation_;
75 Mat4 mat_transform_;
90 Mat4& GetRotationMatrix();
91 Mat4& GetTransformMatrix();
DtapCamera.cpp134 mat_transform_ = Mat4::Translation( vec ); in Update()
137 Mat4& TapCamera::GetRotationMatrix() in GetRotationMatrix()
142 Mat4& TapCamera::GetTransformMatrix() in GetTransformMatrix()
/development/ndk/platforms/android-17/samples/Teapot/jni/
DTeapotRenderer.h88 ndk_helper::Mat4 mat_projection_;
89 ndk_helper::Mat4 mat_view_;
90 ndk_helper::Mat4 mat_model_;
DTeapotRenderer.cpp88 mat_model_ = ndk_helper::Mat4::Translation( 0, 0, -15.f ); in Init()
90 ndk_helper::Mat4 mat = ndk_helper::Mat4::RotationX( M_PI / 3 ); in Init()
104 mat_projection_ = ndk_helper::Mat4::Perspective( fAspect, 1.f, CAM_NEAR, CAM_FAR ); in UpdateViewport()
134 mat_view_ = ndk_helper::Mat4::LookAt( ndk_helper::Vec3( CAM_X, CAM_Y, CAM_Z ), in Update()
153 ndk_helper::Mat4 mat_vp = mat_projection_ * mat_view_; in Render()
/development/ndk/platforms/android-18/samples/MoreTeapots/jni/
DMoreTeapotsRenderer.cpp122 ndk_helper::Mat4::Translation( iX * gap_x + offset_x, iY * gap_y + offset_y, in Init()
218 mat_projection_ = ndk_helper::Mat4::Perspective( fAspect, 1.f, CAM_NEAR, CAM_FAR ); in UpdateViewport()
257 mat_view_ = ndk_helper::Mat4::LookAt( ndk_helper::Vec3( CAM_X, CAM_Y, CAM_Z ), in Update()
321 ndk_helper::Mat4 mat_rotation = ndk_helper::Mat4::RotationX( fX ) in Render()
322 * ndk_helper::Mat4::RotationY( fY ); in Render()
325 ndk_helper::Mat4 mat_v = mat_view_ * vec_mat_models_[i] * mat_rotation; in Render()
326 ndk_helper::Mat4 mat_vp = mat_projection_ * mat_v; in Render()
354 ndk_helper::Mat4 mat_rotation = ndk_helper::Mat4::RotationX( x ) in Render()
355 * ndk_helper::Mat4::RotationY( y ); in Render()
358 ndk_helper::Mat4 mat_v = mat_view_ * vec_mat_models_[i] * mat_rotation; in Render()
[all …]
DMoreTeapotsRenderer.h94 ndk_helper::Mat4 mat_projection_;
95 ndk_helper::Mat4 mat_view_;
96 std::vector<ndk_helper::Mat4> vec_mat_models_;