Add API to load texture file.

This commit is contained in:
yunfeibai
2016-10-20 22:11:38 -07:00
parent 1c04da23db
commit 05be92d006
3 changed files with 24 additions and 33 deletions

View File

@@ -38,6 +38,7 @@ struct TinyRendererVisualShapeConverter : public LinkVisualShapesConverter
void render();
void render(const float viewMat[16], const float projMat[16]);
void loadTextureFile(const char* filename);
int registerTexture(unsigned char* texels, int width, int height);
void activateShapeTexture(int shapeUniqueId, int textureUniqueId);
void activateShapeTexture(int objectUniqueId, int jointIndex, int shapeIndex, int textureUniqueId);