Added some texture functionality (view details)

LoadTextureEx() - Simplified parameters
UpdateTexture() - Added, allows updating GPU texture data
This commit is contained in:
Ray
2015-11-04 18:33:46 +01:00
parent 002dacef40
commit 76024b5036
4 changed files with 76 additions and 10 deletions

View File

@@ -242,7 +242,8 @@ void rlglClose(void); // De-init rlgl
void rlglDraw(void); // Draw VAO/VBO
void rlglInitGraphics(int offsetX, int offsetY, int width, int height); // Initialize Graphics (OpenGL stuff)
unsigned int rlglLoadTexture(void *data, int width, int height, int textureFormat, int mipmapCount); // Load in GPU OpenGL texture
unsigned int rlglLoadTexture(void *data, int width, int height, int textureFormat, int mipmapCount); // Load texture in GPU
void rlglUpdateTexture(unsigned int id, int width, int height, int format, void *data); // Update GPU texture with new data
void rlglGenerateMipmaps(unsigned int textureId); // Generate mipmap data for selected texture
// NOTE: There is a set of shader related functions that are available to end user,