resonance 1.0.1
Loading...
Searching...
No Matches
Rnd::Arena::DrawEntry Class Reference

One entry of mDrawOrder. More...

#include <arena.h>

Collaboration diagram for Rnd::Arena::DrawEntry:

Public Member Functions

 DrawEntry ()
 Construct an entry with no view.
bool operator< (const DrawEntry &other) const
 Order entries by descending sort key.

Public Attributes

View * mView
float mSortKey

Detailed Description

One entry of mDrawOrder.

The image supplies no name for the type or for either member, so both are inferred from their use. The record is 8 bytes, which the element size the list allocation passes to the node tagger establishes. SetFrameSelf() writes each section's view and its sort key into the entry of the same index, sorts the list, and DrawShowing() then draws the views in list order.

Constructor & Destructor Documentation

◆ DrawEntry()

Rnd::Arena::DrawEntry::DrawEntry ( )
inline

Construct an entry with no view.

The temporary the two hit-list helpers resize with has only its first word written, so mSortKey starts indeterminate until SetFrameSelf() fills it.

Member Function Documentation

◆ operator<()

bool Rnd::Arena::DrawEntry::operator< ( const DrawEntry & other) const
inline

Order entries by descending sort key.

The list merge at 0x005babe0 splices an entry of the second run ahead of one of the first when the first run's key is the smaller. That is this comparison with the operands the merge passes, so the entry with the largest key is drawn first.

Parameters
otherThe entry to compare against.
Returns
Whether this entry sorts before other.

Member Data Documentation

◆ mView

View* Rnd::Arena::DrawEntry::mView

The section view to draw. +0x00

◆ mSortKey

float Rnd::Arena::DrawEntry::mSortKey

The frame of the section's current loop. +0x04


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