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>
#include <string>
#include <vector>
#include <stdint.h>
#include "matrix.h"

Go to the source code of this file.

Macros

#define LOG_TAG   "libNative"
 
#define LOGD(...)   __android_log_print(ANDROID_LOG_DEBUG, 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)
 

Typedefs

typedef uint32_t uint32
 
typedef uint16_t uint16
 
typedef uint8_t uint8
 
typedef int32_t int32
 
typedef int16_t int16
 
typedef int8_t int8
 

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:44

Definition at line 46 of file common.h.

#define LOG_TAG   "libNative"

Definition at line 42 of file common.h.

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

Definition at line 43 of file common.h.

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

Definition at line 44 of file common.h.

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

Definition at line 45 of file common.h.

Typedef Documentation

typedef int16_t int16

Definition at line 37 of file common.h.

typedef int32_t int32

Definition at line 36 of file common.h.

typedef int8_t int8

Definition at line 38 of file common.h.

typedef uint16_t uint16

Definition at line 34 of file common.h.

typedef uint32_t uint32

Definition at line 33 of file common.h.

typedef uint8_t uint8

Definition at line 35 of file common.h.