殺虫侍
読み取り中…
検索中…
一致する文字列を見つけられません
game_text.h
[詳解]
1
7#pragma once
8#include <string>
9
14{
15 std::wstring text;
16 float x;
17 float y;
18 DirectX::XMFLOAT4 color = DirectX::XMFLOAT4(1.f, 1.f, 1.f, 1.f);
19 bool visible = true;
20
23
31 GameText(const std::wstring& t, float px, float py, DirectX::XMFLOAT4 c)
32 : text(t), x(px), y(py), color(c) {
33 }
34};
GameText()
デフォルトコンストラクタ
Definition game_text.h:22
float y
描画 Y 座標(スクリーン空間)
Definition game_text.h:17
float x
描画 X 座標(スクリーン空間)
Definition game_text.h:16
GameText(const std::wstring &t, float px, float py, DirectX::XMFLOAT4 c)
テキスト・位置・色を指定するコンストラクタ
Definition game_text.h:31
std::wstring text
描画するテキスト文字列
Definition game_text.h:15
DirectX::XMFLOAT4 color
テキストカラー(RGBA)
Definition game_text.h:18
bool visible
表示フラグ
Definition game_text.h:19