breakhack/src/texture.h

23 lines
445 B
C
Raw Normal View History

2017-11-30 21:00:47 +01:00
#ifndef TEXTURE_H_
#define TEXTURE_H_
#include <SDL2/SDL.h>
#include "dimension.h"
#include "position.h"
#include "camera.h"
2017-11-30 21:00:47 +01:00
typedef struct {
SDL_Texture *texture;
Dimension dim;
} Texture;
2017-12-02 23:32:40 +01:00
Texture* texture_create(const char *path, SDL_Renderer *renderer);
2017-11-30 21:00:47 +01:00
void texture_render(Texture*, Position*, Camera*);
2017-12-14 12:01:05 +01:00
void texture_render_clip(Texture*, Position*, SDL_Rect*, Camera*);
2017-11-30 21:00:47 +01:00
void texture_destroy(Texture *texture);
#endif // TEXTURE_H_