GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi::ShaderApi Class Reference

#include <GameApi.hh>

Public Member Functions

IMPORT ShaderApi (Env &e)
IMPORT ~ShaderApi ()
IMPORT void load_default ()
IMPORT void load (std::string filename)
IMPORT SH get_shader (std::string v_format, std::string f_format, std::string g_format, std::string v_comb="", std::string f_comb="", bool trans=true, SFO module={-1})
IMPORT SH get_normal_shader (std::string v_format, std::string f_format, std::string g_format, std::string v_comb="", std::string f_comb="", bool trans=true, SFO mod={-1}, std::string v_defines="IN_NORMAL IN_COLOR IN_TEXCOORD IN_POSITION EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD", std::string f_defines="EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD", bool is_new=false)
IMPORT SH get_normal_shader (std::string v_format, std::string f_format, std::string g_format, US v_comb, US f_comb, bool trans=true, SFO mod={-1}, std::string v_defines="", std::string f_defines="", bool is_new=false)
IMPORT SH get_normal_shader (std::string v_format, std::string f_format, std::string g_format, US v_comb, US f_comb, std::string v_shader, std::string f_shader, bool trans=true, SFO mod={-1}, std::string v_defines="", std::string f_defines="", bool is_new=false)
SH get_shader_1 (std::string v_format, std::string f_format, std::string g_format, std::string v_comb="", std::string f_comb="", bool trans=true, SFO mod={-1}, US v_c={-1}, US f_c={-1}, std::string v_defines="IN_NORMAL IN_COLOR IN_TEXCOORD IN_POSITION EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD EX_POSITION", std::string f_defines="EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD", std::string v_shader="", std::string f_shader="")
SH get_normal_shader_1 (std::string v_format, std::string f_format, std::string g_format, std::string v_comb="", std::string f_comb="", bool trans=true, SFO mod={ -1 }, US v_c={ -1 }, US f_c={ -1 }, std::string v_defines="IN_NORMAL IN_POSITION IN_COLOR IN_TEXCOORD EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD", std::string f_defines="EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD", std::string v_shader="", std::string f_shader="")
SH get_normal_shader_1_new (std::string v_format, std::string f_format, std::string g_format, std::string v_comb="", std::string f_comb="", bool trans=true, SFO mod={ -1 }, US v_c={ -1 }, US f_c={ -1 }, std::string v_defines="IN_NORMAL IN_POSITION IN_COLOR IN_TEXCOORD EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD", std::string f_defines="EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD", std::string v_shader="", std::string f_shader="")
IMPORT SH texture_shader (bool text_draw=false)
IMPORT SH texture_array_shader ()
IMPORT SH texture_many_shader ()
IMPORT SH colour_shader ()
IMPORT SH colour_texture_shader ()
IMPORT SH shader_choice (EveryApi &ev, int i)
IMPORT PinIn link (SH shader)
IMPORT PinIn use (SH shader)
IMPORT void print_log (SH shader)
void link_1 (SH shader)
void use_1 (SH shader)
IMPORT PinIn unuse (SH shader)
IMPORT void bindnames (GameApi::SH shader, std::string s_vertex, std::string s_normal, std::string s_color, std::string s_texcoord)
IMPORT void set_default_projection (GameApi::SH shader, std::string name)
void set_default_projection_1 (GameApi::SH shader, std::string name)
IMPORT void set_y_rotation (SH shader, std::string name, float angle)
IMPORT void bind_attrib (GameApi::SH shader, int num, std::string name)
void bind_attrib_1 (GameApi::SH shader, int num, std::string name)
IMPORT void bind_frag (GameApi::SH shader, int attachment_num, std::string name)
IMPORT PinIn set_var (GameApi::SH shader, const char *name, float val)
IMPORT PinIn set_var (GameApi::SH shader, const char *name, float x, float y, float z)
IMPORT PinIn set_var (GameApi::SH shader, const char *name, float x, float y, float z, float k)
IMPORT PinIn set_var (GameApi::SH shader, const char *name, int val)
IMPORT PinIn set_var (GameApi::SH shader, const char *name, M matrix)
IMPORT PinIn set_var (GameApi::SH shader, const char *name, const std::vector< M > &m, int start, int end)
IMPORT PinIn set_var (GameApi::SH shader, const char *name, const std::vector< M > &m, int num)
IMPORT PinIn set_var (GameApi::SH shader, const char *name, const std::vector< PT > &v)
IMPORT PinOut< M > get_matrix_var (GameApi::SH shader, std::string name)

