~ubuntu-branches/debian/sid/coin2/sid

« back to all changes in this revision

Viewing changes to src/elements/SoMultiTextureCoordinateElement.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2008-06-28 02:38:17 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080628023817-lgrh0u677j1gcqgf
Tags: 2.5.0-2
* debian/control: Change suggests from libopenal0 to libopenal0a.
  Closes: #488001.  Change ${Source-Version} to ${binary:Version}.
  Update to standards version 3.8.0.

* debian/rules: Do not ignore errors in clean rule.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**************************************************************************\
2
2
 *
3
3
 *  This file is part of the Coin 3D visualization library.
4
 
 *  Copyright (C) 1998-2006 by Systems in Motion.  All rights reserved.
 
4
 *  Copyright (C) 1998-2007 by Systems in Motion.  All rights reserved.
5
5
 *
6
6
 *  This library is free software; you can redistribute it and/or
7
7
 *  modify it under the terms of the GNU General Public License
34
34
*/
35
35
 
36
36
#include <Inventor/elements/SoMultiTextureCoordinateElement.h>
 
37
#include <Inventor/elements/SoGLVBOElement.h>
 
38
 
37
39
#include <Inventor/nodes/SoNode.h>
38
40
#include <assert.h>
39
41
 
86
88
                                            SoNode * const node,
87
89
                                            const int unit)
88
90
{
 
91
  if (state->isElementEnabled(SoGLVBOElement::getClassStackIndex())) {
 
92
    SoGLVBOElement::setTexCoordVBO(state, unit, NULL);
 
93
  }
89
94
  SoMultiTextureCoordinateElement * element = (SoMultiTextureCoordinateElement *)
90
95
    SoElement::getElement(state, classStackIndex);
91
96
  
105
110
                                             SoTextureCoordinateFunctionCB * const func,
106
111
                                             void * const userdata)
107
112
{
 
113
  if (state->isElementEnabled(SoGLVBOElement::getClassStackIndex())) {
 
114
    SoGLVBOElement::setTexCoordVBO(state, unit, NULL);
 
115
  }
108
116
  SoMultiTextureCoordinateElement * element = (SoMultiTextureCoordinateElement *)
109
117
   SoElement::getElement(state, classStackIndex);
110
118
 
130
138
                                      const int32_t numCoords,
131
139
                                      const SbVec2f * const coords)
132
140
{
 
141
  if (state->isElementEnabled(SoGLVBOElement::getClassStackIndex())) {
 
142
    SoGLVBOElement::setTexCoordVBO(state, unit, NULL);
 
143
  }
133
144
  SoMultiTextureCoordinateElement * element = (SoMultiTextureCoordinateElement *)
134
145
    SoElement::getElement(state, classStackIndex);
135
146
 
155
166
                                      const int32_t numCoords,
156
167
                                      const SbVec3f * const coords)
157
168
{
 
169
  if (state->isElementEnabled(SoGLVBOElement::getClassStackIndex())) {
 
170
    SoGLVBOElement::setTexCoordVBO(state, unit, NULL);
 
171
  }
158
172
  SoMultiTextureCoordinateElement * element = (SoMultiTextureCoordinateElement *)
159
173
    SoElement::getElement(state, classStackIndex);
160
174
 
179
193
                                      const int32_t numCoords,
180
194
                                      const SbVec4f * const coords)
181
195
{
 
196
  if (state->isElementEnabled(SoGLVBOElement::getClassStackIndex())) {
 
197
    SoGLVBOElement::setTexCoordVBO(state, unit, NULL);
 
198
  }
182
199
  SoMultiTextureCoordinateElement * element = (SoMultiTextureCoordinateElement *)
183
200
    SoElement::getElement(state, classStackIndex);
184
201