OROCHI
 
Loading...
Searching...
No Matches
GxUnitHudImage.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12GX_HUD_NAMESPACE_BEGIN()
13
14//===========================================================================
16//===========================================================================
18{
19 //-------------------------------------------------------------
21 //-------------------------------------------------------------
23public:
24 // RTTI定義
25 GX_RTTI_CLASS_NAME(GxUnitHudImage, GxUnit2DImageBase, "HUD画像")
26 // ClassBaseReference継承クラス用禁止宣言
28
29
30 //-------------------------------------------------------------
32 //-------------------------------------------------------------
34public:
36 GxUnitHudImage( void );
37
39 //-------------------------------------------------------------
41 //-------------------------------------------------------------
43protected:
45 void renderPrimitive( const GxRectF& rect, f32 posZ, f32 z, const GxPrimitiveMaterial& material, const GxVector2& rotateCenter ) override;
46
48 //-----------------------------------------------------------
50 //-----------------------------------------------------------
52public:
54 GX_FORCE_INLINE const GxVector2& getUVLeftTop( void ) const { return _uvLeftTop; }
56 GX_FORCE_INLINE void setUVLeftTop( const GxVector2& uv ) { _uvLeftTop = uv; }
58 GX_FORCE_INLINE const GxVector2& getUVRightBottom( void ) const { return _uvRightBottom; }
60 GX_FORCE_INLINE void setUVRightBottom( const GxVector2& uv ) { _uvRightBottom = uv; }
62 GX_FORCE_INLINE b32 getInverseAlpha( void ) const { return _inverseAlpha; }
64 GX_FORCE_INLINE void setInverseAlpha( b32 flag ) { _inverseAlpha = flag; }
65
67 //-------------------------------------------------------------
69 //-------------------------------------------------------------
71protected:
74
76
78};
79
80GX_HUD_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
2D画像ユニット基礎クラス
Definition GxUnit2DImageBase.h:18
HUD画像ユニットクラス
Definition GxUnitHudImage.h:18
GX_FORCE_INLINE void setUVLeftTop(const GxVector2 &uv)
左上UVを設定
Definition GxUnitHudImage.h:56
GX_FORCE_INLINE void setUVRightBottom(const GxVector2 &uv)
右下UVを設定
Definition GxUnitHudImage.h:60
GX_FORCE_INLINE void setInverseAlpha(b32 flag)
アルファ抜き反転を設定
Definition GxUnitHudImage.h:64
b32 _inverseAlpha
アルファ抜き反転
Definition GxUnitHudImage.h:75
GX_FORCE_INLINE const GxVector2 & getUVRightBottom(void) const
右下UVを取得
Definition GxUnitHudImage.h:58
GxVector2 _uvLeftTop
左上UV
Definition GxUnitHudImage.h:72
GX_FORCE_INLINE const GxVector2 & getUVLeftTop(void) const
左上UVを取得
Definition GxUnitHudImage.h:54
GxVector2 _uvRightBottom
右下UV
Definition GxUnitHudImage.h:73
GX_FORCE_INLINE b32 getInverseAlpha(void) const
アルファ抜き反転を取得
Definition GxUnitHudImage.h:62
プリミティブマテリアル
Definition GxPrimitive.h:103
実数矩形
Definition GxStruct.h:1100
2次元ベクトル
Definition GxVector.h:34
32bitブーリアン
Definition GxDefine.h:173