殺虫侍
読み取り中…
検索中…
一致する文字列を見つけられません
GameText 構造体

2D テキストの内容・位置・色・表示状態を保持する構造体 [詳解]

#include <game_text.h>

公開メンバ関数

 GameText ()
 デフォルトコンストラクタ
 GameText (const std::wstring &t, float px, float py, DirectX::XMFLOAT4 c)
 テキスト・位置・色を指定するコンストラクタ

公開変数類

std::wstring text
 描画するテキスト文字列
float x
 描画 X 座標(スクリーン空間)
float y
 描画 Y 座標(スクリーン空間)
DirectX::XMFLOAT4 color = DirectX::XMFLOAT4(1.f, 1.f, 1.f, 1.f)
 テキストカラー(RGBA)
bool visible = true
 表示フラグ

詳解

2D テキストの内容・位置・色・表示状態を保持する構造体

構築子と解体子

◆ GameText() [1/2]

GameText::GameText ( )
inline

デフォルトコンストラクタ

◆ GameText() [2/2]

GameText::GameText ( const std::wstring & t,
float px,
float py,
DirectX::XMFLOAT4 c )
inline

テキスト・位置・色を指定するコンストラクタ

引数
tテキスト文字列
pxX 座標
pyY 座標
cテキストカラー(RGBA)

メンバ詳解

◆ color

DirectX::XMFLOAT4 GameText::color = DirectX::XMFLOAT4(1.f, 1.f, 1.f, 1.f)

テキストカラー(RGBA)

◆ text

std::wstring GameText::text

描画するテキスト文字列

◆ visible

bool GameText::visible = true

表示フラグ

◆ x

float GameText::x

描画 X 座標(スクリーン空間)

◆ y

float GameText::y

描画 Y 座標(スクリーン空間)


この構造体詳解は次のファイルから抽出されました: