Brunot
Loading...
Searching...
No Matches
gfx Namespace Reference

Classes

class  IndexBuffer
class  Line
class  Mesh
class  Shader
class  Texture
 holds and manages textures for use with meshes in sprites More...
class  VAO
struct  Vertex
class  VertexBuffer
 Buffer that holds data for the vertices for OpenGL. More...

Enumerations

enum  shaderAttributes : int { aPosition = 0 , aTextureCoordinate = 1 , aColor = 2 }

Functions

 Line::operator std::pair< gfx::Vertex, gfx::Vertex > () const
auto operator* (const AffineMatrix &transform, const Line &line) ->Line
auto operator*= (Line &line, const AffineMatrix &transform) ->Line &
auto to_json (json &j, const Mesh &a) ->void
auto from_json (const json &j, Mesh &a) ->void
static auto printShaderError (GLuint shaderID) -> void
static auto printProgramError (GLuint programID) -> void
static auto setGlobalUniforms (const gfx::Shader &shader) -> void
auto to_json (json &j, const Shader &a) ->void
auto from_json (const json &j, Shader &a) ->void
auto to_json (json &j, const Texture &a) ->void
auto from_json (const json &j, Texture &a) ->void

Enumeration Type Documentation

◆ shaderAttributes

Enumerator
aPosition 
aTextureCoordinate 
aColor 

Function Documentation

◆ from_json() [1/3]

auto gfx::from_json ( const json & j,
Mesh & a )->void

◆ from_json() [2/3]

auto gfx::from_json ( const json & j,
Shader & a )->void

◆ from_json() [3/3]

auto gfx::from_json ( const json & j,
Texture & a )->void

◆ Line::operator std::pair< gfx::Vertex, gfx::Vertex >()

gfx::Line::operator std::pair< gfx::Vertex, gfx::Vertex > ( ) const

◆ operator*()

auto gfx::operator* ( const AffineMatrix & transform,
const Line & line )->Line

◆ operator*=()

auto gfx::operator*= ( Line & line,
const AffineMatrix & transform )->Line &

◆ printProgramError()

auto gfx::printProgramError ( GLuint programID) ->void
static
Here is the caller graph for this function:

◆ printShaderError()

auto gfx::printShaderError ( GLuint shaderID) ->void
static
Here is the caller graph for this function:

◆ setGlobalUniforms()

auto gfx::setGlobalUniforms ( const gfx::Shader & shader) ->void
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_json() [1/3]

auto gfx::to_json ( json & j,
const Mesh & a )->void

◆ to_json() [2/3]

auto gfx::to_json ( json & j,
const Shader & a )->void

◆ to_json() [3/3]

auto gfx::to_json ( json & j,
const Texture & a )->void