neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_vertex_shader Class Referenceabstract

#include <i_vertex_shader.hpp>

Inheritance diagram for neogfx::i_vertex_shader:
neogfx::i_standard_vertex_shader

Public Types

typedef i_vertex_shader abstract_type
 
typedef neolib::i_map< i_string, abstract_t< shader_variable > * > attribute_map
 

Public Member Functions

virtual const attribute_mapattributes () const =0
 
virtual void clear_attribute (const i_string &aName)=0
 
virtual i_shader_variable & add_attribute (const i_string &aName, uint32_t aLocation, bool aFlat, shader_data_type aType)=0
 
template<typename T >
i_shader_variable & add_attribute (const i_string &aName, shader_variable_location aLocation, bool aFlat=false)
 

Detailed Description

Definition at line 31 of file i_vertex_shader.hpp.

Member Typedef Documentation

◆ abstract_type

◆ attribute_map

typedef neolib::i_map<i_string, abstract_t<shader_variable>*> neogfx::i_vertex_shader::attribute_map

Definition at line 36 of file i_vertex_shader.hpp.

Member Function Documentation

◆ add_attribute() [1/2]

template<typename T >
i_shader_variable & neogfx::i_vertex_shader::add_attribute ( const i_string aName,
shader_variable_location  aLocation,
bool  aFlat = false 
)
inline

Definition at line 42 of file i_vertex_shader.hpp.

◆ add_attribute() [2/2]

virtual i_shader_variable & neogfx::i_vertex_shader::add_attribute ( const i_string aName,
uint32_t  aLocation,
bool  aFlat,
shader_data_type  aType 
)
pure virtual

◆ attributes()

virtual const attribute_map & neogfx::i_vertex_shader::attributes ( ) const
pure virtual

◆ clear_attribute()

virtual void neogfx::i_vertex_shader::clear_attribute ( const i_string aName)
pure virtual

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