#include "deviceinfo.h"
#include "error.h"
#include "frameformat.h"
+#include "gl.h"
using namespace std;
return make_pixelformat(comp, type);
}
-GLenum get_gl_attachment(FrameAttachment fa)
+unsigned get_gl_attachment(FrameAttachment fa)
{
if(get_attach_point(fa)==get_attach_point(DEPTH_ATTACHMENT))
return GL_DEPTH_ATTACHMENT;
return GL_COLOR_ATTACHMENT0+get_attach_point(fa);
}
-GLenum get_gl_buffer_bits(const FrameFormat &format)
+unsigned get_gl_buffer_bits(const FrameFormat &format)
{
- GLenum bits = 0;
+ unsigned bits = 0;
for(FrameAttachment a: format)
{
if(get_attach_point(a)==get_attach_point(DEPTH_ATTACHMENT))