1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: gfx_ResParticleShape.h 4 5 Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain proprietary 8 information of Nintendo and/or its licensed developers and are protected by 9 national and international copyright laws. They may not be disclosed to third 10 parties or copied or duplicated in any form, in whole or in part, without the 11 prior written consent of Nintendo. 12 13 The content herein is highly confidential and should be handled accordingly. 14 15 $Revision: $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifndef NW_GFX_RESPARTICLESHAPE_H_ 19 #define NW_GFX_RESPARTICLESHAPE_H_ 20 21 #include <nw/ut/ut_ResUtil.h> 22 #include <nw/ut/ut_ResDictionary.h> 23 #include <nw/gfx/res/gfx_ResTypeInfo.h> 24 #include <nw/gfx/res/gfx_ResVertex.h> 25 #include <nw/gfx/res/gfx_ResShape.h> 26 27 namespace nw { 28 namespace gfx { 29 namespace res { 30 31 //! @details :private 32 struct ResParticleShapeData : public ResShapeData 33 { 34 nw::ut::ResS32 m_VertexAttributesTableCount; 35 nw::ut::Offset toVertexAttributesTable; 36 }; 37 38 39 //-------------------------------------------------------------------------- 40 //! @brief パーティクルシェイプを表すバイナリリソースクラスです。 41 //-------------------------------------------------------------------------- 42 class ResParticleShape : public ResShape 43 { 44 public: 45 enum { TYPE_INFO = NW_GFX_RES_TYPE_INFO(ResParticleShape) }; 46 enum { SIGNATURE = NW_RES_SIGNATURE32('PSHP') }; 47 48 NW_RES_CTOR_INHERIT( ResParticleShape, ResShape ) 49 NW_RES_FIELD_CLASS_LIST_DECL( ResVertexAttribute, VertexAttributes ) // GetVertexAttributes(int idx), GetVertexAttributesCount() 50 51 void Setup(); 52 }; 53 54 } // namespace res 55 } // namespace gfx 56 } // namespace nw 57 58 #endif // NW_GFX_RESPARTICLESHAPE_H_ 59