#include <OGLParts.h>
Public Member Functions | |
RFBuffer () | |
~RFBuffer () | |
bool | Setup (bool bUseDepthBuffer=true) |
Setup the RFBuffer, this should only get called once ever, on init. | |
bool | ConfigureAndStart (int iWidth, int iHeight, int iTextures, Texture *TexturesToAttach, bool bClear=false) |
Startup the framebuffer, this redirects the output to the selected textures. | |
bool | End (int iRegVPX, int iRegVPY) |
int | GetWidth () |
Get the width of the selcted framebuffer. | |
int | GetHeight () |
Get the height of the selcted framebuffer. | |
TextureType | GetTT () |
Get the Texture Type of the selcted framebuffer. | |
Private Attributes | |
bool | m_bUseDepthBuffer |
int | mWidth |
int | mHeight |
TextureType | mtt |
GLuint | iRenderbuffer |
GLuint | iOutputBuffer |
This object allows easy use of setting up the framebuffer and or renderbuffer. The general idea is that you can set one of these up once for each type of operation you plan to do (to have a depth buffer or not.) Once configured, you tell it to start, perform drawing, and tell it to end. Anything you did during the drawing phase will be written to TexturesToAttach. In order to access more than the first buffer, you must use a shader and output the data to different buffers. In general, most systems allow 4-8 textures to be attached.
Definition at line 194 of file OGLParts.h.
RFBuffer::RFBuffer | ( | ) |
Definition at line 524 of file OGLParts.cpp.
RFBuffer::~RFBuffer | ( | ) |
Definition at line 531 of file OGLParts.cpp.
bool RFBuffer::Setup | ( | bool | bUseDepthBuffer = true |
) |
Setup the RFBuffer, this should only get called once ever, on init.
Definition at line 540 of file OGLParts.cpp.
bool RFBuffer::ConfigureAndStart | ( | int | iWidth, | |
int | iHeight, | |||
int | iTextures, | |||
Texture * | TexturesToAttach, | |||
bool | bClear = false | |||
) |
Startup the framebuffer, this redirects the output to the selected textures.
Definition at line 549 of file OGLParts.cpp.
bool RFBuffer::End | ( | int | iRegVPX, | |
int | iRegVPY | |||
) |
Redirect the drawing back to the regular framebuffer. Note, you should use GLUT.miWidth and GLUT.miHeight for the parameters here.
Definition at line 610 of file OGLParts.cpp.
int RFBuffer::GetWidth | ( | ) | [inline] |
int RFBuffer::GetHeight | ( | ) | [inline] |
TextureType RFBuffer::GetTT | ( | ) | [inline] |
bool RFBuffer::m_bUseDepthBuffer [private] |
Definition at line 219 of file OGLParts.h.
int RFBuffer::mWidth [private] |
Definition at line 220 of file OGLParts.h.
int RFBuffer::mHeight [private] |
Definition at line 220 of file OGLParts.h.
TextureType RFBuffer::mtt [private] |
Definition at line 221 of file OGLParts.h.
GLuint RFBuffer::iRenderbuffer [private] |
Definition at line 223 of file OGLParts.h.
GLuint RFBuffer::iOutputBuffer [private] |
Definition at line 224 of file OGLParts.h.