|
| Context (const Context &context)=delete |
|
| Context (Context &&context) noexcept=default |
|
Context & | operator= (const Context &context)=delete |
|
Context & | operator= (Context &&context)=default |
|
| Context (SdlWindow &window, int index, Uint32 flags) |
|
| operator bool () const noexcept |
| Test for a valid Context.
|
|
auto | get () const |
| Get an opaque pointer for API calls.
|
|
void | setDrawBlendMode (SDL_BlendMode blendMode) |
| Set the draw blend mode.
|
|
void | copyFullTexture (Texture &source, Texture &destination) |
| Copy source Texture to destination Texture and set the BlendMode on the destination Texture. More...
|
|
int | renderClear () |
| Prepare for the start of a rendering iteration.
|
|
void | renderPresent () |
| Complete a rendering iteration.
|
|
int | renderCopy (const Texture &texture) |
| Copy a Texture to the current render target using the size of the Texture and the size of the target. More...
|
|
int | renderCopy (const Texture &texture, Rectangle dst) |
| Copy a Texture to the current render target using the size of the Texture and specified destination rectangle. More...
|
|
int | renderCopy (const Texture &texture, Rectangle src, Rectangle dst) |
| Copy part of the Texture specified by the source Rectangle to the render target location specified by the destination Rectangle. More...
|
|
int | renderCopyEx (Texture &texture, Rectangle src, Rectangle dst, double angle, RenderFlip renderFlip, std::optional< Position< int >> point=std::nullopt) const |
| Render with extensions. More...
|
|
int | setDrawColor (color::RGBA color) |
| Set the drawing color used for drawing Rectangles, lines and clearing. More...
|
|
int | setDrawColor (color::HSVA color) |
| Set the drawing color used for drawing Rectangles, lines and clearing. More...
|
|
int | fillRect (Rectangle rect, color::RGBA color) |
| Render a filled Rectangle. More...
|
|
int | drawPoint (const Position< int > &p, const color::RGBA &color) |
| Render a pixel. More...
|
|
int | drawLine (const Position< int > &p0, const Position< int > &p1) |
|
Context
An abstraction of graphics rendering context.