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) |
131 |
} |
} |
132 |
|
|
133 |
void render() const { |
void render() const { |
134 |
|
GLERR; |
135 |
glCallList(no.get()); |
glCallList(no.get()); |
136 |
|
GLERR; |
137 |
} |
} |
138 |
}; |
}; |
139 |
|
|
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()); |
151 |
t.dump(std::cout); |
t.dump(std::cout); |
152 |
} |
} |
153 |
glPopMatrix(); |
glPopMatrix(); |
154 |
|
GLERR; |
155 |
} |
} |
156 |
}; |
}; |
157 |
VOB_DEFINED(CallListCoorded); |
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(); |
171 |
t.dump(std::cout); |
t.dump(std::cout); |
172 |
} |
} |
173 |
glPopMatrix(); |
glPopMatrix(); |
174 |
|
GLERR; |
175 |
} |
} |
176 |
}; |
}; |
177 |
VOB_DEFINED(CallListBoxCoorded); |
VOB_DEFINED(CallListBoxCoorded); |
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(); |
220 |
glEnd(); |
glEnd(); |
221 |
} |
} |
222 |
} |
} |
223 |
|
GLERR; |
224 |
} |
} |
225 |
}; |
}; |
226 |
VOB_DEFINED(Quad); |
VOB_DEFINED(Quad); |