- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件
-
)
- 文件列表
- 文件成员
全部) 类) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义) 组) 页)
宏定义
OpenGL_Internal.h 文件参考
#include "base/CCPlatformConfig.h"
## 宏定义
|
#define | REPORT_ERROR(FORMAT,…) printf("%s: %s\n", FUNCTION, [[NSString stringWithFormat:FORMAT, VA_ARGS] UTF8String]) |
|
#define | CALL_EAGL_FUNCTION(FUNC,…) ({ EAGLError error = FUNC( VAARGS ); if(error != kEAGLErrorSuccess) printf("%s() called from %s returned error %i\n", #FUNC, FUNCTION, error); (error ? NO : YES); }) |
|
#define | CHECK_GL_ERROR() ({ GLenum error = glGetError(); if(error) printf("OpenGL error 0x%04X in %s %d\n", error, FUNCTION, LINE); }) |
|
#define | [DELEGATEIVAR](../../d4/d45/open_g_linternal8h.html#a772a37966bfdfba3e1a3a5e1258e4a31) delegate |
|
#define | DELEGATE_METHODS_IVAR delegateMethods |
|
#define | TEST_DELEGATE_METHOD_BIT(BIT) (self->DELEGATE_METHODS_IVAR & (1 << BIT)) |
|
#define | SET_DELEGATE_METHOD_BIT(BIT, NAME) { if([self->DELEGATE_IVAR respondsToSelector:@selector(NAME)]) self->DELEGATE_METHODS_IVAR |= (1 << _BIT); else self->[__DELEGATE_METHODS_IVAR](../../d4/d45/_open_g_l_internal_8h.html#a7cecd5fea087399628e945366128b7c1) &= ~(1 << BIT); } |
|
宏定义说明
#define DELEGATE_IVAR _delegate |
#define DELEGATE_METHODS_IVAR _delegateMethods |
#define CALLEAGLFUNCTION | ( | | FUNC, |
| | | … |
| ) | | ({ EAGLError error = FUNC( VAARGS ); if(error != kEAGLErrorSuccess) printf("%s() called from %s returned error %i\n", #_FUNC, __FUNCTION, error); (error ? NO : YES); }) |
#define CHECKGLERROR | ( | | ) | ({ GLenum error = glGetError(); if(error) printf("OpenGL error 0x%04X in %s %d\n", error, FUNCTION, LINE); }) |
#define REPORTERROR | ( | | FORMAT, |
| | | … |
| ) | | printf("%s: %s\n", FUNCTION, [[NSString stringWithFormat:FORMAT, _VA_ARGS] UTF8String]) |
#define SETDELEGATEMETHODBIT | ( | | BIT, |
| | | NAME |
| ) | | { if([self->DELEGATE_IVAR respondsToSelector:@selector(NAME)]) self->DELEGATE_METHODS_IVAR |= (1 << BIT); else self->[_DELEGATE_METHODS_IVAR](../../d4/d45/_open_g_l_internal_8h.html#a7cecd5fea087399628e945366128b7c1) &= ~(1 << BIT); } |
#define TESTDELEGATEMETHODBIT | ( | | BIT | ) | (self->[_DELEGATE_METHODS_IVAR](../../d4/d45/_open_g_l_internal_8h.html#a7cecd5fea087399628e945366128b7c1) & (1 << BIT)) |