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

Base structure of a per-light specialized renderer. More...

#include <LightRenderer.hpp>

Public Member Functions

virtual void draw (const DirectionalLight *light)=0
 
virtual void draw (const PointLight *light)=0
 
virtual void draw (const SpotLight *light)=0
 

Detailed Description

Base structure of a per-light specialized renderer.

It can be applied to a light by calling light->draw(renderer), which will then call the corresponding method below.

Inherited by DebugLightRenderer, DeferredLight, and ForwardLight.

Member Function Documentation

◆ draw() [1/3]

virtual void LightRenderer::draw ( const DirectionalLight light)
pure virtual

Perform a rendering task for a directional light.

Parameters
lightthe light to visit.

Implemented in DeferredLight, ForwardLight, and DebugLightRenderer.

◆ draw() [2/3]

virtual void LightRenderer::draw ( const PointLight light)
pure virtual

Perform a rendering task for a point light.

Parameters
lightthe light to visit.

Implemented in DeferredLight, ForwardLight, and DebugLightRenderer.

◆ draw() [3/3]

virtual void LightRenderer::draw ( const SpotLight light)
pure virtual

Perform a rendering task for a spot light.

Parameters
lightthe light to visit.

Implemented in DeferredLight, ForwardLight, and DebugLightRenderer.


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