Add function LoadTextureFromMemory();
This commit is contained in:
parent
aad51d4704
commit
3341e63854
|
|
@ -1307,6 +1307,7 @@ RLAPI void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 posi
|
|||
// NOTE: These functions require GPU access
|
||||
RLAPI Texture2D LoadTexture(const char *fileName); // Load texture from file into GPU memory (VRAM)
|
||||
RLAPI Texture2D LoadTextureFromImage(Image image); // Load texture from image data
|
||||
RLAPI Texture2D LoadTextureFromMemory(const char *fileType, const unsigned char *fileData, int dataSize);// Load texture from memory buffer, fileType refers to extension: i.e. '.png'
|
||||
RLAPI TextureCubemap LoadTextureCubemap(Image image, int layout); // Load cubemap from image, multiple image cubemap layouts supported
|
||||
RLAPI RenderTexture2D LoadRenderTexture(int width, int height); // Load texture for rendering (framebuffer)
|
||||
RLAPI bool IsTextureReady(Texture2D texture); // Check if a texture is ready
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user