Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
Nz::AbstractRenderQueue Class Referenceabstract

Graphics class that represents the rendering queue for our scene. More...

Inheritance diagram for Nz::AbstractRenderQueue:
Nz::DeferredRenderQueue Nz::ForwardRenderQueue Nz::DepthRenderQueue

Public Member Functions

 AbstractRenderQueue (const AbstractRenderQueue &)=delete
 
 AbstractRenderQueue (AbstractRenderQueue &&)=default
 
virtual void AddBillboards (int renderOrder, const Material *material, unsigned int count, SparsePtr< const Vector3f > positionPtr, SparsePtr< const Vector2f > sizePtr, SparsePtr< const Vector2f > sinCosPtr=nullptr, SparsePtr< const Color > colorPtr=nullptr)=0
 
virtual void AddBillboards (int renderOrder, const Material *material, unsigned int count, SparsePtr< const Vector3f > positionPtr, SparsePtr< const Vector2f > sizePtr, SparsePtr< const Vector2f > sinCosPtr, SparsePtr< const float > alphaPtr)=0
 
virtual void AddBillboards (int renderOrder, const Material *material, unsigned int count, SparsePtr< const Vector3f > positionPtr, SparsePtr< const Vector2f > sizePtr, SparsePtr< const float > anglePtr, SparsePtr< const Color > colorPtr=nullptr)=0
 
virtual void AddBillboards (int renderOrder, const Material *material, unsigned int count, SparsePtr< const Vector3f > positionPtr, SparsePtr< const Vector2f > sizePtr, SparsePtr< const float > anglePtr, SparsePtr< const float > alphaPtr)=0
 
virtual void AddBillboards (int renderOrder, const Material *material, unsigned int count, SparsePtr< const Vector3f > positionPtr, SparsePtr< const float > sizePtr, SparsePtr< const Vector2f > sinCosPtr=nullptr, SparsePtr< const Color > colorPtr=nullptr)=0
 
virtual void AddBillboards (int renderOrder, const Material *material, unsigned int count, SparsePtr< const Vector3f > positionPtr, SparsePtr< const float > sizePtr, SparsePtr< const Vector2f > sinCosPtr, SparsePtr< const float > alphaPtr)=0
 
virtual void AddBillboards (int renderOrder, const Material *material, unsigned int count, SparsePtr< const Vector3f > positionPtr, SparsePtr< const float > sizePtr, SparsePtr< const float > anglePtr, SparsePtr< const Color > colorPtr=nullptr)=0
 
virtual void AddBillboards (int renderOrder, const Material *material, unsigned int count, SparsePtr< const Vector3f > positionPtr, SparsePtr< const float > sizePtr, SparsePtr< const float > anglePtr, SparsePtr< const float > alphaPtr)=0
 
virtual void AddDrawable (int renderOrder, const Drawable *drawable)=0
 
virtual void AddDirectionalLight (const DirectionalLight &light)
 Adds a directional light to the rendering queue. More...
 
virtual void AddMesh (int renderOrder, const Material *material, const MeshData &meshData, const Boxf &meshAABB, const Matrix4f &transformMatrix)=0
 
virtual void AddPointLight (const PointLight &light)
 Adds a point light to the rendering queue. More...
 
virtual void AddSpotLight (const SpotLight &light)
 Adds a spot light to the rendering queue. More...
 
virtual void AddSprites (int renderOrder, const Material *material, const VertexStruct_XYZ_Color_UV *vertices, std::size_t spriteCount, const Texture *overlay=nullptr)=0
 
virtual void Clear (bool fully=false)
 Clears the rendering queue. More...
 
AbstractRenderQueueoperator= (const AbstractRenderQueue &)=delete
 
AbstractRenderQueueoperator= (AbstractRenderQueue &&)=default
 

Public Attributes

std::vector< DirectionalLight > directionalLights
 
std::vector< PointLight > pointLights
 
std::vector< SpotLight > spotLights
 

Detailed Description

Graphics class that represents the rendering queue for our scene.

Remarks
This class is abstract

Member Function Documentation

◆ AddDirectionalLight()

void Nz::AbstractRenderQueue::AddDirectionalLight ( const DirectionalLight &  light)
virtual

Adds a directional light to the rendering queue.

Parameters
lightDirectional light

Reimplemented in Nz::DepthRenderQueue.

◆ AddPointLight()

void Nz::AbstractRenderQueue::AddPointLight ( const PointLight &  light)
virtual

Adds a point light to the rendering queue.

Parameters
lightPoint light

Reimplemented in Nz::DepthRenderQueue.

◆ AddSpotLight()

void Nz::AbstractRenderQueue::AddSpotLight ( const SpotLight &  light)
virtual

Adds a spot light to the rendering queue.

Parameters
lightSpot light

Reimplemented in Nz::DepthRenderQueue.

◆ Clear()

void Nz::AbstractRenderQueue::Clear ( bool  fully = false)
virtual

Clears the rendering queue.

Parameters
fullyShould everything be cleared ?

Reimplemented in Nz::ForwardRenderQueue, and Nz::DeferredRenderQueue.


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