Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
rendertarget Struct Reference

#include <rendertarget.hpp>

Inheritance diagram for rendertarget:
depthfxtexture glaretexture shadowmaptexture

Public Member Functions

 rendertarget ()
 
virtual ~rendertarget ()
 
virtual GLenum attachment () const
 
virtual const GLenumcolorformats () const
 
virtual const GLenumdepthformats () const
 
virtual bool depthtest () const
 
void cleanup (bool fullclean=false)
 
void cleanupblur ()
 
void setupblur ()
 
void setup (int w, int h)
 
bool addblurtiles (float x1, float y1, float x2, float y2, float blurmargin=0)
 
bool checkblurtiles (float x1, float y1, float x2, float y2, float blurmargin=0)
 
void rendertiles ()
 
void blur (int wantsblursize, float wantsblursigma, int x, int y, int w, int h, bool scissor)
 
virtual bool swaptexs () const
 
virtual bool dorender ()
 
virtual bool shouldrender ()
 
virtual void doblur (int blursize, float blursigma)
 
virtual bool scissorrender (int &x, int &y, int &w, int &h)
 
virtual bool scissorblur (int &x, int &y, int &w, int &h)
 
virtual void doclear ()
 
virtual bool screenrect () const
 
virtual bool filter () const
 
void render (int w, int h, int blursize=0, float blursigma=0)
 
virtual void dodebug (int w, int h)
 
virtual bool flipdebug () const
 
void debugscissor (int w, int h, bool lines=false)
 
void debugblurtiles (int w, int h, bool lines=false)
 
void debug ()
 

Public Attributes

int texw
 
int texh
 
int vieww
 
int viewh
 
GLenum colorfmt
 
GLenum depthfmt
 
GLuint rendertex
 
GLuint renderfb
 
GLuint renderdb
 
GLuint blurtex
 
GLuint blurfb
 
GLuint blurdb
 
int blursize
 
float blursigma
 
float blurweights [MAXBLURRADIUS+1]
 
float bluroffsets [MAXBLURRADIUS+1]
 
float scissorx1
 
float scissory1
 
float scissorx2
 
float scissory2
 
uint blurtiles [BLURTILES+1]
 
bool initialized
 

Constructor & Destructor Documentation

rendertarget::rendertarget ( )
inline
virtual rendertarget::~rendertarget ( )
inlinevirtual

Member Function Documentation

bool rendertarget::addblurtiles ( float  x1,
float  y1,
float  x2,
float  y2,
float  blurmargin = 0 
)
inline
virtual GLenum rendertarget::attachment ( ) const
inlinevirtual

References GL_COLOR_ATTACHMENT0.

Referenced by render(), and setup().

void rendertarget::blur ( int  wantsblursize,
float  wantsblursigma,
int  x,
int  y,
int  w,
int  h,
bool  scissor 
)
inline
bool rendertarget::checkblurtiles ( float  x1,
float  y1,
float  x2,
float  y2,
float  blurmargin = 0 
)
inline
void rendertarget::cleanup ( bool  fullclean = false)
void rendertarget::cleanupblur ( )
inline
virtual const GLenum* rendertarget::colorformats ( ) const
inlinevirtual

Reimplemented in shadowmaptexture, and depthfxtexture.

References GLenum().

Referenced by setup().

void rendertarget::debug ( )
inline
void rendertarget::debugblurtiles ( int  w,
int  h,
bool  lines = false 
)
inline
void rendertarget::debugscissor ( int  w,
int  h,
bool  lines = false 
)
inline
virtual const GLenum* rendertarget::depthformats ( ) const
inlinevirtual

References GLenum().

Referenced by setup().

virtual bool rendertarget::depthtest ( ) const
inlinevirtual

Referenced by render(), setup(), and setupblur().

virtual void rendertarget::doblur ( int  blursize,
float  blursigma 
)
inlinevirtual

References blur(), scissorblur(), scissoring, viewh, and vieww.

Referenced by render().

virtual void rendertarget::doclear ( )
inlinevirtual

Reimplemented in shadowmaptexture.

Referenced by render().

virtual void rendertarget::dodebug ( int  w,
int  h 
)
inlinevirtual

Reimplemented in shadowmaptexture, and depthfxtexture.

Referenced by debug().

virtual bool rendertarget::dorender ( )
inlinevirtual

Reimplemented in shadowmaptexture, depthfxtexture, and glaretexture.

Referenced by render().

virtual bool rendertarget::filter ( ) const
inlinevirtual

Reimplemented in depthfxtexture.

Referenced by render(), and setup().

virtual bool rendertarget::flipdebug ( ) const
inlinevirtual

Reimplemented in shadowmaptexture.

Referenced by debug(), debugblurtiles(), and debugscissor().

void rendertarget::render ( int  w,
int  h,
int  blursize = 0,
float  blursigma = 0 
)
inline
void rendertarget::rendertiles ( )
inline
virtual bool rendertarget::scissorblur ( int &  x,
int &  y,
int &  w,
int &  h 
)
inlinevirtual
virtual bool rendertarget::scissorrender ( int &  x,
int &  y,
int &  w,
int &  h 
)
inlinevirtual
virtual bool rendertarget::screenrect ( ) const
inlinevirtual

Reimplemented in depthfxtexture.

Referenced by render().

void rendertarget::setup ( int  w,
int  h 
)
inline
void rendertarget::setupblur ( )
inline
virtual bool rendertarget::shouldrender ( )
inlinevirtual

Reimplemented in depthfxtexture.

Referenced by render().

virtual bool rendertarget::swaptexs ( ) const
inlinevirtual

Reimplemented in shadowmaptexture.

Referenced by blur(), render(), and setupblur().

Member Data Documentation

GLuint rendertarget::blurdb

Referenced by cleanupblur(), render(), and setupblur().

GLuint rendertarget::blurfb

Referenced by blur(), cleanupblur(), render(), and setupblur().

float rendertarget::bluroffsets[MAXBLURRADIUS+1]

Referenced by blur().

float rendertarget::blursigma

Referenced by blur(), cleanupblur(), and render().

int rendertarget::blursize
GLuint rendertarget::blurtex

Referenced by blur(), cleanupblur(), render(), and setupblur().

uint rendertarget::blurtiles[BLURTILES+1]
float rendertarget::blurweights[MAXBLURRADIUS+1]

Referenced by blur().

GLenum rendertarget::colorfmt
GLenum rendertarget::depthfmt

Referenced by cleanup(), setup(), and setupblur().

bool rendertarget::initialized

Referenced by render(), and setup().

GLuint rendertarget::renderdb

Referenced by cleanup(), render(), and setup().

GLuint rendertarget::renderfb

Referenced by blur(), cleanup(), render(), and setup().

GLuint rendertarget::rendertex
float rendertarget::scissorx1
float rendertarget::scissorx2
float rendertarget::scissory1
float rendertarget::scissory2
int rendertarget::texh
int rendertarget::texw
int rendertarget::viewh
int rendertarget::vieww

The documentation for this struct was generated from the following files: