rolmodl
C++ API for the Simple Directmedia Library 2 (SDL2)
Ren.hpp
1 #pragma once
2 
3 #include <cstdint>
4 #include <optional>
5 #include <iterator>
6 #include <vector>
7 
8 #include <SDL.h>
9 
10 namespace rolmodl {
11  enum class BlendMode;
12  namespace blendMode::unsafe {
13  constexpr BlendMode fromSDLEnum(const SDL_BlendMode m) noexcept;
14  constexpr SDL_BlendMode toSDLEnum(const BlendMode m) noexcept;
15  }
16 
17  struct Flip;
18 
19  namespace ren {
20  struct Flags;
21  struct Info;
22 
23  namespace driver {
24  unsigned int count();
25  Info info(const unsigned int i);
26  }
27  }
28 
29  struct RenScale;
30 
31  struct SrcRectWH;
32  struct SrcRectXY;
33 
34  struct DstRectWH;
35  struct DstRectXY;
36 
37  class Ren;
38  class TexRen;
39 }
rolmodl::RenScale
Rendering scaling factors.
Definition: Ren.hpp:248
rolmodl::blendMode::unsafe::fromSDLEnum
constexpr BlendMode fromSDLEnum(const SDL_BlendMode m) noexcept
Convert an SDL_BlendMode value to a rolmodl::BlendMode value.
Definition: Ren.hpp:49
rolmodl::SrcRectWH
Rectangle specifying the source rectangle for a rendering operation by its top left corner coordinate...
Definition: Ren.hpp:256
rolmodl::Ren
Renderer class that does not support rendering to texture. Use rolmodl::TexRen for rendering to textu...
Definition: Ren.hpp:305
rolmodl::blendMode::unsafe::toSDLEnum
constexpr SDL_BlendMode toSDLEnum(const BlendMode m) noexcept
Convert a rolmodl::BlendMode value to an SDL_BlendMode value.
Definition: Ren.hpp:60
rolmodl::TexRen
Renderer class that supports rendering to texture. Use rolmodl::Ren if you do not need support for re...
Definition: Ren.hpp:601
vector
iterator
rolmodl::DstRectWH
Rectangle specifying the destination rectangle for a rendering operation by its top left corner coord...
Definition: Ren.hpp:277
rolmodl::ren::driver::count
unsigned int count()
Query the amount of available rendering drivers.
Definition: Ren.cpp:15
rolmodl::ren::Info
Information about a rendering driver.
Definition: Ren.hpp:215
rolmodl::Flip
Rendering flip configuration container.
Definition: Ren.hpp:74
cstdint
rolmodl::DstRectXY
Rectangle specifying the destination rectangle for a rendering operation by its top left and bottom r...
Definition: Ren.hpp:282
rolmodl
Main namespace.
Definition: Base.cpp:7
rolmodl::ren::Flags
Renderer configuration (flags) container.
Definition: Ren.hpp:136
rolmodl::BlendMode
BlendMode
Describes how colors are combined when rendering twice to the same place.
Definition: Ren.hpp:21
optional
rolmodl::ren::driver::info
Info info(const unsigned int i)
Query the driver info for the ith rendering driver.
Definition: Ren.cpp:21
rolmodl::SrcRectXY
Rectangle specifying the source rectangle for a rendering operation by its top left and bottom right ...
Definition: Ren.hpp:261