]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/rect.h
Convert framebuffers and related functionality to new state management
[libs/gl.git] / source / core / rect.h
diff --git a/source/core/rect.h b/source/core/rect.h
new file mode 100644 (file)
index 0000000..333dbc2
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef MSP_GL_RECT_H_
+#define MSP_GL_RECT_H_
+
+namespace Msp {
+namespace GL {
+
+struct Rect
+{
+       int left;
+       int bottom;
+       unsigned width;
+       unsigned height;
+
+       Rect(): left(0), bottom(0), width(0), height(0) { }
+       Rect(int l, int b, unsigned w, unsigned h): left(l), bottom(b), width(w), height(h) { }
+};
+
+} // namespace GL
+} // namespace Msp
+
+#endif