HW accelerated activity - how to get OpenGL texture size limit?

后端 未结 4 486
时光取名叫无心
时光取名叫无心 2020-11-27 13:23

I\'m trying to enable hw acceleration in Honeycomb, and display some Bitmaps on Canvas. All works fine, but for large bitmaps (>2048 in one dimension), I get error in log:

4条回答
  •  春和景丽
    2020-11-27 14:21

    Currently the minimum limit is 2048px (i.e. the hardware must support textures at least 2048x2048.) In ICS we will introduce a new API on the Canvas class that will give you this information:
    Canvas.getMaximumBitmapWidth() and Canvas.getMaximumBitmapHeight().

提交回复
热议问题