FrameBuffer.cc 845 Bytes
Newer Older
Robert Menzel's avatar
Robert Menzel committed
1
2
3
4
5
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011, Computer Graphics Group RWTH Aachen University         //
// All rights reserved.                                                       //
////////////////////////////////////////////////////////////////////////////////

Robert Menzel's avatar
Robert Menzel committed
6
#include <ACGL/OpenGL/Objects/FrameBuffer.hh>
Robert Menzel's avatar
Robert Menzel committed
7

Robert Menzel's avatar
Robert Menzel committed
8
using namespace ACGL::OpenGL;
Robert Menzel's avatar
Robert Menzel committed
9

10
11
GLuint FrameBuffer::sFrameBufferContext = 0;

12
13
14
15
16
/*
 * We can't use the constants GL_COLOR_ATTACHMENT1 to GL_COLOR_ATTACHMENT7 here
 * because OpenGL ES does not know these yet.
 */
 GLuint FrameBuffer::msBuffers[8] = {
Robert Menzel's avatar
Robert Menzel committed
17
    GL_COLOR_ATTACHMENT0,
18
19
20
21
22
23
24
25
26
    GL_COLOR_ATTACHMENT0+1,
    GL_COLOR_ATTACHMENT0+2,
    GL_COLOR_ATTACHMENT0+3,
    GL_COLOR_ATTACHMENT0+4,
    GL_COLOR_ATTACHMENT0+5,
    GL_COLOR_ATTACHMENT0+6,
    GL_COLOR_ATTACHMENT0+7};