13GX_CORE_NAMESPACE_BEGIN()
101 void render(
void)
override;
105 virtual void developRender(
void);
124 void updatePriority(f32& childPriority);
130 b32 isFlipX(
void)
const;
132 b32 isFlipY(
void)
const;
136 void updateRect(
void);
141 void controlHandle(
void);
143 void initializeHandlePosition(
void);
145 void initializeHandleQuaternion(
void);
147 void initializeHandleScale(
void);
225 constexpr GxHandle* getHandle(
void )
const {
return _pHandle; }
227 GX_FORCE_INLINE
GxVector3* getHandlePosition(
void ) {
return &_handlePosition; }
229 GX_FORCE_INLINE
GxQuaternion* getHandleQuaternion(
void ) {
return &_handleQuaternion; }
231 GX_FORCE_INLINE
GxVector3* getHandleScale(
void ) {
return &_handleScale; }
267GX_CORE_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
void GxTypedObject
その他
Definition GxDefine.h:213
配列クラス
Definition GxArrayClassBase.h:18
プロパティクラス
Definition GxProperty.h:48
実行時型情報クラス
Definition GxRtti.h:154
2D基礎ユニットクラス
Definition GxUnit2DBase.h:24
void cleanup(void) override
delete直前に呼び出される関数
Definition GxUnit2DBase.cpp:132
b32 isIncluding(const GxPoint2 &mousePosition) const
マウス座標を内包しているか
Definition GxUnit2DBase.cpp:341
GX_FORCE_INLINE const GxRectF & getRect(void) const
描画矩形を取得
Definition GxUnit2DBase.h:165
GX_FORCE_INLINE void setPivot(LAYOUT layout)
矩形の中心位置を設定
Definition GxUnit2DBase.h:173
constexpr const f32 getLocalRotate(void) const
ローカル回転を取得
Definition GxUnit2DBase.h:189
f32 _rotate
回転
Definition GxUnit2DBase.h:248
virtual void renderPrimitive(const GxRectF &rect, f32 positionZ, f32 z, const GxPrimitiveMaterial &material, const GxVector2 &rotateCenter)
プリミティブ描画
Definition GxUnit2DBase.cpp:317
u32 _projectionMatrixId
射影行列ID
Definition GxUnit2DBase.h:252
GX_FORCE_INLINE const GxSize & getSize(void) const
描画サイズを取得
Definition GxUnit2DBase.h:161
GxMatrixAffine _worldMatrix
ワールド行列
Definition GxUnit2DBase.h:240
constexpr void setOffsetChildPriority(f32 priority)
子供の描画プライオリティ補正値を設定
Definition GxUnit2DBase.h:217
virtual void setMaterial(GxPrimitiveMaterial &material) const
マテリアル設定
Definition GxUnit2DBase.cpp:304
GX_FORCE_INLINE void setLocalScale(const GxVector2 &scale)
ローカルスケールを設定
Definition GxUnit2DBase.h:197
GxRectF _rect
描画矩形
Definition GxUnit2DBase.h:241
GxVector2 _scale
スケール
Definition GxUnit2DBase.h:247
GX_FORCE_INLINE const GxVector2 & getPivot(void) const
矩形の中心位置を取得
Definition GxUnit2DBase.h:169
GxSize _size
描画サイズ
Definition GxUnit2DBase.h:243
GX_FORCE_INLINE void setAnchor(LAYOUT layout)
親の基準位置を設定
Definition GxUnit2DBase.h:179
GxVector2 _pivot
矩形の中心位置
Definition GxUnit2DBase.h:244
GX_FORCE_INLINE const GxVector2 & getLocalPosition(void) const
ローカル座標を取得
Definition GxUnit2DBase.h:183
constexpr void setLocalRotate(f32 rotate)
ローカル回転を設定
Definition GxUnit2DBase.h:191
GX_FORCE_INLINE const GxVector2 & getAnchor(void) const
親の基準位置を取得
Definition GxUnit2DBase.h:175
f32 _offsetChildPriority
子供の描画プライオリティ補正値
Definition GxUnit2DBase.h:250
virtual b32 makeMaterial(GxPrimitiveMaterial &material, f32 &zWritePosition) const
マテリアル作成
Definition GxUnit2DBase.cpp:229
constexpr u32 getProjectionMatrixId(void) const
射影行列インデックスを取得
Definition GxUnit2DBase.h:221
GX_FORCE_INLINE const GxVector2 getPosition(void) const
座標を取得
Definition GxUnit2DBase.h:181
GX_FORCE_INLINE const GxMatrixAffine & getWorldMatrix(void) const
ワールド行列を取得
Definition GxUnit2DBase.h:167
LAYOUT
配置定義
Definition GxUnit2DBase.h:36
constexpr const f32 getPriority(void) const
描画プライオリティを取得
Definition GxUnit2DBase.h:213
void preAsyncUpdate(void) override
並列更新(asyncUpdateの前に実行される)
Definition GxUnit2DBase.cpp:147
GxVector2 _position
座標
Definition GxUnit2DBase.h:246
static const GxVector2 LAYOUTS[static_cast< u32 >(LAYOUT::MAX)]
配置座標テーブル
Definition GxUnit2DBase.h:43
constexpr void setBlendType(BLEND_TYPE type)
ブレンドタイプを設定
Definition GxUnit2DBase.h:207
GxColorHDR _color
色
Definition GxUnit2DBase.h:242
GX_FORCE_INLINE const GxVector2 getScale(void) const
スケールを取得
Definition GxUnit2DBase.h:193
constexpr void setProjectionMatrixId(u32 projectionId)
射影行列インデックスを設定
Definition GxUnit2DBase.h:219
GX_FORCE_INLINE const GxColorHDR & getColor(void) const
カラーを取得
Definition GxUnit2DBase.h:199
GX_FORCE_INLINE void setColor(GxColorHDR color)
カラーを設定
Definition GxUnit2DBase.h:201
f32 _priority
描画プライオリティ(0~1)
Definition GxUnit2DBase.h:249
GX_FORCE_INLINE void setSize(const GxSize &size)
描画サイズを設定
Definition GxUnit2DBase.h:163
b32 _useMask
マスク使用判定
Definition GxUnit2DBase.h:254
void forceAsyncUpdate(void) override
強制並列更新(pause中も実行)
Definition GxUnit2DBase.cpp:156
GX_FORCE_INLINE void setPivot(const GxVector2 &pivot)
矩形の中心位置を設定
Definition GxUnit2DBase.h:171
u8 _rootPriority
ルートプライオリティ(0~255)
Definition GxUnit2DBase.h:253
GxUnit2DBase(void)
コンストラクタ
Definition GxUnit2DBase.cpp:78
BLEND_TYPE
ブレンドタイプ
Definition GxUnit2DBase.h:57
constexpr BLEND_TYPE getBlendType(void) const
ブレンドタイプを取得
Definition GxUnit2DBase.h:205
static const GxSize DEFAULT_SIZE
デフォルトサイズ
Definition GxUnit2DBase.h:74
GX_FORCE_INLINE void setUseMask(b32 use)
マスク使用判定を設定
Definition GxUnit2DBase.h:211
GxVector2 _anchor
親の基準位置
Definition GxUnit2DBase.h:245
constexpr const f32 getOffsetChildPriority(void) const
子供の描画プライオリティ補正値を取得
Definition GxUnit2DBase.h:215
GX_FORCE_INLINE f32 getRotate(void) const
回転を取得
Definition GxUnit2DBase.h:187
GX_FORCE_INLINE const b32 isUseMask(void) const
マスク使用判定を取得
Definition GxUnit2DBase.h:209
GX_FORCE_INLINE void setAnchor(const GxVector2 &anchor)
親の基準位置を設定
Definition GxUnit2DBase.h:177
b32 setup(void) override
初期化
Definition GxUnit2DBase.cpp:104
void updateWorldMatrix(void)
ワールドマトリクスを更新
Definition GxUnit2DBase.cpp:325
b32 _updatedWorldMatrix
ワールドマトリクス更新済みフラグ
Definition GxUnit2DBase.h:255
void render(void) override
描画
Definition GxUnit2DBase.cpp:172
GX_FORCE_INLINE void setLocalPosition(const GxVector2 &position)
ローカル座標を設定
Definition GxUnit2DBase.h:185
constexpr void setColorA(f32 alpha)
カラーαを設定
Definition GxUnit2DBase.h:203
GX_FORCE_INLINE const GxVector2 & getLocalScale(void) const
ローカルスケールを取得
Definition GxUnit2DBase.h:195
BLEND_TYPE _blendType
ブレンドタイプ
Definition GxUnit2DBase.h:251
ユニット基礎クラス
Definition GxUnitBase.h:45
色(HDR)
Definition GxColor.h:241
f32 _alpha
不透明度(0.0f~1.0f)
Definition GxColor.h:364
アフィン変換行列(行優先)
Definition GxMatrix.h:330
GX_FORCE_INLINE GxVector3 getScale(void) const
スケールを取得
Definition GxMatrix.inl:2165
GX_FORCE_INLINE GxVector3 getRotateXYZ(void) const
XYZ軸回転角を取得
Definition GxMatrix.inl:1895
GX_FORCE_INLINE const GxVector3 & getPosition(void) const
平行移動量を取得
Definition GxMatrix.h:454
座標
Definition GxStruct.h:867
プリミティブマテリアル
Definition GxPrimitive.h:103
クォータニオン
Definition GxQuaternion.h:19
実数矩形
Definition GxStruct.h:1100
サイズ
Definition GxStruct.h:730
2次元ベクトル
Definition GxVector.h:34
3次元ベクトル
Definition GxVector.h:245
f32 _z
Z値
Definition GxVector.h:572
f32 _y
Y値
Definition GxVector.h:571
f32 _x
X値
Definition GxVector.h:570
32bitブーリアン
Definition GxDefine.h:173