Internal


Warning

This section of the documentation is for the internals of LEXSDL.


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.

Struct definition

This definition might be outdated.

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

typedef struct LexSdlData LexSdlData;