Get OpenGL max texture size

前端 未结 2 1155
挽巷
挽巷 2021-01-03 05:57

I\'m developing an Android app that\'s going to work with bitmaps extensively and I\'m looking for a reliable way to get the maximum texture size for OpenGL on different dev

2条回答
  •  轮回少年
    2021-01-03 06:34

    This will give you the maximum height allowed.

    Canvas canvas = new Canvas();
    canvas.getMaximumBitmapHeight() / 8
    

提交回复
热议问题