Rendu
A lightweight rendering engine for experimentations
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EmptyShadowMap2DArray Class Reference

A dummy shadow map array, can be used for directional and spot lights. The shadow map will register itself with the associated lights. More...

#include <BasicShadowMap.hpp>

Public Member Functions

 EmptyShadowMap2DArray (const std::vector< std::shared_ptr< Light > > &lights)
 
void draw (const Scene &scene) override
 
More...
 
- Public Member Functions inherited from ShadowMap
 ShadowMap ()=default
 
virtual void draw (const Scene &scene)=0
 
virtual ~ShadowMap ()=default
 
 ShadowMap (const ShadowMap &)=delete
 
ShadowMapoperator= (const ShadowMap &)=delete
 
 ShadowMap (ShadowMap &&)=default
 
ShadowMapoperator= (ShadowMap &&)=delete
 

Detailed Description

A dummy shadow map array, can be used for directional and spot lights. The shadow map will register itself with the associated lights.

Inherits ShadowMap.

Constructor & Destructor Documentation

◆ EmptyShadowMap2DArray()

EmptyShadowMap2DArray::EmptyShadowMap2DArray ( const std::vector< std::shared_ptr< Light > > &  lights)
explicit

Constructor.

Parameters
lightsthe lights to generate the associated shadow maps for

Member Function Documentation

◆ draw()

void EmptyShadowMap2DArray::draw ( const Scene scene)
overridevirtual


Update the shadow map.

Parameters
scenethe objcts to draw in the map.

Implements ShadowMap.


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