OROCHI
Loading...
Searching...
No Matches
GxUnitHudImageRender.h
Go to the documentation of this file.
1
//===========================================================================
9
//===========================================================================
10
#pragma once
11
12
GX_HUD_NAMESPACE_BEGIN()
13
14
//===========================================================================
16
//===========================================================================
17
class
GxUnitHudImageRender
: public
GxUnit2DBase
18
{
19
//-------------------------------------------------------------
21
//-------------------------------------------------------------
23
public
:
24
// RTTI定義
25
GX_RTTI_CLASS_NAME(
GxUnitHudImageRender
,
GxUnit2DBase
,
"HUD描画画像"
)
26
// ClassBaseReference継承クラス用禁止宣言
27
GX_PROHIBIT_CLASS_BASE_REFERENCE
(
GxUnitHudImageRender
)
28
29
30
//-------------------------------------------------------------
32
//-------------------------------------------------------------
34
public
:
36
GxUnitHudImageRender
(
void
);
37
39
void
cleanup(
void
)
override
;
40
42
//-------------------------------------------------------------
44
//-------------------------------------------------------------
46
protected
:
48
void
setRenderTexture
(
GxRenderTexture
* pRenderTexture) {
GX_SET_CLASS_BASE_REFERENCE
(_pRenderTexture, pRenderTexture); }
50
void
setMaterial(
GxPrimitiveMaterial
& material )
const override
;
52
void
renderPrimitive(
const
GxRectF
& rect, f32 posZ, f32 z,
const
GxPrimitiveMaterial
& material,
const
GxVector2
& rotateCenter )
override
;
53
55
//-------------------------------------------------------------
57
//-------------------------------------------------------------
59
protected
:
60
GxRenderTexture
*
_pRenderTexture
;
61
63
};
64
65
GX_CORE_NAMESPACE_END()
GX_PROHIBIT_CLASS_BASE_REFERENCE
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition
GxBase.h:244
GX_SET_CLASS_BASE_REFERENCE
#define GX_SET_CLASS_BASE_REFERENCE(__DST__, __SRC__)
オブジェクト設定(参照カウンタを使用する場合)
Definition
GxBase.h:318
GxRenderTexture
テクスチャクラス
Definition
GxRenderTexture.h:19
GxUnit2DBase
2D基礎ユニットクラス
Definition
GxUnit2DBase.h:24
GxUnitHudImageRender
HUD描画画像ユニット
Definition
GxUnitHudImageRender.h:18
GxUnitHudImageRender::_pRenderTexture
GxRenderTexture * _pRenderTexture
描画テクスチャ
Definition
GxUnitHudImageRender.h:60
GxUnitHudImageRender::setRenderTexture
void setRenderTexture(GxRenderTexture *pRenderTexture)
描画テクスチャを設定
Definition
GxUnitHudImageRender.h:48
GxPrimitiveMaterial
プリミティブマテリアル
Definition
GxPrimitive.h:103
GxRectF
実数矩形
Definition
GxStruct.h:1100
GxVector2
2次元ベクトル
Definition
GxVector.h:34
middleware
GxHud
src
GxUnitHudImageRender.h
Generated by
1.12.0