X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fframeformat.cpp;h=7fe179331abad0f9e1d70859e0da500ae142378b;hp=3b114e7f2f0ebd01da02ea39ce5edd72f64e2be8;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=a4d83d3748cdde8cf30683d36a040d3dfacfd693 diff --git a/source/core/frameformat.cpp b/source/core/frameformat.cpp index 3b114e7f..7fe17933 100644 --- a/source/core/frameformat.cpp +++ b/source/core/frameformat.cpp @@ -1,17 +1,13 @@ #include "deviceinfo.h" #include "error.h" #include "frameformat.h" +#include "gl.h" using namespace std; namespace Msp { namespace GL { -FrameFormat::FrameFormat(): - count(0), - samples(1) -{ } - FrameFormat::FrameFormat(FrameAttachment fa): count(1), samples(1) @@ -123,15 +119,5 @@ PixelFormat get_attachment_pixelformat(FrameAttachment fa) return make_pixelformat(comp, type); } -GLenum get_gl_attachment(FrameAttachment fa) -{ - if(get_attach_point(fa)==get_attach_point(DEPTH_ATTACHMENT)) - return GL_DEPTH_ATTACHMENT; - else if(get_attach_point(fa)==get_attach_point(STENCIL_ATTACHMENT)) - return GL_STENCIL_ATTACHMENT; - else - return GL_COLOR_ATTACHMENT0+get_attach_point(fa); -} - } // namespace GL } // namespace Msp