GL Studio C++ Runtime API
GlsSortedDrawGroup::DrawList Class Reference

#include <gls_sorted_draw_group.h>

Public Member Functions

void RegisterDrawable (GlsSortedDrawable *obj)
 

Protected Types

typedef std::vector< GlsSortedDrawable * > EntryListT
 Typedef for a list of drawables.
 
typedef std::vector< GlsDeferredDrawGroup * > DeferredDrawListT
 Unused.
 

Protected Member Functions

void Sort ()
 Sort the list using GlsSortedDrawable::SortedDraw_Compare.
 
void Optimize ()
 
void Draw ()
 Draw the nodes.
 
void Clear ()
 Clear the list.
 

Protected Attributes

EntryListT drawEntryList
 List of drawables in sorted order.
 
EntryListT orderPreservedDrawList
 List of drawables in orginal order.
 
DeferredDrawListT deferredDrawList
 Unused.
 
unsigned long drawEntryListCount
 Number of elements in the entry list.
 
unsigned long orderPreservedDrawListCount
 Number of elements in the original order list.
 

Friends

class GlsSortedDrawGroup
 

Detailed Description

The DrawList class. Holds a list of objects for sorting and drawing.

Member Function Documentation

◆ Optimize()

void Optimize ( )
protected

Optimize the nodes using GlsSortedDrawable::SortedDraw_MergeEffects. Should only be called after the list is sorted.

◆ RegisterDrawable()

void RegisterDrawable ( GlsSortedDrawable obj)

Register the incoming drawable object with this list.

Parameters
objThe new object to register.

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