Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • joeylib joeylib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Public Skunkworks
  • joeylibjoeylib
  • Wiki
  • JoeyLib Static Image Functions

Last edited by Scott Duensing Oct 17, 2019
Page history

JoeyLib Static Image Functions

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.

Clone repository
  • Installation
  • JoeyLib API
  • JoeyLib Concepts
  • JoeyLib Data Types
  • JoeyLib Definitions
  • JoeyLib Display Functions
  • JoeyLib Drawing Functions
  • JoeyLib Enumerations
  • JoeyLib Formats
  • JoeyLib Gamepad Functions
  • JoeyLib Keyboard Functions
  • JoeyLib Memory Functions
  • JoeyLib Palette Functions
  • JoeyLib Sound Functions
  • JoeyLib Static Image Functions
View All Pages