OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Common.h File Reference
#include <android/log.h>
#include <cstdio>
#include <cstdlib>
#include <GLES3/gl3.h>

Go to the source code of this file.

Macros

#define NUMBER_OF_CUBE_FACES   (6)
 Number of faces which make up a cubic shape. More...
 
#define NUMBER_OF_POINT_COORDINATES   (3)
 Number of coordinates for a point in 3D space. More...
 
#define NUMBER_OF_TRIANGLE_VERTICES   (3)
 Number of vertices which make up a triangle shape. More...
 
#define NUMBER_OF_TRIANGLES_IN_QUAD   (2)
 Number of triangles which make up a quad. More...
 
#define LOG_TAG   "libNative"
 
#define LOGD(...)   __android_log_print(ANDROID_LOG_DEBBUG, LOG_TAG, __VA_ARGS__)
 
#define LOGE(...)   __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
 
#define LOGI(...)   __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
 
#define ASSERT(x, s)
 
#define GL_CHECK(x)
 

Macro Definition Documentation

#define ASSERT (   x,
 
)
Value:
if (!(x)) \
{ \
LOGE("Assertion failed at %s:%i\n%s\n", __FILE__, __LINE__, s); \
exit(1); \
}
GLint GLint GLint GLint GLint x
Definition: gl2ext.h:574
#define LOGE(...)
Definition: Common.h:51

Definition at line 53 of file Common.h.

#define GL_CHECK (   x)
Value:
x; \
{ \
GLenum glError = glGetError(); \
if(glError != GL_NO_ERROR) { \
LOGE("glGetError() = %i (0x%.8x) at %s:%i\n", glError, glError, __FILE__, __LINE__); \
exit(1); \
} \
}
GLint GLint GLint GLint GLint x
Definition: gl2ext.h:574
#define LOGE(...)
Definition: Common.h:51
typedef GLenum(GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSKHRPROC)(void)

Definition at line 60 of file Common.h.

#define LOG_TAG   "libNative"

Definition at line 49 of file Common.h.

#define LOGD (   ...)    __android_log_print(ANDROID_LOG_DEBBUG, LOG_TAG, __VA_ARGS__)

Definition at line 50 of file Common.h.

#define LOGE (   ...)    __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)

Definition at line 51 of file Common.h.

#define LOGI (   ...)    __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)

Definition at line 52 of file Common.h.

#define NUMBER_OF_CUBE_FACES   (6)

Number of faces which make up a cubic shape.

Definition at line 31 of file Common.h.

#define NUMBER_OF_POINT_COORDINATES   (3)

Number of coordinates for a point in 3D space.

Definition at line 36 of file Common.h.

#define NUMBER_OF_TRIANGLE_VERTICES   (3)

Number of vertices which make up a triangle shape.

Definition at line 41 of file Common.h.

#define NUMBER_OF_TRIANGLES_IN_QUAD   (2)

Number of triangles which make up a quad.

Definition at line 46 of file Common.h.