/*---------------------------------------------------------------------------* Project: NintendoWare File: gfx_ResParticleShapeBuilder.h Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Revision: 16943 $ *---------------------------------------------------------------------------*/ #ifndef NW_GFX_RESPARTICLESHAPEBUILDER_H_ #define NW_GFX_RESPARTICLESHAPEBUILDER_H_ #include #include #include #include namespace nw { namespace gfx { namespace res { //! @details :private struct ResParticleShapeBuilderData { nw::ut::ResTypeInfo typeInfo; nw::ut::ResBool m_IsAscendingOrder; u8 padding_0[3]; nw::ut::ResVec3 m_DrawOffset; }; //-------------------------------------------------------------------------- //! @brief パーティクルシェイプのビルダーを表すバイナリリソースクラスです。 //-------------------------------------------------------------------------- class ResParticleShapeBuilder : public nw::ut::ResCommon< ResParticleShapeBuilderData > { public: enum { TYPE_INFO = NW_GFX_RES_TYPE_INFO(ResParticleShapeBuilder) }; enum { SIGNATURE = NW_RES_SIGNATURE32('BUIL') }; NW_RES_CTOR( ResParticleShapeBuilder ) NW_RES_FIELD_BOOL_PRIMITIVE_DECL( AscendingOrder ) NW_RES_FIELD_VECTOR3_DECL( nw::math::VEC3, DrawOffset ) void Setup(); //--------------------------------------------------------------------------- //! @brief インスタンスの型情報を取得します。 //! //! @return 型情報です。 //--------------------------------------------------------------------------- nw::ut::ResTypeInfo GetTypeInfo() const { return ref().typeInfo; } }; //! @details :private struct ResParticleBillboardShapeBuilderData : public ResParticleShapeBuilderData { }; //-------------------------------------------------------------------------- //! @brief パーティクルスクリーン平行ビルボードシェイプのビルダーを表すバイナリリソースクラスです。 //-------------------------------------------------------------------------- class ResParticleBillboardShapeBuilder : public ResParticleShapeBuilder { public: enum { TYPE_INFO = NW_GFX_RES_TYPE_INFO(ResParticleBillboardShapeBuilder) }; enum { SIGNATURE = NW_RES_SIGNATURE32('BILL') }; NW_RES_CTOR_INHERIT( ResParticleBillboardShapeBuilder, ResParticleShapeBuilder ) void Setup(); }; //! @details :private struct ResParticleWorldBillboardShapeBuilderData : public ResParticleShapeBuilderData { }; //-------------------------------------------------------------------------- //! @brief パーティクルワールド指向ビルボードシェイプのビルダーを表すバイナリリソースクラスです。 //-------------------------------------------------------------------------- class ResParticleWorldBillboardShapeBuilder : public ResParticleShapeBuilder { public: enum { TYPE_INFO = NW_GFX_RES_TYPE_INFO(ResParticleWorldBillboardShapeBuilder) }; enum { SIGNATURE = NW_RES_SIGNATURE32('WBLL') }; NW_RES_CTOR_INHERIT( ResParticleWorldBillboardShapeBuilder, ResParticleShapeBuilder ) void Setup(); }; //! @details :private struct ResParticleYBillboardShapeBuilderData : public ResParticleShapeBuilderData { }; //-------------------------------------------------------------------------- //! @brief パーティクルY軸ビルボードシェイプのビルダーを表すバイナリリソースクラスです。 //-------------------------------------------------------------------------- class ResParticleYBillboardShapeBuilder : public ResParticleShapeBuilder { public: enum { TYPE_INFO = NW_GFX_RES_TYPE_INFO(ResParticleYBillboardShapeBuilder) }; enum { SIGNATURE = NW_RES_SIGNATURE32('YBIL') }; NW_RES_CTOR_INHERIT( ResParticleYBillboardShapeBuilder, ResParticleShapeBuilder ) void Setup(); }; //! @details :private struct ResParticleXyPlaneShapeBuilderData : public ResParticleShapeBuilderData { }; //-------------------------------------------------------------------------- //! @brief パーティクルXY軸平面シェイプのビルダーを表すバイナリリソースクラスです。 //-------------------------------------------------------------------------- class ResParticleXyPlaneShapeBuilder : public ResParticleShapeBuilder { public: enum { TYPE_INFO = NW_GFX_RES_TYPE_INFO(ResParticleXyPlaneShapeBuilder) }; enum { SIGNATURE = NW_RES_SIGNATURE32('XYPL') }; NW_RES_CTOR_INHERIT( ResParticleXyPlaneShapeBuilder, ResParticleShapeBuilder ) void Setup(); }; } // namespace res } // namespace gfx } // namespace nw #endif // NW_GFX_RESPARTICLESHAPEBUILDER_H_