GlistEngine
Loading...
Searching...
No Matches
gScreenSpaceReflections Class Reference

#include <gScreenSpaceReflections.h>

Inheritance diagram for gScreenSpaceReflections:
Collaboration diagram for gScreenSpaceReflections:

Public Member Functions

 gScreenSpaceReflections (float reflectivity=0.4f, float horizonline=0.5f, float fresnelpower=3.0f, float distortionscale=0.02f, float distortionspeed=1.0f, int blursamples=4, float blurspread=0.004f)
virtual ~gScreenSpaceReflections ()
void use ()
void setTime (float time)
void setReflectivity (float reflectivity)
void setHorizonLine (float horizonline)
void setFresnelPower (float fresnelpower)
void setDistortionScale (float distortionscale)
void setDistortionSpeed (float distortionspeed)
void setBlurSamples (int blursamples)
void setBlurSpread (float blurspread)
float getReflectivity () const
float getHorizonLine () const
float getFresnelPower () const
float getDistortionScale () const
float getDistortionSpeed () const
int getBlurSamples () const
float getBlurSpread () const
Public Member Functions inherited from gBasePostProcess
 gBasePostProcess ()
virtual ~gBasePostProcess ()
virtual void render (gFbo &src, gFbo &dst)
gShader * getShader ()
Public Member Functions inherited from gRenderObject
 gRenderObject ()
int getScreenWidth ()
int getScreenHeight ()
void pushMatrix ()
void popMatrix ()
Public Member Functions inherited from gObject
 gObject ()
void logi (std::string message)
void logd (std::string message)
void logw (std::string message)
void loge (std::string message)
void logi (std::string tag, std::string message)
void logd (std::string tag, std::string message)
void logw (std::string tag, std::string message)
void loge (std::string tag, std::string message)

Protected Member Functions

const std::string getVertSrc ()
const std::string getFragSrc ()

Additional Inherited Members

Static Public Member Functions inherited from gRenderObject
static void setScreenSize (int screenWidth, int screenHeight)
static void setUnitScreenSize (int unitWidth, int unitHeight)
static void setScreenScaling (int screenScaling)
static void enableShadowMapping ()
static void disableShadowMapping ()
static bool isShadowMappingEnabled ()
static void enableExtraShaders (bool isEnabled=true)
static void disableExtraShaders ()
static bool isExtraShadersEnabled ()
static gRenderer * getRenderer ()
static void destroyRenderer ()
static void createRenderer (int renderEngine=G_RENDERER_GL)
Static Public Member Functions inherited from gObject
static std::string gGetAppDir ()
static std::string gGetAssetsDir ()
static void gSetAssetsDir (std::string assetsDir)
static std::string gGetFilesDir ()
static std::string gGetImagesDir ()
static std::string gGetFontsDir ()
static std::string gGetModelsDir ()
static std::string gGetTexturesDir ()
static std::string gGetShadersDir ()
static std::string gGetSoundsDir ()
static std::string gGetDatabasesDir ()
static std::string gGetVideosDir ()
static void setCurrentResolution (int scalingNo, int currentResolutionNo)
Static Public Attributes inherited from gObject
static const int LOGLEVEL_SILENT
static const int LOGLEVEL_DEBUG
static const int LOGLEVEL_INFO
static const int LOGLEVEL_WARNING
static const int LOGLEVEL_ERROR
Protected Attributes inherited from gBasePostProcess
gShader * shader
Static Protected Attributes inherited from gRenderObject
static bool isshadowmappingenabled
static bool isextrashadersenabled
Static Protected Attributes inherited from gObject
static int renderpassnum
static int renderpassno
static int releasescaling
static int releaseresolution

Constructor & Destructor Documentation

◆ gScreenSpaceReflections()

gScreenSpaceReflections::gScreenSpaceReflections ( float reflectivity = 0.4f,
float horizonline = 0.5f,
float fresnelpower = 3.0f,
float distortionscale = 0.02f,
float distortionspeed = 1.0f,
int blursamples = 4,
float blurspread = 0.004f )

◆ ~gScreenSpaceReflections()

virtual gScreenSpaceReflections::~gScreenSpaceReflections ( )
virtual

Member Function Documentation

◆ getBlurSamples()

int gScreenSpaceReflections::getBlurSamples ( ) const

◆ getBlurSpread()

float gScreenSpaceReflections::getBlurSpread ( ) const

◆ getDistortionScale()

float gScreenSpaceReflections::getDistortionScale ( ) const

◆ getDistortionSpeed()

float gScreenSpaceReflections::getDistortionSpeed ( ) const

◆ getFragSrc()

const std::string gScreenSpaceReflections::getFragSrc ( )
protectedvirtual

Implements gBasePostProcess.

◆ getFresnelPower()

float gScreenSpaceReflections::getFresnelPower ( ) const

◆ getHorizonLine()

float gScreenSpaceReflections::getHorizonLine ( ) const

◆ getReflectivity()

float gScreenSpaceReflections::getReflectivity ( ) const

◆ getVertSrc()

const std::string gScreenSpaceReflections::getVertSrc ( )
protectedvirtual

Implements gBasePostProcess.

◆ setBlurSamples()

void gScreenSpaceReflections::setBlurSamples ( int blursamples)

◆ setBlurSpread()

void gScreenSpaceReflections::setBlurSpread ( float blurspread)

◆ setDistortionScale()

void gScreenSpaceReflections::setDistortionScale ( float distortionscale)

◆ setDistortionSpeed()

void gScreenSpaceReflections::setDistortionSpeed ( float distortionspeed)

◆ setFresnelPower()

void gScreenSpaceReflections::setFresnelPower ( float fresnelpower)

◆ setHorizonLine()

void gScreenSpaceReflections::setHorizonLine ( float horizonline)

◆ setReflectivity()

void gScreenSpaceReflections::setReflectivity ( float reflectivity)

◆ setTime()

void gScreenSpaceReflections::setTime ( float time)

◆ use()

void gScreenSpaceReflections::use ( )
virtual

Implements gBasePostProcess.


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