Anvil Engine
Loading...
Searching...
No Matches
AShader Class Reference

#include <AShader.h>

Public Member Functions

 AShader (int vertResID, int fragResID)
 AShader (std::string_view vPath, std::string_view fPath)
 ~AShader ()
void CheckCompileErrors (uint32_t shader, std::string type)
void Use ()
uint32_t GetID () const

Constructor & Destructor Documentation

◆ AShader() [1/2]

AShader::AShader ( int vertResID,
int fragResID )

Constructor for AShader class that initializes a shader program by loading vertex and fragment shaders from resources.

Parameters
vertResIDResource ID for the vertex shader
fragResIDResource ID for the fragment shader

◆ AShader() [2/2]

AShader::AShader ( std::string_view vPath,
std::string_view fPath )

◆ ~AShader()

AShader::~AShader ( )

Destructor for AShader class Cleans up the shader program by deleting it from OpenGL

Member Function Documentation

◆ CheckCompileErrors()

void AShader::CheckCompileErrors ( uint32_t shader,
std::string type )

◆ GetID()

uint32_t AShader::GetID ( ) const
inline

◆ Use()

void AShader::Use ( )

Activates the shader program This function makes the shader program the active one for rendering operations


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