scott created page: JoeyLib Vector Image Functions

Scott Duensing 2018-09-06 02:01:55 +00:00
parent 0d100455f1
commit 1a482fc171

@ -0,0 +1,17 @@
#### jlVecDisplay
```c
void jlVecDisplay(jlVecT *vec, int x, int y);
```
Displays the vector image `vec` at (x, y). Being able to reposition vector images makes them suitable for use as clip art.
#### jlVecFree
```c
void jlVecFree(jlVecT *vec);
```
Releases memory used by `vec`.
#### jlVecLoad
```c
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.