Friends

class StateChangeApi

Constructor & Destructor Documentation

◆ ShaderApi()

EXPORT GameApi::ShaderApi::ShaderApi ( Env & e)

◆ ~ShaderApi()

EXPORT GameApi::ShaderApi::~ShaderApi ( )

Member Function Documentation

◆ bind_attrib()

EXPORT void GameApi::ShaderApi::bind_attrib ( GameApi::SH shader,
int num,
std::string name )

◆ bind_attrib_1()

void GameApi::ShaderApi::bind_attrib_1 ( GameApi::SH shader,
int num,
std::string name )
Here is the caller graph for this function:

◆ bind_frag()

EXPORT void GameApi::ShaderApi::bind_frag ( GameApi::SH shader,
int attachment_num,
std::string name )

◆ bindnames()

EXPORT void GameApi::ShaderApi::bindnames ( GameApi::SH shader,
std::string s_vertex,
std::string s_normal,
std::string s_color,
std::string s_texcoord )
Here is the caller graph for this function:

◆ colour_shader()

EXPORT GameApi::SH GameApi::ShaderApi::colour_shader ( )
Here is the caller graph for this function:

◆ colour_texture_shader()

EXPORT GameApi::SH GameApi::ShaderApi::colour_texture_shader ( )
Here is the caller graph for this function:

◆ get_matrix_var()

EXPORT GameApi::PinOut< GameApi::M > GameApi::ShaderApi::get_matrix_var ( GameApi::SH shader,
std::string name )

◆ get_normal_shader() [1/3]

EXPORT GameApi::SH GameApi::ShaderApi::get_normal_shader ( std::string v_format,
std::string f_format,
std::string g_format,
std::string v_comb = "",
std::string f_comb = "",
bool trans = true,
SFO mod = {-1},
std::string v_defines = "IN_NORMAL IN_COLOR IN_TEXCOORD IN_POSITION EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD",
std::string f_defines = "EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD",
bool is_new = false )

◆ get_normal_shader() [2/3]

EXPORT GameApi::SH GameApi::ShaderApi::get_normal_shader ( std::string v_format,
std::string f_format,
std::string g_format,
US v_comb,
US f_comb,
bool trans = true,
SFO mod = {-1},
std::string v_defines = "",
std::string f_defines = "",
bool is_new = false )

◆ get_normal_shader() [3/3]

EXPORT GameApi::SH GameApi::ShaderApi::get_normal_shader ( std::string v_format,
std::string f_format,
std::string g_format,
US v_comb,
US f_comb,
std::string v_shader,
std::string f_shader,
bool trans = true,
SFO mod = {-1},
std::string v_defines = "",
std::string f_defines = "",
bool is_new = false )

◆ get_normal_shader_1()

GameApi::SH GameApi::ShaderApi::get_normal_shader_1 ( std::string v_format,
std::string f_format,
std::string g_format,
std::string v_comb = "",
std::string f_comb = "",
bool trans = true,
SFO mod = { -1 },
US v_c = { -1 },
US f_c = { -1 },
std::string v_defines = "IN_NORMAL IN_POSITION IN_COLOR IN_TEXCOORD EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD",
std::string f_defines = "EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD",
std::string v_shader = "",
std::string f_shader = "" )
Here is the caller graph for this function:

◆ get_normal_shader_1_new()

GameApi::SH GameApi::ShaderApi::get_normal_shader_1_new ( std::string v_format,
std::string f_format,
std::string g_format,
std::string v_comb = "",
std::string f_comb = "",
bool trans = true,
SFO mod = { -1 },
US v_c = { -1 },
US f_c = { -1 },
std::string v_defines = "IN_NORMAL IN_POSITION IN_COLOR IN_TEXCOORD EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD",
std::string f_defines = "EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD",
std::string v_shader = "",
std::string f_shader = "" )
Here is the caller graph for this function:

◆ get_shader()

EXPORT GameApi::SH GameApi::ShaderApi::get_shader ( std::string v_format,
std::string f_format,
std::string g_format,
std::string v_comb = "",
std::string f_comb = "",
bool trans = true,
SFO module = {-1} )
Here is the caller graph for this function:

