scg3  0.6
scg::ShaderID Struct Reference

A shader ID to identify shaders in error messages. An arbitrary name can be added to the OpnGL shader index, e.g., a file name. More...

#include "ShaderCore.h"

Collaboration diagram for scg::ShaderID:
[legend]

Public Member Functions

 ShaderID ()
 
 ShaderID (GLuint shader0, const std::string &name0)
 

Public Attributes

GLuint shader
 
std::string name
 

Detailed Description

A shader ID to identify shaders in error messages. An arbitrary name can be added to the OpnGL shader index, e.g., a file name.

Definition at line 46 of file ShaderCore.h.

Constructor & Destructor Documentation

◆ ShaderID() [1/2]

scg::ShaderID::ShaderID ( )
inline

Definition at line 48 of file ShaderCore.h.

◆ ShaderID() [2/2]

scg::ShaderID::ShaderID ( GLuint  shader0,
const std::string &  name0 
)
inline

Definition at line 52 of file ShaderCore.h.

Member Data Documentation

◆ name

std::string scg::ShaderID::name

Definition at line 57 of file ShaderCore.h.

◆ shader

GLuint scg::ShaderID::shader

Definition at line 56 of file ShaderCore.h.


The documentation for this struct was generated from the following file: