opengl - Android - How to know maximal size/dimensions of the image that the device can load -



opengl - Android - How to know maximal size/dimensions of the image that the device can load -

my question may not correct, allow me describe in details. utilize cocos2d-x (renders using opengl-es 2) game engine show images on android device. in cases when image dimensions big images not beingness displayed. skipped. see size of image smaller size of device vram. checked method /dev/graphics/fb0: android vram. check. file size 532,042 bytes, dimension 2160x1224 , vram size 3072000 bytes. why image not beingness handled device? , criteria , limit? how can check limit device?

why image not beingness handled device?

because there's difference between how much can placed in ram , maximum size of single chunk of info can processed. there's limit each gpu on maximum size of image can handle. size of ram tells you, how many images fit there. however opengl's memory model purely abstract , amount of vram doesn't tell how many textures can load. info can , swapped in , out of vram whenever required. actual limit in fact amount of memory available scheme whole.

i can't tell cocos2d in opengl , opengl-es can query maximum sizes supported various texture types using glgetinteger opengl-es glgetinteger reference. in case you're interested in value gl_max_texture_size. note texture targets other gl_texture_1d , gl_texture_2d different values must queried.

android opengl opengl-es cocos2d-x

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -