MCPcopy Create free account
hub / github.com/android/ndk-samples / printGLString

Function printGLString

hello-gl2/app/src/main/cpp/gl_code.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
31
32static void printGLString(const char* name, GLenum s) {
33 const char* v = (const char*)glGetString(s);
34 LOGI("GL %s = %s\n", name, v);
35}
36
37static void checkGlError(const char* op) {
38 for (GLint error = glGetError(); error; error = glGetError()) {

Callers 1

setupGraphicsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected