From e3137a3c2eb9ace98fead9ee627d4a20d8afc4d3 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Thu, 6 Sep 2018 01:24:23 +0000 Subject: [PATCH] scott created page: JoeyLib Static Image Functions --- JoeyLib-Static-Image-Functions.md | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 JoeyLib-Static-Image-Functions.md diff --git a/JoeyLib-Static-Image-Functions.md b/JoeyLib-Static-Image-Functions.md new file mode 100644 index 0000000..a8d3e40 --- /dev/null +++ b/JoeyLib-Static-Image-Functions.md @@ -0,0 +1,35 @@ +#### jlStaCopy +```c +bool jlStaCopy(jlStaT source, jlStaT target); +``` +*(Note: This prototype isn't entirely accurate. No pointer crazyness is needed to pass the images into this function.)* Copies one loaded image to another. Memory allocation is handled for you. + +#### jlStaCreate +```c +bool jlStaCreate(jlStaT sta); +``` +*(Note: This prototype isn't entirely accurate. No pointer crazyness is needed to pass the image into this function.)* Creates a new static image from the current contents of the back buffer. Memory allocation is handled for you. Useful for special effects or taking screen shots. + +#### jlStaDisplay +```c +void jlStaDisplay(jlStaT *sta); +``` +Copies the passed in image to the back buffer. + +#### jlStaFree +```c +void jlStaFree(jlStaT *sta); +``` +Releases the memory used by a loaded image. + +#### jlStaLoad +```c +bool jlStaLoad(jlStaT sta, char *filename); +``` +*(Note: This prototype isn't entirely accurate. No pointer crazyness is needed to pass the image into this function.)* Loads a new image from `filename` on disk. Returns `true` on success, otherwise `false`. + +#### jlStaSave +```c +bool jlStaSave(jlStaT *sta, char *filename); +``` +Saves the specified static image to disk as `filename`. Returns `true` on success, otherwise `false`. \ No newline at end of file