You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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");
|
|
}
|
|
} |