v2.0.0
Loading...
Searching...
No Matches
DISP3DLIB::RenderKey Class Reference

Identity of a renderable in the renderer's GPU resource cache. More...

#include <rendertypes.h>

Public Member Functions

 RenderKey ()
 RenderKey (const RenderKey &)
RenderKey & operator= (const RenderKey &)
const void * id () const
std::weak_ptr< const void > token () const

Detailed Description

Identity of a renderable in the renderer's GPU resource cache.

The renderer drops the GPU copies of a renderable once its key is destroyed. A copied renderable gets a key of its own, so it never shares GPU buffers with the original.

Definition at line 125 of file rendertypes.h.

Constructor & Destructor Documentation

◆ RenderKey() [1/2]

DISP3DLIB::RenderKey::RenderKey ( )
inline

Definition at line 128 of file rendertypes.h.

◆ RenderKey() [2/2]

DISP3DLIB::RenderKey::RenderKey ( const RenderKey & )
inline

Definition at line 132 of file rendertypes.h.

Member Function Documentation

◆ id()

const void * DISP3DLIB::RenderKey::id ( ) const
inline
Returns
Address that identifies the renderable while it lives.

Definition at line 142 of file rendertypes.h.

◆ operator=()

RenderKey & DISP3DLIB::RenderKey::operator= ( const RenderKey & )
inline

Definition at line 136 of file rendertypes.h.

◆ token()

std::weak_ptr< const void > DISP3DLIB::RenderKey::token ( ) const
inline
Returns
Token that expires when the renderable is destroyed.

Definition at line 148 of file rendertypes.h.


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