CORGI
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
corgi::component_library::RenderlistEntry Struct Reference

Struct used for keeping track of and sorting our render lists. More...

#include <rendermesh.h>

Detailed Description

Struct used for keeping track of and sorting our render lists.

Public Member Functions

 RenderlistEntry (EntityRef entity_, RenderMeshData *data_)
 Constructor for RenderlistEntry.
 
bool operator< (const RenderlistEntry &other) const
 The greater than operator for RenderlistEntry. More...
 
bool operator> (const RenderlistEntry &other) const
 The less than operator for RenderlistEntry. More...
 

Public Attributes

EntityRef entity
 The Entity associated with this RenderlistEntry.
 
RenderMeshDatadata
 The RenderMeshData associated with the entity in this RenderlistEntry.
 

Member Function Documentation

bool corgi::component_library::RenderlistEntry::operator< ( const RenderlistEntry other) const
inline

The greater than operator for RenderlistEntry.

Parameters
[in]otherThe other RenderlistEntry to compare if its RenderMeshData->z_depth is greater than this RenderlistEntry's.
Returns
Returns true if other's RenderMeshData->z_depth is greater than this RenderlistEntry's. Otherwise, it returns false.
bool corgi::component_library::RenderlistEntry::operator> ( const RenderlistEntry other) const
inline

The less than operator for RenderlistEntry.

Parameters
[in]otherThe other RenderlistEntry to compare if its RenderMeshData->z_depth is less than this RenderlistEntry's.
Returns
Returns true if other's RenderMeshData->z_depth is less than this RenderlistEntry's. Otherwise, it returns false.

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