scott created page: JoeyLib Vector Image Functions
parent
0d100455f1
commit
1a482fc171
1 changed files with 17 additions and 0 deletions
17
JoeyLib-Vector-Image-Functions.md
Normal file
17
JoeyLib-Vector-Image-Functions.md
Normal file
|
@ -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.
|
Loading…
Add table
Reference in a new issue