How to detect maximum texture resolution on iPhone?

后端 未结 1 1161
误落风尘
误落风尘 2020-12-16 05:55

I\'m making an universal openGL based app that should work on ipod/iphone 2G/3G/3GS/4 and iPad.

To deliver the best possible graphics I need to switch between diffe

相关标签:
1条回答
  • 2020-12-16 06:22

    Yes, use glGetIntegerv like:

    int maxTextureSize;
    glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize);
    

    Then you can use at most a maxTextureSize x maxTextureSize texture.

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