2 #include <Multimedia/SDX.h>
3 #include <Multimedia/Color.h>
4 #include <Framework/Shape.h>
12 NoBlend = SDL_BLENDMODE_NONE,
13 Alpha = SDL_BLENDMODE_BLEND,
14 Add = SDL_BLENDMODE_ADD,
15 Mula = SDL_BLENDMODE_MOD
26 RendererHandle handle = 0;
29 RendererHandle GetHandle()
40 void Create(WindowHandle 元Window)
42 handle = SDL_CreateRenderer(元Window, -1, SDL_RENDERER_PRESENTVSYNC);
48 if (handle == 0)
return false;
49 SDL_DestroyRenderer(handle);
61 RendererHandle handle = 0;
64 BlendMode nowBlendMode = BlendMode::NoBlend;
85 Single().handle = 描画先Renderer.GetHandle();
119 SDL_SetRenderDrawColor
134 Single().nowBlendMode = ブレンドモード;
135 if(設定値 > 255)
Single().blendParam = 255;
136 else if(設定値 < 0)
Single().blendParam = 0;
137 else Single().blendParam = 設定値;
static bool SetBlendMode(BlendMode ブレンドモード, int 設定値)
ブレンド描画のモードを設定.
Definition: Screen.h:132
描画先を表すクラス.
Definition: Screen.h:56
int GetGreen() const
緑の要素を取得.
Definition: Color.h:31
矩形を表す図形クラス.
Definition: Shape.h:536
static bool SaveBmp(const Rect &領域, const char *ファイル名)
描画対象になっている画面の一部をBMP形式で保存[未実装].
Definition: Screen.h:143
static RendererHandle GetHandle()
スクリーンハンドルを取得.
Definition: Screen.h:77
static bool Flip()
描画内容を反映.
Definition: Screen.h:103
int GetBlue() const
青の要素を取得.
Definition: Color.h:37
static Screen & Single()
シングルトンなインスタンスを取得.
Definition: Screen.h:70
static bool SetBright(Color 輝度)
描画輝度を設定.
Definition: Screen.h:149
static bool SetArea(const Rect &描画領域)
描画範囲を設定する、設定範囲外には描画されない[未実装].
Definition: Screen.h:89
static bool Clear()
画面を消去する.
Definition: Screen.h:117
描画先を表すクラス.
Definition: Screen.h:23
色を表すクラス.
Definition: Color.h:7
static bool SetTransColor(Color 輝度)
透過色を設定[未実装].
Definition: Screen.h:156
static void SetRenderer(Renderer &描画先Renderer)
スクリーンハンドルを設定.
Definition: Screen.h:83
int GetRed() const
赤の要素を取得.
Definition: Color.h:25
static bool SetBackColor(Color 背景色)
Screen::Clear後の色を設定.
Definition: Screen.h:95
BlendMode
ブレンドモード.
Definition: Screen.h:10
static bool Copy()
裏画面の内容を、表画面にコピー.
Definition: Screen.h:110