OCRudoku  v1.0
Resolve word grid with ease
Loading...
Searching...
No Matches
EZ_utils.h
Go to the documentation of this file.
1#include <SDL2/SDL.h>
2#include <SDL2/SDL_image.h>
4
5#ifndef EZ_UTILS_H
6#define EZ_UTILS_H
7
8typedef struct
9{
11 SDL_Rect src_rect;
12 SDL_Texture* texture;
13 SDL_Color color;
14 char visible;
15 void* data;
16 void (*on_draw)(SDL_Window* window, SDL_Renderer* renderer, void*);
18
19typedef struct interactible
20{
23 void (*process_interaction)(SDL_Window* window, SDL_Renderer* renderer, SDL_Event*, struct interactible*, void*);
24 char enable;
26
27typedef struct menu
28{
34 void (*process_event)(SDL_Window* window, SDL_Renderer* renderer, SDL_Event*, struct menu*);
35 void (*unload_menu)(void);
37
38#endif
struct interactible EZ_INTERACTIBLE
struct menu EZ_MENU
Definition EZ_utils.h:9
char visible
Definition EZ_utils.h:14
SDL_Color color
Definition EZ_utils.h:13
void * data
Definition EZ_utils.h:15
SDL_Texture * texture
Definition EZ_utils.h:12
anchore_point dst_anchore
Definition EZ_utils.h:10
SDL_Rect src_rect
Definition EZ_utils.h:11
Definition RenderingUtils.h:7
Definition EZ_utils.h:20
anchore_point anchore
Definition EZ_utils.h:21
void * process_data
Definition EZ_utils.h:22
void(* process_interaction)(SDL_Window *window, SDL_Renderer *renderer, SDL_Event *, struct interactible *, void *)
Definition EZ_utils.h:23
char enable
Definition EZ_utils.h:24
Definition EZ_utils.h:28
void(* process_event)(SDL_Window *window, SDL_Renderer *renderer, SDL_Event *, struct menu *)
Definition EZ_utils.h:34
EZ_INTERACTIBLE ** interactible_elements
Definition EZ_utils.h:31
EZ_DRAWABLE ** drawable_elements
Definition EZ_utils.h:29
size_t interactible_elements_len
Definition EZ_utils.h:32
void(* unload_menu)(void)
Definition EZ_utils.h:35
size_t drawable_elements_len
Definition EZ_utils.h:30
SDL_Color background_color
Definition EZ_utils.h:33