Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
AeonGames::OpenGLPipeline Class Reference

OpenGL shader program pipeline with attribute and uniform reflection. More...

#include <C:/Code/AeonEngine/engine/renderers/opengl/OpenGLPipeline.hpp>

Collaboration diagram for AeonGames::OpenGLPipeline:
Collaboration graph

Public Member Functions

 OpenGLPipeline (const OpenGLRenderer &aOpenGLRenderer, const Pipeline &aPipeline)
 Construct from a renderer and pipeline resource.
 OpenGLPipeline (OpenGLPipeline &&aOpenGLPipeline)
 Move constructor.
 OpenGLPipeline (const OpenGLPipeline &)=delete
OpenGLPipelineoperator= (const OpenGLPipeline &)=delete
OpenGLPipelineoperator= (OpenGLPipeline &&)=delete
GLint GetProgramId () const
 Get the linked shader program identifier.
const std::vector< OpenGLVariable > & GetVertexAttributes () const
 Get the reflected vertex attribute descriptions.
const OpenGLUniformBlockGetUniformBlock (uint32_t name) const
 Get a uniform block by its name hash, or nullptr if not found.
const GLuint GetSamplerLocation (uint32_t name_hash) const
 Get the uniform location of a sampler by its name hash.

Detailed Description

OpenGL shader program pipeline with attribute and uniform reflection.

Definition at line 29 of file OpenGLPipeline.hpp.

Constructor & Destructor Documentation

◆ OpenGLPipeline() [1/2]

AeonGames::OpenGLPipeline::OpenGLPipeline ( const OpenGLRenderer & aOpenGLRenderer,
const Pipeline & aPipeline )

Construct from a renderer and pipeline resource.

Definition at line 46 of file OpenGLPipeline.cpp.

◆ OpenGLPipeline() [2/2]

AeonGames::OpenGLPipeline::OpenGLPipeline ( OpenGLPipeline && aOpenGLPipeline)

Move constructor.

Definition at line 26 of file OpenGLPipeline.cpp.

◆ ~OpenGLPipeline()

AeonGames::OpenGLPipeline::~OpenGLPipeline ( )

Definition at line 306 of file OpenGLPipeline.cpp.

Member Function Documentation

◆ GetProgramId()

GLint AeonGames::OpenGLPipeline::GetProgramId ( ) const

Get the linked shader program identifier.

Definition at line 318 of file OpenGLPipeline.cpp.

◆ GetSamplerLocation()

const GLuint AeonGames::OpenGLPipeline::GetSamplerLocation ( uint32_t name_hash) const

Get the uniform location of a sampler by its name hash.

Definition at line 328 of file OpenGLPipeline.cpp.

◆ GetUniformBlock()

const OpenGLUniformBlock * AeonGames::OpenGLPipeline::GetUniformBlock ( uint32_t name) const

Get a uniform block by its name hash, or nullptr if not found.

Definition at line 342 of file OpenGLPipeline.cpp.

◆ GetVertexAttributes()

const std::vector< OpenGLVariable > & AeonGames::OpenGLPipeline::GetVertexAttributes ( ) const

Get the reflected vertex attribute descriptions.

Definition at line 323 of file OpenGLPipeline.cpp.


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