Kale
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
Kale::OpenGL Namespace Reference

Classes

class  Buffer
 
class  Core
 
class  Shader
 
class  VertexArray
 

Enumerations

enum class  BufferType : GLenum { ElementBuffer = GL_ELEMENT_ARRAY_BUFFER , VertexBuffer = GL_ARRAY_BUFFER , TextureBuffer = GL_TEXTURE_BUFFER }
 
enum class  BufferUsage : GLenum { Static = GL_STATIC_DRAW , Dynamic = GL_DYNAMIC_DRAW }
 
enum class  DrawType : GLenum { Triangles = GL_TRIANGLES , Points = GL_POINTS , Lines = GL_LINES }
 

Functions

template<typename T >
GLenum getEnumValue (T value)
 

Detailed Description

Forward declaration of OpenGL namespace

Enumeration Type Documentation

◆ BufferType

enum class Kale::OpenGL::BufferType : GLenum
strong

The type of buffer a buffer can hold

Enumerator
ElementBuffer 
VertexBuffer 
TextureBuffer 

Definition at line 34 of file Buffer.hpp.

◆ BufferUsage

enum class Kale::OpenGL::BufferUsage : GLenum
strong

The usage of the buffer, static isn't modified frequently whereas dynamic is

Enumerator
Static 
Dynamic 

Definition at line 43 of file Buffer.hpp.

◆ DrawType

enum class Kale::OpenGL::DrawType : GLenum
strong

Type of object to draw

Enumerator
Triangles 
Points 
Lines 

Definition at line 32 of file VertexArray.hpp.

Function Documentation

◆ getEnumValue()

template<typename T >
GLenum Kale::OpenGL::getEnumValue ( T value)

Converts a OpenGL based enum to the GLEnum/unsigned int value

Parameters
valueThe value of the enum type to convert

Definition at line 31 of file Utils.hpp.