summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2022-03-24 17:10:35 +0200
committerjussi2022-03-24 17:10:35 +0200
commit3aa949f3f556a45a1d10f3b83e786562918dfa05 (patch)
tree29f56db116f76deb945dd26c8c08092d9958b351 /API.md
parent26a11a4b7f32a6fc2d131e4c78fe1ca40cc6ac8a (diff)
downloadreilua-enhanced-3aa949f3f556a45a1d10f3b83e786562918dfa05.tar.gz
reilua-enhanced-3aa949f3f556a45a1d10f3b83e786562918dfa05.tar.bz2
reilua-enhanced-3aa949f3f556a45a1d10f3b83e786562918dfa05.zip
Image export functions.
Diffstat (limited to 'API.md')
-rw-r--r--API.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/API.md b/API.md
index 58a2171..2b84520 100644
--- a/API.md
+++ b/API.md
@@ -641,7 +641,7 @@ Set title for window ( Only PLATFORM_DESKTOP )
---
-> RL_lcoreCloseWindow()
+> RL_CloseWindow()
Close window and unload OpenGL context and free all resources
@@ -1614,6 +1614,24 @@ Unload image from CPU memory ( RAM )
---
+> success = RL_ExportImage( Image image, string fileName )
+
+Export image data to file, returns true on success
+
+- Failure return nil
+- Success return bool
+
+---
+
+> success = RL_ExportImageAsCode( Image image, string fileName )
+
+Export image as code file defining an array of bytes, returns true on success
+
+- Failure return nil
+- Success return bool
+
+---
+
> texture = RL_LoadTexture( string fileName )
Load texture from file into GPU memory ( VRAM )