breakhack/src/pointer.h

28 lines
427 B
C
Raw Normal View History

2018-01-31 09:15:33 +01:00
#ifndef POINTER_H_
#define POINTER_H_
#include <SDL2/SDL.h>
#include "sprite.h"
#include "camera.h"
typedef struct Pointer_t {
Sprite *sprite;
} Pointer;
Pointer *
pointer_create(SDL_Renderer *renderer);
void
pointer_handle_event(Pointer*, SDL_Event *event);
2018-02-02 17:05:41 +01:00
void
pointer_toggle_clickable_pointer(Pointer *, bool clickable);
2018-01-31 09:15:33 +01:00
void
pointer_render(Pointer*, Camera*);
void
pointer_destroy(Pointer*);
#endif // POINTER_H_