|
From: Tapio V. <aa...@us...> - 2010-11-03 00:01:41
|
Module: performous
Branch: opengl2
Commit: a4f05eab73af8b65ec0d5f23691fac8106016551
Author: Tapio Vierros <tap...@gm...>
Date: Wed Nov 3 02:00:21 2010 +0200
No place for DisplayList anymore.
---
game/glutil.hh | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/game/glutil.hh b/game/glutil.hh
index b8185d7..c8e3a06 100644
--- a/game/glutil.hh
+++ b/game/glutil.hh
@@ -10,6 +10,7 @@
#include "glshader.hh"
namespace glutil {
+
struct Point {
float vx;
float vy;
@@ -39,13 +40,6 @@ namespace glutil {
};
/// wrapper struct for RAII
- struct DisplayList {
- /// call glNewList with given list id and mode
- DisplayList(GLuint id, GLenum mode) { glNewList(id, mode); }
- ~DisplayList() { glEndList(); }
- };
-
- /// wrapper struct for RAII
struct UseDepthTest {
/// enable depth test (for 3d objects)
UseDepthTest() {
@@ -57,6 +51,7 @@ namespace glutil {
}
};
+ /// wrapper struct for RAII
struct Color {
float r, ///< red component
g, ///< green
@@ -207,5 +202,6 @@ namespace glutil {
}
static void reset() { glGetError(); }
};
+
}
|