My question seems really silly. But I really headache with this question. For example you use canvas to draw something on Screen (example: line, square) You just take one line of code. So, when debug, when you go through that line, and bad result ( nothing happened, not draw what you want,…) You totally know that something wrong with that line or parameter of its method.
But when I come to OpenGL, just a triangle (with color texture,…), you must use “many line of code” : create byteBuffer, convert to floatBuffer, enable some state that you will use… And when debug, something wrong, I cannot know why (It can be wrong parameter, or I missing something,…). Debugger just help me view flow-of-code and see how it work.
I need some advice of people here to overcome this. Please help me.
thanks 🙂
The first thing I would do is look at Logcat output. Look for errors coming from your app.
To see Logcat output in Eclipse, find the DDMS view.
Otherwise, you can go to:
Window > Show View > Other
Then expand Android and then select Logcat