Home
last modified time | relevance | path

Searched refs:ndk_helper (Results 1 – 25 of 25) sorted by relevance

/development/ndk/platforms/android-18/samples/MoreTeapots/jni/
DMoreTeapotsNativeActivity.cpp54 ndk_helper::GLContext* gl_context_;
59 ndk_helper::DoubletapDetector doubletap_detector_;
60 ndk_helper::PinchDetector pinch_detector_;
61 ndk_helper::DragDetector drag_detector_;
62 ndk_helper::PerfMonitor monitor_;
64 ndk_helper::TapCamera tap_camera_;
74 void TransformPosition( ndk_helper::Vec2& vec );
115 gl_context_ = ndk_helper::GLContext::GetInstance(); in Engine()
229 ndk_helper::GESTURE_STATE doubleTapState = eng->doubletap_detector_.Detect( event ); in HandleInput()
230 ndk_helper::GESTURE_STATE dragState = eng->drag_detector_.Detect( event ); in HandleInput()
[all …]
DMoreTeapotsRenderer.h94 ndk_helper::Mat4 mat_projection_;
95 ndk_helper::Mat4 mat_view_;
96 std::vector<ndk_helper::Mat4> vec_mat_models_;
97 std::vector<ndk_helper::Vec3> vec_colors_;
98 std::vector<ndk_helper::Vec2> vec_rotations_;
99 std::vector<ndk_helper::Vec2> vec_current_rotations_;
101 ndk_helper::TapCamera* camera_;
120 bool Bind( ndk_helper::TapCamera* camera );
DMoreTeapotsRenderer.cpp55 if( ndk_helper::GLContext::GetInstance()->GetGLVersion() >= 3.0 ) in Init()
59 else if( ndk_helper::GLContext::GetInstance()->CheckExtension( "GL_NV_draw_instanced" ) in Init()
60 && ndk_helper::GLContext::GetInstance()->CheckExtension( in Init()
122 ndk_helper::Mat4::Translation( iX * gap_x + offset_x, iY * gap_y + offset_y, in Init()
125 ndk_helper::Vec3( random() / float( RAND_MAX * 1.1 ), in Init()
131 vec_rotations_.push_back( ndk_helper::Vec2( fX * 0.05f, fY * 0.05f ) ); in Init()
132 vec_current_rotations_.push_back( ndk_helper::Vec2( fX * M_PI, fY * M_PI ) ); 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()
258 ndk_helper::Vec3( 0.f, 0.f, 0.f ), ndk_helper::Vec3( 0.f, 1.f, 0.f ) ); in Update()
[all …]
DAndroid.mk13 LOCAL_STATIC_LIBRARIES := cpufeatures android_native_app_glue ndk_helper
17 $(call import-module,android/ndk_helper)
/development/ndk/platforms/android-17/samples/Teapot/jni/
DTeapotNativeActivity.cpp44 ndk_helper::GLContext* gl_context_;
49 ndk_helper::DoubletapDetector doubletap_detector_;
50 ndk_helper::PinchDetector pinch_detector_;
51 ndk_helper::DragDetector drag_detector_;
52 ndk_helper::PerfMonitor monitor_;
54 ndk_helper::TapCamera tap_camera_;
64 void TransformPosition( ndk_helper::Vec2& vec );
105 gl_context_ = ndk_helper::GLContext::GetInstance(); in Engine()
218 ndk_helper::GESTURE_STATE doubleTapState = eng->doubletap_detector_.Detect( event ); in HandleInput()
219 ndk_helper::GESTURE_STATE dragState = eng->drag_detector_.Detect( event ); in HandleInput()
[all …]
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()
135 ndk_helper::Vec3( 0.f, 0.f, 0.f ), ndk_helper::Vec3( 0.f, 1.f, 0.f ) ); in Update()
153 ndk_helper::Mat4 mat_vp = mat_projection_ * mat_view_; in Render()
212 if( !ndk_helper::shader::CompileShader( &vert_shader, GL_VERTEX_SHADER, strVsh ) ) in LoadShaders()
220 if( !ndk_helper::shader::CompileShader( &frag_shader, GL_FRAGMENT_SHADER, strFsh ) ) in LoadShaders()
240 if( !ndk_helper::shader::LinkProgram( program ) ) in LoadShaders()
281 bool TeapotRenderer::Bind( ndk_helper::TapCamera* camera ) in Bind()
DTeapotRenderer.h88 ndk_helper::Mat4 mat_projection_;
89 ndk_helper::Mat4 mat_view_;
90 ndk_helper::Mat4 mat_model_;
92 ndk_helper::TapCamera* camera_;
99 bool Bind( ndk_helper::TapCamera* camera );
DAndroid.mk14 LOCAL_STATIC_LIBRARIES := cpufeatures android_native_app_glue ndk_helper
18 $(call import-module,android/ndk_helper)
/development/ndk/sources/android/ndk_helper/
DJNIHelper.h26 #define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, ndk_helper::JNIHelper::GetInstance()…
27 #define LOGW(...) ((void)__android_log_print(ANDROID_LOG_WARN, ndk_helper::JNIHelper::GetInstance()…
28 #define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, ndk_helper::JNIHelper::GetInstance(…
30 namespace ndk_helper
DAndroid.mk5 LOCAL_MODULE:= ndk_helper
DperfMonitor.h25 namespace ndk_helper
Dshader.h33 namespace ndk_helper
Dinterpolator.h27 namespace ndk_helper
DperfMonitor.cpp19 namespace ndk_helper namespace
DGLContext.h29 namespace ndk_helper
DtapCamera.h26 namespace ndk_helper
DgestureDetector.h32 namespace ndk_helper
Dinterpolator.cpp21 namespace ndk_helper namespace
DGLContext.cpp27 namespace ndk_helper namespace
Dshader.cpp23 namespace ndk_helper namespace
DtapCamera.cpp25 namespace ndk_helper namespace
DgestureDetector.cpp22 namespace ndk_helper namespace
DJNIHelper.cpp23 namespace ndk_helper namespace
Dvecmath.cpp22 namespace ndk_helper namespace
Dvecmath.h23 namespace ndk_helper