Tizen fixes
This commit is contained in:
@@ -23,15 +23,17 @@
|
||||
#define ELOG(args...) __android_log_print(ANDROID_LOG_ERROR, "NME",args)
|
||||
|
||||
#elif defined(TIZEN)
|
||||
#include <FBase.h>
|
||||
|
||||
extern "C" __attribute__ ((visibility("default"))) void AppLogInternal(const char* pFunction, int lineNumber, const char* pFormat, ...);
|
||||
extern "C" __attribute__ ((visibility("default"))) void AppLogDebugInternal(const char* pFunction, int lineNumber, const char* pFormat, ...);
|
||||
|
||||
#ifdef VERBOSE
|
||||
#define VLOG(args...) AppLog(args)
|
||||
#define VLOG(...) AppLogInternal(__PRETTY_FUNCTION__, __LINE__, __VA_ARGS__)
|
||||
#else
|
||||
#define VLOG(args...)
|
||||
#define VLOG(...)
|
||||
#endif
|
||||
|
||||
#define ELOG(args...) AppLogDebug(args)
|
||||
#define ELOG(...) AppLogDebugInternal(__PRETTY_FUNCTION__, __LINE__, __VA_ARGS__)
|
||||
|
||||
#else
|
||||
|
||||
|
||||
@@ -22,14 +22,15 @@
|
||||
#elif defined(TIZEN)
|
||||
|
||||
//#include <osp/gl.h>
|
||||
//#include <FGraphicsOpengl.h>
|
||||
#include <FGraphicsOpengl2.h>
|
||||
#include <FGraphicsOpengl.h>
|
||||
//#include <FGraphicsOpengl2.h>
|
||||
|
||||
using namespace Tizen::Graphics::Opengl;
|
||||
|
||||
//#include <osp/gl2.h>
|
||||
#define ALLOW_OGL2
|
||||
//#define ALLOW_OGL2
|
||||
//#define NME_FORCE_GLES2
|
||||
#define NME_FORCE_GLES1
|
||||
#define NME_GLES
|
||||
|
||||
#elif defined(IPHONE)
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
|
||||
using namespace nme;
|
||||
|
||||
|
||||
#ifndef NME_FORCE_GLES1
|
||||
|
||||
#define INT(a) val_int(arg[a])
|
||||
|
||||
// --- General -------------------------------------------
|
||||
@@ -1708,6 +1711,8 @@ value nme_gl_get_tex_parameter(value inTarget,value inPname)
|
||||
DEFINE_PRIM(nme_gl_get_tex_parameter,2);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
extern "C" int nme_oglexport_register_prims() { return 0; }
|
||||
|
||||
Reference in New Issue
Block a user