graphics/01-introduction/src/structs.h

29 lines
367 B
C
Raw Normal View History

2023-11-12 14:17:09 +00:00
#ifndef STRUCTS_H
#define STRUCTS_H
#include <SDL2/SDL.h>
struct game {
SDL_Window *window;
SDL_Renderer *renderer;
int up;
int down;
int left;
int right;
};
struct object {
SDL_Texture *texture;
int resolution; // of the texture/each tiles
int x;
int y;
int scale;
// animation
int state;
};
#endif