]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/frameformat.h
Use default member initializers for simple types
[libs/gl.git] / source / core / frameformat.h
index a78985f38583fa5227c7683bfa9716ca300f3849..df4363758644160c98b8d9d7e2dbc4c42f641338 100644 (file)
@@ -36,12 +36,12 @@ class FrameFormat
 private:
        enum { MAX_ATTACHMENTS = 7 };
 
-       std::uint8_t count;
-       std::uint8_t samples;
+       std::uint8_t count = 0;
+       std::uint8_t samples = 0;
        FrameAttachment attachments[MAX_ATTACHMENTS];
 
 public:
-       FrameFormat();
+       FrameFormat() = default;
        FrameFormat(FrameAttachment);
 
        FrameFormat operator,(FrameAttachment) const;
@@ -76,10 +76,9 @@ inline unsigned get_attach_point(FrameAttachment fa)
 
 PixelFormat get_attachment_pixelformat(FrameAttachment);
 
-GLenum get_gl_attachment(FrameAttachment);
-GLenum get_gl_buffer_bits(const FrameFormat &);
-
 } // namespace GL
 } // namespace Msp
 
+#include "frameformat_backend.h"
+
 #endif