changed: gcc8 base update
[opensg.git] / Source / System / State / Base / OSGShaderStorageBufferObjBaseChunk.h
blob23a67e43b0ee5b817b4f78945c2fb3095a99d45e
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
18 * *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 #ifndef _OSGSHADERSTORAGEBUFFEROBJBASECHUNK_H_
40 #define _OSGSHADERSTORAGEBUFFEROBJBASECHUNK_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGShaderStorageBufferObjBaseChunkBase.h"
47 OSG_BEGIN_NAMESPACE
49 /*! \brief ShaderStorageBufferObjBaseChunk class. See \ref
50 PageSystemShaderStorageBufferObjBaseChunk for a description.
53 class OSG_SYSTEM_DLLMAPPING ShaderStorageBufferObjBaseChunk : public ShaderStorageBufferObjBaseChunkBase
55 protected:
57 /*========================== PUBLIC =================================*/
59 public:
61 typedef ShaderStorageBufferObjBaseChunkBase Inherited;
62 typedef ShaderStorageBufferObjBaseChunk Self;
64 /*---------------------------------------------------------------------*/
65 /*! \name Chunk Class Access */
66 /*! \{ */
68 virtual const StateChunkClass *getClass(void) const;
70 /*! \} */
71 /*---------------------------------------------------------------------*/
72 /*! \name Static Chunk Class Access */
73 /*! \{ */
75 static UInt32 getStaticClassId(void);
76 static const StateChunkClass *getStaticClass (void);
78 /*! \} */
79 /*---------------------------------------------------------------------*/
80 /*! \name Chunk Id */
81 /*! \{ */
83 virtual UInt16 getChunkId(void);
85 /*! \} */
86 /*---------------------------------------------------------------------*/
87 /*! \name Sync */
88 /*! \{ */
90 virtual void changed(ConstFieldMaskArg whichField,
91 UInt32 origin,
92 BitVector details );
94 /*! \} */
95 /*---------------------------------------------------------------------*/
96 /*! \name Output */
97 /*! \{ */
99 virtual void dump( UInt32 uiIndent = 0,
100 const BitVector bvFlags = 0) const;
102 /*! \} */
103 /*---------------------------------------------------------------------*/
104 /*! \name query */
105 /*! \{ */
107 virtual void validate (DrawEnv *pEnv) = 0;
108 virtual Int32 getOpenGLId (DrawEnv *pEnv) = 0;
110 /*! \} */
111 /*========================= PROTECTED ===============================*/
113 protected:
114 UInt16 _uiChunkId;
116 // Variables should all be in ShaderStorageBufferObjBaseChunkBase.
118 /*---------------------------------------------------------------------*/
119 /*! \name Init */
120 /*! \{ */
122 void onCreate (const ShaderStorageBufferObjBaseChunk *source = NULL);
123 void onCreateAspect(const ShaderStorageBufferObjBaseChunk *createAspect,
124 const ShaderStorageBufferObjBaseChunk *source = NULL);
126 /*! \} */
127 /*---------------------------------------------------------------------*/
128 /*! \name Constructors */
129 /*! \{ */
131 ShaderStorageBufferObjBaseChunk(void);
132 ShaderStorageBufferObjBaseChunk(const ShaderStorageBufferObjBaseChunk &source);
134 /*! \} */
135 /*---------------------------------------------------------------------*/
136 /*! \name Destructors */
137 /*! \{ */
139 virtual ~ShaderStorageBufferObjBaseChunk(void);
141 /*! \} */
142 /*---------------------------------------------------------------------*/
143 /*! \name Init */
144 /*! \{ */
146 static void initMethod(InitPhase ePhase);
148 static StateChunkClass _class;
149 static volatile UInt16 _uiChunkCounter;
151 /*! \} */
152 /*========================== PRIVATE ================================*/
154 private:
156 friend class FieldContainer;
157 friend class ShaderStorageBufferObjBaseChunkBase;
159 // prohibit default functions (move to 'public' if you need one)
160 void operator =(const ShaderStorageBufferObjBaseChunk &source);
163 typedef ShaderStorageBufferObjBaseChunk *ShaderStorageBufferObjBaseChunkP;
165 OSG_END_NAMESPACE
167 #include "OSGShaderStorageBufferObjBaseChunkBase.inl"
168 #include "OSGShaderStorageBufferObjBaseChunk.inl"
170 #endif /* _OSGSHADERSTORAGEBUFFEROBJBASECHUNK_H_ */