#include <FBaseSysLog.h>
-//#include "FUiAnim_GlLoader.h"
+#include "FUiAnim_GlLoader.h"
+
//#define PRINT(...) fprintf(stderr, __VA_ARGS__)
#define PRINT(...)
namespace Tizen { namespace Ui { namespace Animations
{
+#if 0
#define _GLES_CHECK_INTERFACE_VOID_2 if (!_GlesInterfaceInitialize()) \
{ \
return; \
{ \
return -1; \
}
+#else
+#define _GLES_CHECK_INTERFACE_VOID_2
+#define _GLES_CHECK_INTERFACE_GLBOOLEAN_2
+#define _GLES_CHECK_INTERFACE_GLENUM_2
+#define _GLES_CHECK_INTERFACE_CONSTGLUBYTEP_2
+#define _GLES_CHECK_INTERFACE_GLUINT_2
+#define _GLES_CHECK_INTERFACE_INT_2
+#endif
struct _GlesInterface2
{
#include <FBaseErrors.h>
#include <FBaseSysLog.h>
#include <FUiAnimShader.h>
-
#include <FUiAnimShaderProgram.h>
+#include <FUiAnimView.h>
+#include <FUiAnimCamera.h>
+
#include "FBase_StringConverter.h"
#include "FGrpFloatRectangle.h"
#include "FUiAnim_VisualElementImpl.h"
#include "FUiAnim_VisualElementEnvironment.h"
-#include <FUiAnimView.h>
-#include <FUiAnimCamera.h>
#include "FUiAnim_CameraImpl.h"
#include "FUiAnim_ViewInfo.h"
#include "FUiAnim_ViewImpl.h"
#include "FUiAnimMaterial.h"
#include "FUiAnim_LightImpl.h"
#include "FUiAnim_MaterialImpl.h"
-
#include "FUiAnim_MeshControllerImpl.h" //skinning
+#include "FUiAnim_GlLoader.h"
#include "FUiAnim_Debug.h"
#ifdef _WIN32
if (!__pRenderQueue[i].__isMesh || __pRenderQueue[i].__isTexUpdated)
{
- __pGlContext->UpdateTexture(__pRenderQueue[i].__pSurfaceInfo); //TODO Update?\88ì\97\90??bindë¥??´ì£¼ë©??\88ë\90\98?\94ê??
+ __pGlContext->UpdateTexture(__pRenderQueue[i].__pSurfaceInfo);
+
__pRenderQueue[i].__isTexUpdated = false;
}
}
_GlRenderManager* pThis = reinterpret_cast< _GlRenderManager* >(pData);
+ _GlesInterfaceInitialize();
+
#ifndef VE_USE_GL_MULTI_CONTEXT
#ifdef ECORE_X_NATIVE
_EcoreXLooper* pLooper = static_cast<_EcoreXLooper*>(_Looper::GetInstance());
pThis->__pGlContext = null;
#endif
+ _GlesInterfaceTerminate();
+
{
_AutoMutex commandLock(pThis->__commandLock);