OCRudoku  v1.0
Resolve word grid with ease
Loading...
Searching...
No Matches
EZ_list.h File Reference
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "../EZ_utils.h"
Include dependency graph for EZ_list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ez_le
 
struct  EZ_list
 

Typedefs

typedef struct ez_le EZ_list_element
 

Functions

EZ_listEZ_create_image (SDL_Surface *surface, SDL_Renderer *renderer, anchore_point dst_anchore, int auto_aspect)
 Creates an EZ_image from an SDL_Surface.
 

Typedef Documentation

◆ EZ_list_element

typedef struct ez_le EZ_list_element

Function Documentation

◆ EZ_create_image()

EZ_list * EZ_create_image ( SDL_Surface * surface,
SDL_Renderer * renderer,
anchore_point dst_anchore,
int auto_aspect )

Creates an EZ_image from an SDL_Surface.

This function creates an EZ_image structure from the given SDL_Surface and renderer. The created EZ_image can be used for rendering with SDL.

Parameters
surfaceThe SDL_Surface to create the image from.
rendererThe SDL_Renderer to use for creating the texture.
dst_anchoreThe anchore point for the destination.
auto_aspectIf non-zero, the aspect ratio of the image will be maintained.
Returns
A pointer to the created EZ_image structure.
Return values
NULLif the texture could not be created from the surface.