-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add createTextureAsync and createTexturesAsync
I'm not really sure I should add these. I think I thought about it before. The issue is, createTexture and createTextures both return usable textures immediately. No waiting. If the data for the texture needs to be loaded asynchronously, they'll return a 1x1 pixel texture. createTextureAsync and createTexturesAsync on the other hand, only return the texture after their async sources have loaded. These are more here for completeness as sometimes you actually do want to wait until the texture's data is loaded and it's now common to use promises for this purpose.
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters