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

Public Member Functions

const GLenumcolorformats () const override
 
bool swaptexs () const override
 
bool scissorblur (int &x, int &y, int &w, int &h) override
 
bool scissorrender (int &x, int &y, int &w, int &h) override
 
void doclear () override
 
bool dorender () override
 
bool flipdebug () const override
 
void dodebug (int w, int h) override
 
virtual GLenum attachment () 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 shouldrender ()
 
virtual void doblur (int blursize, float blursigma)
 
virtual bool screenrect () const
 
virtual bool filter () const
 
void render (int w, int h, int blursize=0, float blursigma=0)
 
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
const GLenum* shadowmaptexture::colorformats ( ) const
inlineoverridevirtual

Reimplemented from rendertarget.

References GL_RGBA16F, GLenum(), and hasTF.

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
void shadowmaptexture::doclear ( )
inlineoverridevirtual

Reimplemented from rendertarget.

void shadowmaptexture::dodebug ( int  w,
int  h 
)
inlineoverridevirtual
bool shadowmaptexture::dorender ( )
inlineoverridevirtual
virtual bool rendertarget::filter ( ) const
inlinevirtualinherited

Reimplemented in depthfxtexture.

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

bool shadowmaptexture::flipdebug ( ) const
inlineoverridevirtual

Reimplemented from rendertarget.

void rendertarget::render ( int  w,
int  h,
int  blursize = 0,
float  blursigma = 0 
)
inlineinherited
void rendertarget::rendertiles ( )
inlineinherited
bool shadowmaptexture::scissorblur ( int &  x,
int &  y,
int &  w,
int &  h 
)
inlineoverridevirtual
bool shadowmaptexture::scissorrender ( int &  x,
int &  y,
int &  w,
int &  h 
)
inlineoverridevirtual

Reimplemented from rendertarget.

References rendertarget::viewh, and rendertarget::vieww.

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().

bool shadowmaptexture::swaptexs ( ) const
inlineoverridevirtual

Reimplemented from rendertarget.

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: