Skip to main content

RenderKey

Namespace: DISP3DLIB  ·  Library: 3D Display Library

#include <disp3D/rendertypes.h>

class DISP3DLIB::RenderKey

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.


Public Methods​

RenderKey()​


RenderKey()​


operator=()​


id()​

Returns:

  • *const void ** — Address that identifies the renderable while it lives.

token()​

Returns:

  • std::weak_ptr< const void > — Token that expires when the renderable is destroyed.

Authors of this file​