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

Public Member Functions

bool dorender () override
 
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 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
 

Member Function Documentation

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

Reimplemented in shadowmaptexture, and depthfxtexture.

References GLenum().

Referenced by rendertarget::setup().

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

References GLenum().

Referenced by rendertarget::setup().

virtual bool rendertarget::depthtest ( ) const
inlinevirtualinherited
virtual void rendertarget::doblur ( int  blursize,
float  blursigma 
)
inlinevirtualinherited
virtual void rendertarget::doclear ( )
inlinevirtualinherited

Reimplemented in shadowmaptexture.

Referenced by rendertarget::render().

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

Reimplemented in shadowmaptexture, and depthfxtexture.

Referenced by rendertarget::debug().

bool glaretexture::dorender ( )
inlineoverridevirtual

Reimplemented from rendertarget.

References drawglare().

virtual bool rendertarget::filter ( ) const
inlinevirtualinherited

Reimplemented in depthfxtexture.

Referenced by rendertarget::render(), and rendertarget::setup().

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

Reimplemented in depthfxtexture.

Referenced by rendertarget::render().

void rendertarget::setup ( int  w,
int  h 
)
inlineinherited
void rendertarget::setupblur ( )
inlineinherited
virtual bool rendertarget::shouldrender ( )
inlinevirtualinherited

Reimplemented in depthfxtexture.

Referenced by rendertarget::render().

virtual bool rendertarget::swaptexs ( ) const
inlinevirtualinherited

Member Data Documentation

GLuint rendertarget::blurdb
inherited
GLuint rendertarget::blurfb
inherited
float rendertarget::bluroffsets[MAXBLURRADIUS+1]
inherited

Referenced by rendertarget::blur().

float rendertarget::blursigma
inherited
int rendertarget::blursize
inherited
GLuint rendertarget::blurtex
inherited
uint rendertarget::blurtiles[BLURTILES+1]
inherited
float rendertarget::blurweights[MAXBLURRADIUS+1]
inherited

Referenced by rendertarget::blur().

GLenum rendertarget::colorfmt
inherited
GLenum rendertarget::depthfmt
inherited
bool rendertarget::initialized
inherited
GLuint rendertarget::renderdb
inherited
GLuint rendertarget::renderfb
inherited
GLuint rendertarget::rendertex
inherited
float rendertarget::scissorx1
inherited
float rendertarget::scissorx2
inherited
float rendertarget::scissory1
inherited
float rendertarget::scissory2
inherited
int rendertarget::texh
inherited
int rendertarget::texw
inherited
int rendertarget::viewh
inherited
int rendertarget::vieww
inherited

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