openMSX
Public Member Functions | List of all members
gl::VertexArray Class Reference

#include <GLUtil.hh>

Public Member Functions

 VertexArray ()
 
 ~VertexArray ()
 
 VertexArray (VertexArray &&other) noexcept
 
VertexArrayoperator= (VertexArray &&other) noexcept
 
void bind () const
 Bind this VertexArray. More...
 
void unbind () const
 Unbind this VertexArray. More...
 
GLuint get () const
 

Detailed Description

Definition at line 452 of file GLUtil.hh.

Constructor & Destructor Documentation

◆ VertexArray() [1/2]

gl::VertexArray::VertexArray ( )

Definition at line 327 of file GLUtil.cc.

◆ ~VertexArray()

gl::VertexArray::~VertexArray ( )

Definition at line 332 of file GLUtil.cc.

References unbind().

◆ VertexArray() [2/2]

gl::VertexArray::VertexArray ( VertexArray &&  other)
inlinenoexcept

Definition at line 457 of file GLUtil.hh.

Member Function Documentation

◆ bind()

void gl::VertexArray::bind ( ) const
inline

Bind this VertexArray.

Must be called before glDraw*() and glVertexAttribPointer() are used.

Definition at line 470 of file GLUtil.hh.

Referenced by openmsx::GLImage::draw(), openmsx::GLSnow::paint(), and openmsx::GLPostProcessor::paint().

◆ get()

GLuint gl::VertexArray::get ( ) const
inline

Definition at line 476 of file GLUtil.hh.

◆ operator=()

VertexArray& gl::VertexArray::operator= ( VertexArray &&  other)
inlinenoexcept

Definition at line 462 of file GLUtil.hh.

◆ unbind()

void gl::VertexArray::unbind ( ) const
inline

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