Tizen fixes

This commit is contained in:
Joshua Granick
2013-11-27 15:53:09 -08:00
parent ba7a87c2eb
commit 00407203fa
3 changed files with 15 additions and 7 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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; }