/[libvob]/libvob/include/vob/vobs/Trivial.hxx
ViewVC logotype

Diff of /libvob/include/vob/vobs/Trivial.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by tjl, Wed May 14 22:03:30 2003 UTC revision 1.19 by tjl, Fri May 23 08:52:34 2003 UTC
# Line 35  Trivial.hxx Line 35  Trivial.hxx
35  #include <vob/Vec23.hxx>  #include <vob/Vec23.hxx>
36  #include <vob/VecGL.hxx>  #include <vob/VecGL.hxx>
37    
38    #include <vob/glerr.hxx>
39    
40    
41  #ifndef VOB_DEFINED  #ifndef VOB_DEFINED
42  #define VOB_DEFINED(t)  #define VOB_DEFINED(t)
# Line 129  struct CallList { Line 131  struct CallList {
131      }      }
132    
133      void render() const {      void render() const {
134            GLERR;
135          glCallList(no.get());          glCallList(no.get());
136            GLERR;
137      }      }
138  };  };
139    
# Line 138  VOB_DEFINED(CallList); Line 142  VOB_DEFINED(CallList);
142  struct CallListCoorded : public CallList {  struct CallListCoorded : public CallList {
143      enum { NTrans = 1 };      enum { NTrans = 1 };
144      template<class T> void render(const T &t) const {      template<class T> void render(const T &t) const {
145            GLERR;
146          glPushMatrix();          glPushMatrix();
147          if(t.performGL()) {          if(t.performGL()) {
148              glCallList(no.get());              glCallList(no.get());
# Line 146  struct CallListCoorded : public CallList Line 151  struct CallListCoorded : public CallList
151              t.dump(std::cout);              t.dump(std::cout);
152          }          }
153          glPopMatrix();          glPopMatrix();
154            GLERR;
155      }      }
156  };  };
157  VOB_DEFINED(CallListCoorded);  VOB_DEFINED(CallListCoorded);
# Line 153  VOB_DEFINED(CallListCoorded); Line 159  VOB_DEFINED(CallListCoorded);
159  struct CallListBoxCoorded : public CallList {  struct CallListBoxCoorded : public CallList {
160      enum { NTrans = 1 };      enum { NTrans = 1 };
161      template<class T> void render(const T &t) const {      template<class T> void render(const T &t) const {
162            GLERR;
163          glPushMatrix();          glPushMatrix();
164          if(t.performGL()) {                    if(t.performGL()) {          
165              Pt boxwh = t.getSqSize();              Pt boxwh = t.getSqSize();
# Line 164  struct CallListBoxCoorded : public CallL Line 171  struct CallListBoxCoorded : public CallL
171              t.dump(std::cout);              t.dump(std::cout);
172          }          }
173          glPopMatrix();          glPopMatrix();
174            GLERR;
175      }      }
176  };  };
177  VOB_DEFINED(CallListBoxCoorded);  VOB_DEFINED(CallListBoxCoorded);
# Line 181  struct Quad { Line 189  struct Quad {
189          f(dicex, dicey, flags);          f(dicex, dicey, flags);
190      }      }
191      template<class T> void render(const T &t) const {      template<class T> void render(const T &t) const {
192            GLERR;
193          Pt boxwh = t.getSqSize();          Pt boxwh = t.getSqSize();
194          if(flags & 1) {          if(flags & 1) {
195              glPushMatrix();              glPushMatrix();
# Line 211  struct Quad { Line 220  struct Quad {
220                  glEnd();                  glEnd();
221              }              }
222          }          }
223            GLERR;
224      }      }
225  };  };
226  VOB_DEFINED(Quad);  VOB_DEFINED(Quad);

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26