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:
- write shader, doesn't sample texture, , use until texture streamed in , ready.
- create 'blank' texture, , bind appropriate slot until create real texture. then, switch bindings.
- same #2, except can update blank texture instead, , switching bindings not necessary.
Comments
Post a Comment