SDL2lazy
Classes
SlSprite.h File Reference

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"
Include dependency graph for SlSprite.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SlRenderSettings
 
class  SlSprite
 

Detailed Description

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.