#include <renderPass.h>
Inheritance diagram for glift::RenderPass:
TODO: Add the ability to add a GenState vector to these constructors
Definition at line 51 of file renderPass.h.
Public Member Functions | |
RenderPass (DrawableGLI *prim, const gutz::vec4i &viewport=gutz::vec4i(), bool restoreView=false) | |
Standard, Render-To-ColorBuffer constructors. | |
RenderPass (const VecDrawP &prims, const gutz::vec4i &viewport=gutz::vec4i(), bool restoreView=false) | |
RenderPass (DrawableGLI *prim, SingleTex *texDest, const gutz::vec4i &viewport=gutz::vec4i(), bool restoreView=false) | |
Copy colorBuffer to 'texDest'. | |
RenderPass (const VecDrawP &prims, SingleTex *texDest, const gutz::vec4i &viewport=gutz::vec4i(), bool restoreView=false) | |
RenderPass (DrawableGLI *prim, PBuffGlift *pbuffDest, bool restoreContext=false, const gutz::vec4i &viewport=gutz::vec4i(), bool restoreView=false) | |
Render to Texture using PBuffer. | |
RenderPass (const VecDrawP &prims, PBuffGlift *pbuffDest, bool restoreContext=false, const gutz::vec4i &viewport=gutz::vec4i(), bool restoreView=false) | |
RenderPass (DrawableGLI *prim, SingleTex *texDest, PBuffGlift *pbuffDest, bool restoreContext=false, const gutz::vec4i &viewport=gutz::vec4i(), bool restoreView=false) | |
Render to Pbuffer and Copy to Texture (when Render-to-Texture is not available). | |
RenderPass (const VecDrawP &prims, SingleTex *texDest, PBuffGlift *pbuffDest, bool restoreContext=false, const gutz::vec4i &viewport=gutz::vec4i(), bool restoreView=false) | |
RenderPass (const RenderPass &rhs) | |
RenderPass & | operator= (const RenderPass &rhs) |
virtual | ~RenderPass () |
void | setViewport (const gutz::vec4i &viewport, bool restoreView=false) |
Set Functions. | |
void | setDest (PBuffGlift *pbuff) |
void | setDest (SingleTex *tex) |
void | render () |
void | compile () |
virtual void | setErrStream (std::ostream *os) |
Where do you want gl errors to go? they must go somewhere, so don't set it to zero please. | |
virtual std::ostream * | getErrStream () const |
Where are gl errors going? | |
Protected Member Functions | |
virtual void | renderDef () |
void | setViewport () |
void | drawPrims () |
void | restoreViewport () |
virtual bool | isCompiled () const |
void | err (const char *where, const char *when=0) const |
error | |
std::ostream & | err () const |
a simpler way, just use the stream! only for always print, this one automatically adds the objects name | |
void | derr (const char *where, const char *when=0) const |
debug error | |
bool | glerr (const char *where, const char *when=0) const |
gl error report only in debug mode, only if there is an error, if so return true | |
std::ostream & | estr () const |
this one just gives you the stream | |
Protected Attributes | |
std::ostream * | m_err |
|
Standard, Render-To-ColorBuffer constructors.
Definition at line 35 of file renderPass.cpp. References glift::VecDrawP. |
|
Definition at line 42 of file renderPass.cpp. |
|
Copy colorBuffer to 'texDest'.
Definition at line 49 of file renderPass.cpp. References glift::VecDrawP. |
|
Definition at line 57 of file renderPass.cpp. |
|
Render to Texture using PBuffer.
Definition at line 65 of file renderPass.cpp. References glift::VecDrawP. |
|
Definition at line 73 of file renderPass.cpp. |
|
Render to Pbuffer and Copy to Texture (when Render-to-Texture is not available).
Definition at line 81 of file renderPass.cpp. References glift::VecDrawP. |
|
Definition at line 89 of file renderPass.cpp. |
|
Definition at line 97 of file renderPass.cpp. |
|
Definition at line 110 of file renderPass.cpp. |
|
Implements glift::Compilable. Definition at line 43 of file renderableGLI.cpp. References glift::DispList::compile(). |
|
debug error
Definition at line 122 of file gliftObject.h. References glift::GliftObject::m_err. |
|
Definition at line 127 of file renderPass.h. References uint. Referenced by renderDef(). |
|
|
error
Definition at line 101 of file gliftObject.h. References glift::GliftObject::m_err. Referenced by glift::SubPBuff::enable(). |
|
this one just gives you the stream
Definition at line 84 of file gliftObject.h. References glift::GliftObject::m_err. Referenced by glift::CoreTex::bindDef(), glift::Shader::bindDef(), glift::MultiTex::bindDef(), glift::EmptyTex::bindDef(), glift::DispList::compile(), glift::CoreTex::CoreTex(), glift::VertexProgARB::init(), glift::FragProgARB::init(), glift::MultiTex::releaseDef(), and glift::EmptyTex::releaseDef(). |
|
Where are gl errors going?
Definition at line 49 of file gliftObject.h. References glift::GliftObject::m_err. Referenced by glift::getProgShaderFromFile(), and glift::getProgShaderFromText(). |
|
gl error report only in debug mode, only if there is an error, if so return true
Definition at line 31 of file gliftObject.cpp. References glGetError(), and GLuint. Referenced by RenderState2D::bindDef(), glift::NormalAttrib< VAT >::disableDef(), glift::IndexAttrib< VAT >::disableDef(), glift::TexCoordAttrib< VAT >::disableDef(), glift::VertAttrib< VAT >::disableDef(), glift::GenDrawAttrib< VAT >::disableDef(), glift::DrawAlgImm::draw(), glift::DrawAlgArr::draw(), glift::ShadedPrim::drawDef(), glift::NormalAttrib< VAT >::enableDef(), glift::IndexAttrib< VAT >::enableDef(), glift::TexCoordAttrib< VAT >::enableDef(), glift::VertAttrib< VAT >::enableDef(), glift::GenDrawAttrib< VAT >::enableDef(), and RenderState2D::releaseDef(). |
|
Implements glift::Compilable. Definition at line 52 of file renderableGLI.h. |
|
Definition at line 102 of file renderPass.cpp. |
|
Definition at line 31 of file renderableGLI.cpp. References glift::GliftObject::err(), glErr(), glift::DispList::isCompiled(), glift::DispList::issue(), and glift::RenderableGLI::renderDef(). |
|
Enable pbuffer target Change viewport if requested Draw the primitives Restore viewport Copy framebuffer/pbuffer to texture TODO: This should allow for the miplevel and texOrigin to change. Restore previous context Implements glift::RenderableGLI. Definition at line 147 of file renderPass.cpp. References glift::SingleTex::copyToTex(), glift::PBuffGlift::disable(), drawPrims(), glift::PBuffGlift::enable(), glift::GliftObject::err(), glErr(), glFlush(), restoreViewport(), setViewport(), gutz::vec2i, and gutz::vec3i. |
|
Definition at line 120 of file renderPass.h. References glViewport(). Referenced by renderDef(). |
|
Definition at line 83 of file renderPass.h. |
|
Definition at line 82 of file renderPass.h. |
|
Where do you want gl errors to go? they must go somewhere, so don't set it to zero please.
Definition at line 44 of file gliftObject.h. References glift::GliftObject::m_err. Referenced by glift::getProgShaderFromFile(), and glift::getProgShaderFromText(). |
|
Definition at line 110 of file renderPass.h. References GL_VIEWPORT, glGetIntegerv(), and glViewport(). Referenced by renderDef(). |
|
Set Functions.
Definition at line 141 of file renderPass.cpp. |
|
Definition at line 87 of file gliftObject.h. Referenced by glift::GliftObject::derr(), glift::GliftObject::err(), glift::GliftObject::estr(), glift::GliftObject::getErrStream(), glift::GliftObject::GliftObject(), and glift::GliftObject::setErrStream(). |