parent
fe6ecea3a5
commit
01a308e26c
@ -0,0 +1,17 @@
|
|||||||
|
struct Sprite{
|
||||||
|
Texture2D *texture;
|
||||||
|
float x;
|
||||||
|
float y;
|
||||||
|
} Sprite;
|
||||||
|
|
||||||
|
void addSprite(struct Sprite *cursors, int *j, Texture2D *texture, int x, int y){
|
||||||
|
if(*j < 100){
|
||||||
|
(cursors + *j) -> texture = texture;
|
||||||
|
(cursors + *j) -> x = x;
|
||||||
|
(cursors + *j) -> y = y;
|
||||||
|
(*j)++;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
printf("Voll\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
Binary file not shown.
Loading…
Reference in new issue