Euphoria
eu::render::ShaderAttribute Struct Reference

Represents a shader attribute like vertex, normal or uv coord. More...

#include <shaderattribute.h>

Public Member Functions

constexpr ShaderAttribute (gl::Int a_id, ShaderAttributeType a_type, std::string_view a_name, ShaderAttributeSource a_source, bool a_normalize=false)
 
int get_element_count () const
 
int get_byte_size () const
 

Public Attributes

gl::Int id
 the id of the attribute More...
 
ShaderAttributeType type
 the type of the attribute More...
 
std::string_view name
 the name of the shader attribute More...
 
ShaderAttributeSource source
 the source of the shader attribute More...
 
bool normalize
 

Detailed Description

Represents a shader attribute like vertex, normal or uv coord.

Definition at line 29 of file shaderattribute.h.

Constructor & Destructor Documentation

◆ ShaderAttribute()

constexpr eu::render::ShaderAttribute::ShaderAttribute ( gl::Int  a_id,
ShaderAttributeType  a_type,
std::string_view  a_name,
ShaderAttributeSource  a_source,
bool  a_normalize = false 
)
inlineconstexpr

Definition at line 32 of file shaderattribute.h.

Member Function Documentation

◆ get_byte_size()

int eu::render::ShaderAttribute::get_byte_size ( ) const

Definition at line 28 of file shaderattribute.cc.

◆ get_element_count()

int eu::render::ShaderAttribute::get_element_count ( ) const

Definition at line 12 of file shaderattribute.cc.

Member Data Documentation

◆ id

gl::Int eu::render::ShaderAttribute::id

the id of the attribute

Definition at line 55 of file shaderattribute.h.

◆ name

std::string_view eu::render::ShaderAttribute::name

the name of the shader attribute

Definition at line 61 of file shaderattribute.h.

◆ normalize

bool eu::render::ShaderAttribute::normalize

Definition at line 67 of file shaderattribute.h.

◆ source

ShaderAttributeSource eu::render::ShaderAttribute::source

the source of the shader attribute

Definition at line 64 of file shaderattribute.h.

◆ type

ShaderAttributeType eu::render::ShaderAttribute::type

the type of the attribute

Definition at line 58 of file shaderattribute.h.


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