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

#include <gShadowMap.h>

Inheritance diagram for gShadowMap:
Collaboration diagram for gShadowMap:

Public Member Functions

 gShadowMap ()
virtual ~gShadowMap ()
void allocate (gLight *light, gCamera *camera, int width=4096, int height=4096)
bool isAllocated () const
int getWidth () const
int getHeight () const
void update ()
void setLight (gLight *light)
void setCamera (gCamera *camera)
gLight * getLight () const
gCamera * getCamera () const
void activate ()
void deactivate ()
bool isActivated () const
void enable ()
void disable ()
bool isEnabled () const
void setLightProjection (glm::mat4 lightProjection)
void setLightProjection (float leftx, float rightx, float fronty, float backy, float nearz, float farz)
void setLightView (glm::mat4 lightView)
glm::mat4 getLightProjection () const
glm::mat4 getLightView () const
glm::mat4 getLightMatrix () const
gFbo & getDepthFbo ()
unsigned int getVulkanDepthTextureId () const
void bindVulkanShadowMap (int slot=1)
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)

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
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

◆ gShadowMap()

gShadowMap::gShadowMap ( )

◆ ~gShadowMap()

virtual gShadowMap::~gShadowMap ( )
virtual

Member Function Documentation

◆ activate()

void gShadowMap::activate ( )

◆ allocate()

void gShadowMap::allocate ( gLight * light,
gCamera * camera,
int width = 4096,
int height = 4096 )

◆ bindVulkanShadowMap()

void gShadowMap::bindVulkanShadowMap ( int slot = 1)

◆ deactivate()

void gShadowMap::deactivate ( )

◆ disable()

void gShadowMap::disable ( )

◆ enable()

void gShadowMap::enable ( )

◆ getCamera()

gCamera * gShadowMap::getCamera ( ) const

◆ getDepthFbo()

gFbo & gShadowMap::getDepthFbo ( )

◆ getHeight()

int gShadowMap::getHeight ( ) const

◆ getLight()

gLight * gShadowMap::getLight ( ) const

◆ getLightMatrix()

glm::mat4 gShadowMap::getLightMatrix ( ) const

◆ getLightProjection()

glm::mat4 gShadowMap::getLightProjection ( ) const

◆ getLightView()

glm::mat4 gShadowMap::getLightView ( ) const

◆ getVulkanDepthTextureId()

unsigned int gShadowMap::getVulkanDepthTextureId ( ) const

◆ getWidth()

int gShadowMap::getWidth ( ) const

◆ isActivated()

bool gShadowMap::isActivated ( ) const

◆ isAllocated()

bool gShadowMap::isAllocated ( ) const

◆ isEnabled()

bool gShadowMap::isEnabled ( ) const

◆ setCamera()

void gShadowMap::setCamera ( gCamera * camera)

◆ setLight()

void gShadowMap::setLight ( gLight * light)

◆ setLightProjection() [1/2]

void gShadowMap::setLightProjection ( float leftx,
float rightx,
float fronty,
float backy,
float nearz,
float farz )

◆ setLightProjection() [2/2]

void gShadowMap::setLightProjection ( glm::mat4 lightProjection)

◆ setLightView()

void gShadowMap::setLightView ( glm::mat4 lightView)

◆ update()

void gShadowMap::update ( )

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