changed: gcc8 base update
[opensg.git] / Source / System / State / OpenGL / OSGTextureEnvChunk.inl
blobb5f1ce0d94427711f81ffc09e87ab0a7b6c6d802
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *                     Copyright 2000-2002 by OpenSG Forum                   *
6  *                                                                           *
7  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
8  *                                                                           *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
11  *                                License                                    *
12  *                                                                           *
13  * This library is free software; you can redistribute it and/or modify it   *
14  * under the terms of the GNU Library General Public License as published    *
15  * by the Free Software Foundation, version 2.                               *
16  *                                                                           *
17  * This library is distributed in the hope that it will be useful, but       *
18  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
20  * Library General Public License for more details.                          *
21  *                                                                           *
22  * You should have received a copy of the GNU Library General Public         *
23  * License along with this library; if not, write to the Free Software       *
24  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
25  *                                                                           *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
28  *                                Changes                                    *
29  *                                                                           *
30  *                                                                           *
31  *                                                                           *
32  *                                                                           *
33  *                                                                           *
34  *                                                                           *
35 \*---------------------------------------------------------------------------*/
38 OSG_BEGIN_NAMESPACE
40 inline
41 const StateChunkClass *TextureEnvChunk::getStaticClass(void)
43     return &TextureEnvChunk::_class;
46 inline
47 UInt32 TextureEnvChunk::getStaticClassId(void)
49     return getStaticClass()->getId();
53 inline
54 void TextureEnvChunk::setShaderOffsetMatrix(Real32 m11, Real32 m12, 
55                                             Real32 m21, Real32 m22)
57     editMFShaderOffsetMatrix()->resize(4);
59     editShaderOffsetMatrix(0) = m11;
60     editShaderOffsetMatrix(1) = m12;
61     editShaderOffsetMatrix(2) = m21;
62     editShaderOffsetMatrix(3) = m22;
66 OSG_END_NAMESPACE