]> git.tdb.fi Git - libs/gl.git/blob - source/core/rect.h
Use default member initializers for simple types
[libs/gl.git] / source / core / rect.h
1 #ifndef MSP_GL_RECT_H_
2 #define MSP_GL_RECT_H_
3
4 namespace Msp {
5 namespace GL {
6
7 struct Rect
8 {
9         int left = 0;
10         int bottom = 0;
11         unsigned width = 0;
12         unsigned height = 0;
13
14         Rect() = default;
15         Rect(int l, int b, unsigned w, unsigned h): left(l), bottom(b), width(w), height(h) { }
16 };
17
18 } // namespace GL
19 } // namespace Msp
20
21 #endif