libdonut  2.3.2
Application framework for cross-platform game development in C++20
Classes | Public Member Functions | List of all members
donut::graphics::VertexArray Class Reference

Unique resource handle with exclusive ownership of a GPU vertex array. More...

#include <donut/graphics/VertexArray.hpp>

Public Member Functions

 VertexArray ()
 Create a new empty GPU vertex array resource. More...
 
Handle get () const noexcept
 Get an opaque handle to the GPU representation of the vertex array. More...
 

Detailed Description

Unique resource handle with exclusive ownership of a GPU vertex array.

Constructor & Destructor Documentation

◆ VertexArray()

donut::graphics::VertexArray::VertexArray ( )

Create a new empty GPU vertex array resource.

Exceptions
graphics::Erroron failure to create the vertex array object.

Member Function Documentation

◆ get()

Handle donut::graphics::VertexArray::get ( ) const
noexcept

Get an opaque handle to the GPU representation of the vertex array.

Returns
a non-owning resource handle to the GPU representation of the vertex array.
Note
This function is used internally by the implementations of various abstractions and is not intended to be used outside of the graphics module. The returned handle has no meaning to application code.

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