opengl es - How to display a textured quad without the texture loaded yet(Android,opengles 2.0) -


currently in app using opengl es, have display bunch of quads different textures. want asynchronously load textures quads displaying "blank" until texture loaded , start displaying texture texture finishes loading.... desired way achieve this?

you have several options here, desirable depends on situation. possibilities:

  1. write shader, doesn't sample texture, , use until texture streamed in , ready.
  2. create 'blank' texture, , bind appropriate slot until create real texture. then, switch bindings.
  3. same #2, except can update blank texture instead, , switching bindings not necessary.

Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -