1 /*---------------------------------------------------------------------------*\
5 * Copyright 2000-2002 by OpenSG Forum *
7 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
9 \*---------------------------------------------------------------------------*/
10 /*---------------------------------------------------------------------------*\
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. *
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. *
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. *
26 \*---------------------------------------------------------------------------*/
27 /*---------------------------------------------------------------------------*\
35 \*---------------------------------------------------------------------------*/
37 //---------------------------------------------------------------------------
39 //---------------------------------------------------------------------------
43 inline const Vec3f *SkyBackground::selectTexCoords(
44 const Vec3f *userTexCoords, TextureBaseChunk *texImage, UInt32 side)
46 const Vec3f *returnValue = NULL;
48 if(userTexCoords != NULL)
50 returnValue = userTexCoords;
54 if(getUseVRMLCubeTextureSemantics() == true)
56 if(texImage != NULL &&
57 texImage->isCubeTexture() == true )
59 returnValue = _defaultVRMLTexCoords[side];
63 returnValue = _defaultVRMLTexCoords[0];
68 if(texImage != NULL &&
69 texImage->isCubeTexture() == true )
71 returnValue = _defaultTexCoords[side];
75 returnValue = _defaultTexCoords[0];