Own header added

main
Jonathan Hager 3 years ago
parent fe6ecea3a5
commit 01a308e26c
Signed by: JonathanHager
GPG Key ID: 34881E488569708C

@ -1,23 +1,6 @@
#include "raylib.h"
#include <stdio.h>
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");
}
}
#include "stdio.h"
#include "sprite.h"
int main(){

BIN
main.o

Binary file not shown.

@ -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…
Cancel
Save