From 62bc545414f2d7547a1ce2b4e8952101fae25338 Mon Sep 17 00:00:00 2001 From: rachytski Date: Fri, 25 Nov 2011 20:24:14 +0400 Subject: [PATCH] [ANDROID] added NVEventRepaint --- android/jni/nv_event/nv_event.cpp | 10 ++++++++++ android/jni/nv_event/nv_event.hpp | 2 ++ 2 files changed, 12 insertions(+) diff --git a/android/jni/nv_event/nv_event.cpp b/android/jni/nv_event/nv_event.cpp index 3d082263ad..3fe9b6ccec 100644 --- a/android/jni/nv_event/nv_event.cpp +++ b/android/jni/nv_event/nv_event.cpp @@ -456,6 +456,16 @@ bool NVEventReadyToRenderEGL(bool allocateIfNeeded) return true; } +bool NVEventRepaint() +{ + NVEvent ev; + ev.m_type = NV_EVENT_USER; + ev.m_data.m_user.m_u0 = 1; + NVEventInsert(&ev); + + return true; +} + /////////////////////////////////////////////////////////////////////////////// // Input event-related Java to Native callback functions diff --git a/android/jni/nv_event/nv_event.hpp b/android/jni/nv_event/nv_event.hpp index 1a582504bc..15b93023ed 100644 --- a/android/jni/nv_event/nv_event.hpp +++ b/android/jni/nv_event/nv_event.hpp @@ -519,6 +519,8 @@ bool NVEventStatusEGLHasSurface(); */ bool NVEventStatusEGLIsBound(); +bool NVEventRepaint(); + /** Returns the platform-specific handle to the application instance, if supported. This function is, by definition platform-specific.