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