#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "../EZ_utils.h"
#include "../../Rendering/RenderingUtils.h"
Go to the source code of this file.
◆ EZ_button
◆ EZ_create_button()
Creates an EZ_button with the specified background image and anchoring point.
This function loads an image from the specified file path, creates an SDL texture from it, and initializes an EZ_button structure with the given renderer and anchoring point.
- Parameters
-
back_img | The file path to the background image for the button. |
renderer | The SDL_Renderer used for rendering the button. |
dst_anchore | The anchoring point for the button. |
- Returns
- A pointer to the newly created EZ_button.