Internal


Warning

This section of the documentation is for the internals of LEXSDL.
Struct definitions might be outdated.
Functions may be static and not in the header.


Hidden implementation details,types,functions are in the LEXSDL_internal.h header so the user of LEXLIB doesn't touches sensible stuff.
Also the header is not in the include directory, its in the project source as headers/LEXSDL_internal.h to avoid being included in projects.
If you want a change in the internals of LEXSDL or want a function added, don't be shy of making a pull request in the GitLab Repo.



State

The internal state is saved as a struct which should not be manually modified and thus it is hidden in the LEXSDL_internal.h header.
And is constructed internaly as LEXSDLDATA in src/lexsdl.c.


Types



Functions



Globals



LexSdlData

Struct used for storing the state of LEXSDL.

Struct definition

struct LexSdlData {
    SDL_Renderer *renderer;
    SDL_Window *window;
    uint8_t bgColor[4];
    uint8_t drColor[4];
    SDL_Texture **textures;
    LEXSDL_Sprite *sprites;
    size_t texturesQuantity;
    size_t textureIdFreed;
};


LEXSDL_Sprite

The general info of sprites is here.

Functions

Struct definition