|
SDL2lazy
|
SlSprite class, RenderOptions enum, SlRenderSettings struct. More...
#include <cstdint>#include <memory>#include <string>#include <vector>#include <SDL2/SDL.h>#include <SDL2/SDL_image.h>#include "SlRenderOptions.h"#include "SlTexture.h"Go to the source code of this file.
Classes | |
| struct | SlRenderSettings |
| class | SlSprite |
SlSprite class, RenderOptions enum, SlRenderSettings struct.
A SlSprite is any object that will be rendered from a texture. It contains a pointer to a SlTexture and has to be created after the SlTexture.
The SlSprite has a source rectangle which defines which part of the texture is rendered and cannnot be changed. It can have several destination rectangles with different render options to render it multiple times on screen.
1.8.9.1