◆ get_shader_1()

GameApi::SH GameApi::ShaderApi::get_shader_1 ( std::string v_format,
std::string f_format,
std::string g_format,
std::string v_comb = "",
std::string f_comb = "",
bool trans = true,
SFO mod = {-1},
US v_c = {-1},
US f_c = {-1},
std::string v_defines = "IN_NORMAL IN_COLOR IN_TEXCOORD IN_POSITION EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD EX_POSITION",
std::string f_defines = "EX_COLOR EX_NORMAL EX_POSITION EX_TEXCOORD",
std::string v_shader = "",
std::string f_shader = "" )
Here is the caller graph for this function:

◆ link()

EXPORT GameApi::PinIn GameApi::ShaderApi::link ( GameApi::SH shader)

◆ link_1()

void GameApi::ShaderApi::link_1 ( GameApi::SH shader)
Here is the caller graph for this function:

◆ load()

EXPORT void GameApi::ShaderApi::load ( std::string filename)
Here is the caller graph for this function:

◆ load_default()

EXPORT void GameApi::ShaderApi::load_default ( )

◆ print_log()

EXPORT void GameApi::ShaderApi::print_log ( GameApi::SH shader)

◆ set_default_projection()

EXPORT void GameApi::ShaderApi::set_default_projection ( GameApi::SH shader,
std::string name )
Here is the caller graph for this function:

◆ set_default_projection_1()

void GameApi::ShaderApi::set_default_projection_1 ( GameApi::SH shader,
std::string name )
Here is the caller graph for this function:

◆ set_var() [1/8]

EXPORT GameApi::PinIn GameApi::ShaderApi::set_var ( GameApi::SH shader,
const char * name,
const std::vector< M > & m,
int num )

◆ set_var() [2/8]

EXPORT GameApi::PinIn GameApi::ShaderApi::set_var ( GameApi::SH shader,
const char * name,
const std::vector< M > & m,
int start,
int end )

◆ set_var() [3/8]

EXPORT GameApi::PinIn GameApi::ShaderApi::set_var ( GameApi::SH shader,
const char * name,
const std::vector< PT > & v )

◆ set_var() [4/8]

EXPORT GameApi::PinIn GameApi::ShaderApi::set_var ( GameApi::SH shader,
const char * name,
float val )
Here is the caller graph for this function:

◆ set_var() [5/8]

EXPORT GameApi::PinIn GameApi::ShaderApi::set_var ( GameApi::SH shader,
const char * name,
float x,
float y,
float z )

◆ set_var() [6/8]

EXPORT GameApi::PinIn GameApi::ShaderApi::set_var ( GameApi::SH shader,
const char * name,
float x,
float y,
float z,
float k )

◆ set_var() [7/8]

EXPORT GameApi::PinIn GameApi::ShaderApi::set_var ( GameApi::SH shader,
const char * name,
int val )

◆ set_var() [8/8]

EXPORT GameApi::PinIn GameApi::ShaderApi::set_var ( GameApi::SH shader,
const char * name,
M matrix )

◆ set_y_rotation()

EXPORT void GameApi::ShaderApi::set_y_rotation ( SH shader,
std::string name,
float angle )

◆ shader_choice()

EXPORT GameApi::SH GameApi::ShaderApi::shader_choice ( EveryApi & ev,
int i )
Here is the caller graph for this function:

◆ texture_array_shader()

EXPORT GameApi::SH GameApi::ShaderApi::texture_array_shader ( )

◆ texture_many_shader()

EXPORT GameApi::SH GameApi::ShaderApi::texture_many_shader ( )

◆ texture_shader()

EXPORT GameApi::SH GameApi::ShaderApi::texture_shader ( bool text_draw = false)
Here is the caller graph for this function:

◆ unuse()

EXPORT GameApi::PinIn GameApi::ShaderApi::unuse ( GameApi::SH shader)
Here is the caller graph for this function:

◆ use()

EXPORT GameApi::PinIn GameApi::ShaderApi::use ( GameApi::SH shader)
Here is the caller graph for this function:

◆ use_1()

void GameApi::ShaderApi::use_1 ( GameApi::SH shader)
Here is the caller graph for this function:

◆ StateChangeApi

friend class StateChangeApi
friend

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