ToGLES: add hard float support
This commit is contained in:
parent
df96e3937c
commit
d2b157d7f2
1 changed files with 8 additions and 0 deletions
|
@ -322,10 +322,18 @@ public:
|
||||||
#define GL_FUNC(ext,req,ret,fn,arg,call) CDynamicFunctionOpenGL< req, ret (*) arg, ret > fn;
|
#define GL_FUNC(ext,req,ret,fn,arg,call) CDynamicFunctionOpenGL< req, ret (*) arg, ret > fn;
|
||||||
#define GL_FUNC_VOID(ext,req,fn,arg,call) CDynamicFunctionOpenGL< req, void (*) arg, void > fn;
|
#define GL_FUNC_VOID(ext,req,fn,arg,call) CDynamicFunctionOpenGL< req, void (*) arg, void > fn;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#ifdef LOAD_HARDFP
|
||||||
#define _APIENTRY __attribute__((pcs("aapcs"))) APIENTRY
|
#define _APIENTRY __attribute__((pcs("aapcs"))) APIENTRY
|
||||||
#define GL_EXT(x,glmajor,glminor) bool m_bHave_##x;
|
#define GL_EXT(x,glmajor,glminor) bool m_bHave_##x;
|
||||||
#define GL_FUNC(ext,req,ret,fn,arg,call) CDynamicFunctionOpenGL< req, ret (_APIENTRY *) arg, ret > fn;
|
#define GL_FUNC(ext,req,ret,fn,arg,call) CDynamicFunctionOpenGL< req, ret (_APIENTRY *) arg, ret > fn;
|
||||||
#define GL_FUNC_VOID(ext,req,fn,arg,call) CDynamicFunctionOpenGL< req, void (_APIENTRY *) arg, void > fn;
|
#define GL_FUNC_VOID(ext,req,fn,arg,call) CDynamicFunctionOpenGL< req, void (_APIENTRY *) arg, void > fn;
|
||||||
|
#else
|
||||||
|
#define GL_EXT(x,glmajor,glminor) bool m_bHave_##x;
|
||||||
|
#define GL_FUNC(ext,req,ret,fn,arg,call) CDynamicFunctionOpenGL< req, ret (APIENTRY *) arg, ret > fn;
|
||||||
|
#define GL_FUNC_VOID(ext,req,fn,arg,call) CDynamicFunctionOpenGL< req, void (APIENTRY *) arg, void > fn;
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#include "togles/glfuncs.inl"
|
#include "togles/glfuncs.inl"
|
||||||
#undef GL_FUNC_VOID
|
#undef GL_FUNC_VOID
|
||||||
|
|
Loading…
Reference in a new issue