Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
dynamicshadowsrender.h File Reference
#include <string>
#include <vector>
#include <IrrlichtDevice.h>
#include "irrlichttypes_extrabloated.h"
#include "client/shadows/dynamicshadows.h"
+ Include dependency graph for dynamicshadowsrender.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NodeToApply
 
class  ShadowRenderer
 

Enumerations

enum  E_SHADOW_MODE : u8 { ESM_RECEIVE = 0 , ESM_BOTH }
 

Functions

ShadowRenderercreateShadowRenderer (IrrlichtDevice *device, Client *client)
 Create a shadow renderer if settings allow this.
 

Enumeration Type Documentation

◆ E_SHADOW_MODE

enum E_SHADOW_MODE : u8
Enumerator
ESM_RECEIVE 
ESM_BOTH 

Function Documentation

◆ createShadowRenderer()

ShadowRenderer * createShadowRenderer ( IrrlichtDevice * device,
Client * client )

Create a shadow renderer if settings allow this.

Parameters
deviceDevice to be used to render shadows.
clientReference to the client context.
Returns
A new ShadowRenderer instance or nullptr if shadows are disabled or not supported.

References g_settings, Settings::getBool(), ShadowRenderer::initialize(), and Settings::setBool().

Referenced by createPipeline().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: