fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / State / Base / OSGUniformBufferObjBaseChunk.inl
blob8087e92dc4a27a3046f3a2da383c62aa032301f0
1 /*---------------------------------------------------------------------------*\\r
2  *                                OpenSG                                     *\r
3  *                                                                           *\r
4  *                                                                           *\r
5  *               Copyright (C) 2000-2013 by the OpenSG Forum                 *\r
6  *                                                                           *\r
7  * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net  *\r
8  *                                                                           *\r
9 \*---------------------------------------------------------------------------*/\r
10 /*---------------------------------------------------------------------------*\\r
11  *                                License                                    *\r
12  *                                                                           *\r
13  * This library is free software; you can redistribute it and/or modify it   *\r
14  * under the terms of the GNU Library General Public License as published    *\r
15  * by the Free Software Foundation, version 2.                               *\r
16  *                                                                           *\r
17  * This library is distributed in the hope that it will be useful, but       *\r
18  * WITHOUT ANY WARRANTY; without even the implied warranty of                *\r
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *\r
20  * Library General Public License for more details.                          *\r
21  *                                                                           *\r
22  * You should have received a copy of the GNU Library General Public         *\r
23  * License along with this library; if not, write to the Free Software       *\r
24  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *\r
25  *                                                                           *\r
26 \*---------------------------------------------------------------------------*/\r
27 /*---------------------------------------------------------------------------*\\r
28  *                                Changes                                    *\r
29  *                                                                           *\r
30  *                                                                           *\r
31  *                                                                           *\r
32  *                                                                           *\r
33  *                                                                           *\r
34  *                                                                           *\r
35 \*---------------------------------------------------------------------------*/\r
37 //---------------------------------------------------------------------------\r
38 //  Includes\r
39 //---------------------------------------------------------------------------\r
41 OSG_BEGIN_NAMESPACE\r
43 inline\r
44 const StateChunkClass *UniformBufferObjBaseChunk::getStaticClass(void)\r
45 {\r
46     return &UniformBufferObjBaseChunk::_class;\r
47 }\r
49 inline\r
50 UInt32 UniformBufferObjBaseChunk::getStaticClassId(void)\r
51 {\r
52     return getStaticClass()->getId();\r
53 }\r
55 inline\r
56 UInt16 UniformBufferObjBaseChunk::getChunkId(void)\r
57 {\r
58     return _uiChunkId;\r
59 }\r
61 OSG_END_NAMESPACE\r