OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
common.hpp File Reference
#include <stddef.h>
#include <stdio.h>
#include <string>
#include <string.h>
#include "EGLRuntime.h"
#include "Platform.h"
#include <GLES3/gl31.h>
#include <GLES2/gl2ext.h>

Go to the source code of this file.

Macros

#define GL_GLEXT_PROTOTYPES
 

Functions

GLuint common_compile_shader (const char *vs_source, const char *fs_source)
 
GLuint common_compile_shader (const char *vs_source, const char *tc_source, const char *te_source, const char *geom_source, const char *fs_source)
 
GLuint common_compile_compute_shader (const char *cs_source)
 
GLuint common_compile_shader_from_file (const char *vs_source, const char *fs_source)
 
GLuint common_compile_shader_from_file (const char *vs_source, const char *tc_source, const char *te_source, const char *geom_source, const char *fs_source)
 
GLuint common_compile_compute_shader_from_file (const char *cs_source)
 
void common_set_basedir (const char *basedir)
 
FILE * common_fopen (const char *path, const char *mode)
 
std::string common_get_path (const char *basepath)
 
bool common_read_file_string (const char *path, char **out_buf)
 
bool common_has_extension (const char *ext)
 

Macro Definition Documentation

#define GL_GLEXT_PROTOTYPES

Definition at line 33 of file common.hpp.

Function Documentation

GLuint common_compile_compute_shader ( const char *  cs_source)

Definition at line 180 of file common.cpp.

GLuint common_compile_compute_shader_from_file ( const char *  cs_source)

Definition at line 317 of file common.cpp.

GLuint common_compile_shader ( const char *  vs_source,
const char *  fs_source 
)

Definition at line 74 of file common.cpp.

GLuint common_compile_shader ( const char *  vs_source,
const char *  tc_source,
const char *  te_source,
const char *  geom_source,
const char *  fs_source 
)

Definition at line 108 of file common.cpp.

GLuint common_compile_shader_from_file ( const char *  vs_source,
const char *  fs_source 
)

Definition at line 241 of file common.cpp.

GLuint common_compile_shader_from_file ( const char *  vs_source,
const char *  tc_source,
const char *  te_source,
const char *  geom_source,
const char *  fs_source 
)

Definition at line 263 of file common.cpp.

FILE* common_fopen ( const char *  path,
const char *  mode 
)

Definition at line 349 of file common.cpp.

std::string common_get_path ( const char *  basepath)

Definition at line 337 of file common.cpp.

bool common_has_extension ( const char *  ext)
inline

Definition at line 57 of file common.hpp.

bool common_read_file_string ( const char *  path,
char **  out_buf 
)

Definition at line 204 of file common.cpp.

void common_set_basedir ( const char *  basedir)

Definition at line 332 of file common.cpp.