This is the documentation for Enlighten.

class Enlighten SortedLights

class Enlighten::SortedLights

A class used to produce a sorted, culled list of lights.

Variables

Name Description
bool m_CanQuickShade

Can quick shade?

Geo::u32 m_PointerArraySize

The size of the pointer array located at (this+1)

bool m_RequiresUpdate

Requires update?

Geo::u32 m_TotalLights

Total number of lights.

LightTypeInfo m_TypeInfo[LIGHT_TYPE_NUM_TYPES]

Info for each light type.

Functions

Name Description
GetSize()

Returns the size including post data.

SortedLights(SortedLights *, const Culler &)

Construct from another SortedLights while applying culling.

SortedLights(InputLightBase **, Geo::u32, void **)

Construct a sorted lights object from an unsorted list of lights. This culls lights which are disabled via the visibility pointer.


size_t Enlighten::SortedLights::GetSize


public: size_t GetSize() const


Returns the size including post data.


GEO_CONTROLLED_INLINE Enlighten::SortedLights::SortedLights


public: SortedLights
(
    SortedLights * sourceLights,
    const Culler & culler
)


Construct from another SortedLights while applying culling.

Construct a SortedLights object from another SortedLights object while applying culling.


Enlighten::SortedLights::SortedLights


public: SortedLights
(
    InputLightBase ** unsortedLights,
    Geo::u32 numLights,
    void ** visibility
)


Construct a sorted lights object from an unsorted list of lights. This culls lights which are disabled via the visibility pointer.