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

#include <depthfx.hpp>

Inheritance diagram for depthfxtexture:
rendertarget

Public Member Functions

const GLenumcolorformats () const override
 
float eyedepth (const vec &p) const
 
void addscissorvert (const vec &v, float &sx1, float &sy1, float &sx2, float &sy2)
 
bool addscissorbox (const vec &center, float size)
 
bool addscissorbox (const vec &bbmin, const vec &bbmax)
 
bool screenrect () const override
 
bool filter () const override
 
bool highprecision () const
 
bool emulatehighprecision () const
 
bool shouldrender () override
 
bool dorender () 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 swaptexs () const
 
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 ()
 
void render (int w, int h, int blursize=0, float blursigma=0)
 
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
bool depthfxtexture::addscissorbox ( const vec center,
float  size 
)
bool depthfxtexture::addscissorbox ( const vec bbmin,
const vec bbmax 
)
void depthfxtexture::addscissorvert ( const vec v,
float &  sx1,
float &  sy1,
float &  sx2,
float &  sy2 
)
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 * depthfxtexture::colorformats ( ) const
overridevirtual

Reimplemented from rendertarget.

References GL_RG16F, GL_RGB16F, GLenum(), hasTF, and hasTRG.

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

void depthfxtexture::dodebug ( int  w,
int  h 
)
overridevirtual
bool depthfxtexture::dorender ( )
overridevirtual
bool depthfxtexture::emulatehighprecision ( ) const
float depthfxtexture::eyedepth ( const vec p) const
bool depthfxtexture::filter ( ) const
inlineoverridevirtual

Reimplemented from rendertarget.

virtual bool rendertarget::flipdebug ( ) const
inlinevirtualinherited
bool depthfxtexture::highprecision ( ) const
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
bool depthfxtexture::screenrect ( ) const
inlineoverridevirtual

Reimplemented from rendertarget.

void rendertarget::setup ( int  w,
int  h 
)
inlineinherited
void rendertarget::setupblur ( )
inlineinherited
bool depthfxtexture::shouldrender ( )
overridevirtual
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 files: