#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_drag_select
◆ EZ_create_drag_select()
Creates a new EZ_drag_select structure.
This function initializes a new EZ_drag_select structure, which is used to handle drag selection within an SDL window. It loads the specified image, creates a texture from it, and sets up the drawable and interactible components of the drag selection.
- Parameters
-
select_img | The path to the image file used for the drag selection. |
renderer | The SDL_Renderer used for rendering the selection. |
dst_anchore | The anchore_point defining the destination anchore for the drawable. |
- Returns
- A pointer to the newly created EZ_drag_select structure.