Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
quori_face::Program Class Reference

#include <Program.hpp>

Public Types

typedef std::shared_ptr< const ProgramConstPtr
 
typedef std::shared_ptr< ProgramPtr
 

Public Member Functions

std::uint32_t getHandle () const
 
std::uint32_t getUniformLocation (const std::string &name) const
 
void use ()
 
 ~Program ()
 

Static Public Member Functions

static Ptr link (const std::initializer_list< Shader::Ptr > &shaders)
 

Private Member Functions

 Program (const std::uint16_t handle)
 

Private Attributes

std::uint32_t handle_
 

Detailed Description

Represents a shader pipeline program

Definition at line 15 of file Program.hpp.

Member Typedef Documentation

◆ ConstPtr

typedef std::shared_ptr<const Program> quori_face::Program::ConstPtr

Definition at line 19 of file Program.hpp.

◆ Ptr

typedef std::shared_ptr<Program> quori_face::Program::Ptr

Definition at line 18 of file Program.hpp.

Constructor & Destructor Documentation

◆ ~Program()

Program::~Program ( )

Definition at line 14 of file Program.cpp.

◆ Program()

Program::Program ( const std::uint16_t  handle)
private

Definition at line 65 of file Program.cpp.

Member Function Documentation

◆ getHandle()

std::uint32_t Program::getHandle ( ) const
Returns
The underlying OpenGL handle

Definition at line 60 of file Program.cpp.

◆ getUniformLocation()

std::uint32_t Program::getUniformLocation ( const std::string name) const

Definition at line 50 of file Program.cpp.

◆ link()

Program::Ptr Program::link ( const std::initializer_list< Shader::Ptr > &  shaders)
static

Construct a program with the given shader pipeline.

Parameters
[in]shadersThe shader pipeline, in order

Definition at line 19 of file Program.cpp.

◆ use()

void Program::use ( )

Bind the program to the current OpenGL context

Definition at line 55 of file Program.cpp.

Member Data Documentation

◆ handle_

std::uint32_t quori_face::Program::handle_
private

Definition at line 51 of file Program.hpp.


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


quori_face
Author(s):
autogenerated on Wed Mar 2 2022 00:53:20