Nebula
Loading...
Searching...
No Matches
Graphics::GraphicsContextState Struct Reference

#include <graphicscontext.h>

Detailed Description

A graphics context is a resource which holds a contextual representation for a graphics entity.

Use the __DeclareContext macro in the header and __ImplementContext in the implementation.

Note
The reason for why the function bundle and state are implemented through macros, is because they have to be static, and thus implemented explicitly once per each context.

Public Member Functions

void CleanupDelayedRemoveQueue ()
 

Public Attributes

Util::StackArray< GraphicsEntityId, 8 > delayedRemoveQueue
 
Util::Array< GraphicsEntityIdentities
 
Util::HashTable< GraphicsEntityId, ContextEntityId, 128, 64 > entitySliceMap
 
ContextEntityId(* Alloc )()
 
void(* Dealloc )(ContextEntityId id)
 
void(* Defragment )()
 
void(* OnInstanceMoved )(uint32_t toIndex, uint32_t fromIndex)
 called after a context entity has moved index
 
void(* OnDefragment )(uint32_t toIndex, uint32_t fromIndex)
 called to manually handle fragmentation
 

Member Function Documentation

◆ CleanupDelayedRemoveQueue()

void Graphics::GraphicsContextState::CleanupDelayedRemoveQueue ( )
inline

Member Data Documentation

◆ Alloc

ContextEntityId(* Graphics::GraphicsContextState::Alloc) ()

◆ Dealloc

void(* Graphics::GraphicsContextState::Dealloc) (ContextEntityId id)

◆ Defragment

void(* Graphics::GraphicsContextState::Defragment) ()

◆ delayedRemoveQueue

Util::StackArray<GraphicsEntityId, 8> Graphics::GraphicsContextState::delayedRemoveQueue

◆ entities

Util::Array<GraphicsEntityId> Graphics::GraphicsContextState::entities

◆ entitySliceMap

Util::HashTable<GraphicsEntityId, ContextEntityId, 128, 64> Graphics::GraphicsContextState::entitySliceMap

◆ OnDefragment

void(* Graphics::GraphicsContextState::OnDefragment) (uint32_t toIndex, uint32_t fromIndex)

called to manually handle fragmentation

◆ OnInstanceMoved

void(* Graphics::GraphicsContextState::OnInstanceMoved) (uint32_t toIndex, uint32_t fromIndex)

called after a context entity has moved index


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