/development/ndk/platforms/android-18/samples/MoreTeapots/jni/ |
D | MoreTeapotsNativeActivity.cpp | 54 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 …]
|
D | MoreTeapotsRenderer.h | 94 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 );
|
D | MoreTeapotsRenderer.cpp | 55 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 …]
|
D | Android.mk | 13 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/ |
D | TeapotNativeActivity.cpp | 44 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 …]
|
D | TeapotRenderer.cpp | 88 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()
|
D | TeapotRenderer.h | 88 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 );
|
D | Android.mk | 14 LOCAL_STATIC_LIBRARIES := cpufeatures android_native_app_glue ndk_helper 18 $(call import-module,android/ndk_helper)
|
/development/ndk/sources/android/ndk_helper/ |
D | JNIHelper.h | 26 #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
|
D | Android.mk | 5 LOCAL_MODULE:= ndk_helper
|
D | perfMonitor.h | 25 namespace ndk_helper
|
D | shader.h | 33 namespace ndk_helper
|
D | interpolator.h | 27 namespace ndk_helper
|
D | perfMonitor.cpp | 19 namespace ndk_helper namespace
|
D | GLContext.h | 29 namespace ndk_helper
|
D | tapCamera.h | 26 namespace ndk_helper
|
D | gestureDetector.h | 32 namespace ndk_helper
|
D | interpolator.cpp | 21 namespace ndk_helper namespace
|
D | GLContext.cpp | 27 namespace ndk_helper namespace
|
D | shader.cpp | 23 namespace ndk_helper namespace
|
D | tapCamera.cpp | 25 namespace ndk_helper namespace
|
D | gestureDetector.cpp | 22 namespace ndk_helper namespace
|
D | JNIHelper.cpp | 23 namespace ndk_helper namespace
|
D | vecmath.cpp | 22 namespace ndk_helper namespace
|
D | vecmath.h | 23 namespace ndk_helper
|