Problem with getFloatv function in GL11 (Android)

后端 未结 2 688
故里飘歌
故里飘歌 2020-12-12 05:51

I\'m learning Open GL ES and would like to get a more intuitive interface with 3D objects than the one suggested by google in the TouchRotateActivity sample. In order to do

相关标签:
2条回答
  • 2020-12-12 05:59

    Depending on your device you might be using the PixelFlinger software GL renderer, which unfortunately does not implement glGetFloat, at least as of version 1.2. Checking the logcat output should reveal messages to this effect if this is the case.

    The solution is to handle the matrices yourself so there's no need to retrieve them from OpenGL in the first place. Like so.

    0 讨论(0)
  • 2020-12-12 06:18

    I don't program in Java, so for all I know, your problem could be in the way the memory is being passed to glGetFloatv. In any case, I found this page floating around out there, maybe it will help you.

    0 讨论(0)
提交回复
热议问题