31 using namespace MaliSDK;
33 #define GL_GLEXT_PROTOTYPES
34 #include <GLES3/gl31.h>
35 #include <GLES2/gl2ext.h>
39 const char *tc_source,
const char *te_source,
const char *geom_source,
40 const char *fs_source);
46 const char *tc_source,
const char *te_source,
const char *geom_source,
47 const char *fs_source);
59 GL_CHECK(
bool ret = strstr((
const char*)glGetString(GL_EXTENSIONS), ext) !=
nullptr);
62 LOGI(
"Extension %s is supported.\n", ext);
66 LOGI(
"Extension %s is unsupported.\n", ext);
std::string common_get_path(const char *basepath)
bool common_read_file_string(const char *path, char **out_buf)
GLuint common_compile_shader(const char *vs_source, const char *fs_source)
bool common_has_extension(const char *ext)
GLuint common_compile_shader_from_file(const char *vs_source, const char *fs_source)
GLuint common_compile_compute_shader_from_file(const char *cs_source)
FILE * common_fopen(const char *path, const char *mode)
typedef GLuint(GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC)(GLuint count
GLuint common_compile_compute_shader(const char *cs_source)
void common_set_basedir(const char *basedir)