3 JoeyLib Static Image Functions
Scott Duensing edited this page 2019-10-17 19:08:17 -05:00

jlStaCopy

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. Returns true on success, otherwise false.

jlStaCreate

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. Returns true on success, otherwise false. Memory allocation is handled for you. Useful for special effects or taking screen shots.

jlStaDisplay

void jlStaDisplay(jlStaT *sta);

Copies the passed in image to the back buffer.

jlStaFree

void jlStaFree(jlStaT *sta);

Releases the memory used by a loaded image.

jlStaLoad

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

bool jlStaSave(jlStaT *sta, char *filename);

Saves the specified static image to disk as filename. Returns true on success, otherwise false.

jlStaSurfaceGet

jlSurfaceT jlStaSurfaceGet(jlStaT *sta);

Returns a drawing surface from a static image. Useful for creating off-screen drawing surfaces.