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

jlVecDisplay

void jlVecDisplay(jlVecT *vec, jint16 x, jint16 y);

Displays the vector image vec at (x, y). Being able to reposition vector images makes them suitable for use as clip art.

jlVecFree

void jlVecFree(jlVecT *vec);

Releases memory used by vec.

jlVecLoad

bool jlVecLoad(jlVecT vec, char *filename);

(Note: This prototype isn't entirely accurate. No pointer crazyness is needed to pass the image into this function.) Loads the image vec from the file filename. Handles memory allocation for you. Returns true on success or false otherwise.