3 ms·
The single most helpful thing I discovered for learning android opengl es graphics programming is that it does have error messages, after all! [abbrev code, use
by hyperpallium 8y ago
The single most helpful thing I discovered for learning android opengl es graphics programming is that it does have error messages, after all! [abbrev code, use to lookup docs]
int error;
while((error=GLES20.glGetError())!=GLES20.GL_NO_ERROR) {
msg += android.opengl.GLU.gluErrorString(error);
}
Also, the offical android opengl es 2.0 tutorial is wrong in subtle ways (after the non-subtle wrongnesses were corrected).
TIL "advice" can be countable: https://blog.oxforddictionaries.com/2014/05/30/advise-advice/ https://blog.oxforddictionaries.com/2014/05/30/advise-advice...
> Advice is mainly used with the first meaning, and in this meaning it is a mass noun (that is, it has no plural). The business/legal meaning, however, is a count noun: it has a plural form, advices.
- exDM69 8y agoWhen getting started with a new OpenGL project, the first thing you should do is to enable the debug output [0] w/ glDebugMessageCallback. You also need to enable the debug bit when creating a GL context. This will give you human readable error messages (as in complete sentences of what went wrong) as well as some other info to pinpoint what went wrong and where. Additionally, it's a good idea to use Renderdoc [1] or your $GPU_VENDOR's debugging and profiling tools. [0] https://www.khronos.org/opengl/wiki/Debug_Output https://www.khronos.org/opengl/wiki/Debug_Output [1] https://renderdoc.org/ https://renderdoc.org/
- hyperpallium 8y agoGood to know about! For openGL ES, it looks like it wasn't implemented until version 3.2, the most recent (I don't have a device with that version). https://developer.android.com/reference/android/opengl/GLES32.html#glDebugMessageCallback(android.opengl.GLES32.DebugProc) https://developer.android.com/reference/android/opengl/GLES3...