Skip to content

GitLab

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

JoeyLib Static Image Functions

Last edited by Scott Duensing Oct 17, 2019
Page history

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