Dali 3D User Interface Engine
Functions
Dali::Internal::anonymous_namespace{gpu-buffer.cpp} Namespace Reference

Functions

GLenum ModeAsGlEnum (GpuBuffer::Usage type)
 Helper to get our drawmode enum as GL enum. More...
 

Function Documentation

GLenum Dali::Internal::anonymous_namespace{gpu-buffer.cpp}::ModeAsGlEnum ( GpuBuffer::Usage  type)
inline

Helper to get our drawmode enum as GL enum.

Parameters
typeto convert
Returns
the corresponding GL enum or -1

Definition at line 38 of file gpu-buffer.cpp.

References Dali::Internal::GpuBuffer::DYNAMIC_DRAW, GL_DYNAMIC_DRAW, GL_STATIC_DRAW, GL_STREAM_DRAW, Dali::Internal::GpuBuffer::STATIC_DRAW, and Dali::Internal::GpuBuffer::STREAM_DRAW.

Referenced by Dali::Internal::GpuBuffer::UpdateDataBuffer().

Here is the caller graph for this function:

Dali Docs Home
Read more about Dali