Removed some unused code (handled in video/gl_renderer now)
[supertux.git] / src / video / drawing_request.hpp
index b63f851..581438a 100644 (file)
 #include <string>
 #include <memory>
 
-#include <assert.h>
+#include <stdint.h>
 
-//#include <stdint.h>
-
-//#include <SDL_video.h>
+#include <SDL_video.h>
 
 #include "glutil.hpp"
-//#include "math/vector.hpp"
-//#include "color.hpp"
-//#include "font.hpp"
-#include <unison/video/RenderOptions.hpp>
+#include "math/vector.hpp"
+#include "color.hpp"
+#include "font.hpp"
 
 class Surface;
 
@@ -65,39 +62,15 @@ public:
   Blend(GLenum s, GLenum d)
     : sfactor(s), dfactor(d)
   {}
-
-  Unison::Video::BlendMode to_unison_blend() const
-  {
-    if(sfactor == GL_ONE && dfactor == GL_ZERO)
-    {
-      return Unison::Video::BLEND_NONE;
-    }
-    else if(sfactor == GL_SRC_ALPHA && dfactor == GL_ONE_MINUS_SRC_ALPHA)
-    {
-      return Unison::Video::BLEND_ALPHA;
-    }
-    else if(sfactor == GL_SRC_ALPHA && dfactor == GL_ONE)
-    {
-      return Unison::Video::BLEND_ADD;
-    }
-    else if(sfactor == GL_ZERO && dfactor == GL_SRC_COLOR)
-    {
-      return Unison::Video::BLEND_MOD;
-    }
-    else
-    {
-      assert(0 && "Unsupported blend factors");
-    }
-  }
 };
 
 enum Target {
   NORMAL, LIGHTMAP
 };
 
-/*enum RequestType
+enum RequestType
 {
-  SURFACE, SURFACE_PART, TEXT, GRADIENT, FILLRECT, GETLIGHT
+  SURFACE, SURFACE_PART, TEXT, GRADIENT, FILLRECT, INVERSEELLIPSE, DRAW_LIGHTMAP, GETLIGHT
 };
 
 struct SurfacePartRequest
@@ -121,7 +94,14 @@ struct GradientRequest
 
 struct FillRectRequest
 {
-  Color color;
+  Color  color;
+  Vector size;
+  float  radius;
+};
+
+struct InverseEllipseRequest
+{
+  Color  color;
   Vector size;
 };
 
@@ -154,7 +134,7 @@ struct DrawingRequest
 struct GetLightRequest
 {
   Color* color_ptr;
-};*/
+};
 
 #endif