Add function LoadTextureFromMemory();

This commit is contained in:
Wytek01 2023-05-27 21:33:34 +02:00 committed by GitHub
parent aad51d4704
commit 3341e63854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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