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