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

#include <GameApi.hh>

Public Member Functions

IMPORT ShaderModuleApi (Env &e)
IMPORT SFO empty ()
IMPORT SFO function (std::function< std::string(std::string id)> function, std::string function_name, std::vector< std::string > param_names=std::vector< std::string >(), std::vector< std::string > arg_values=std::vector< std::string >())
IMPORT SFO color_function (SFO orig, std::function< std::string(std::string)> function, std::string function_name)
IMPORT SFO sphere ()
IMPORT SFO sphere (PT center, float radius)
IMPORT SFO cube ()
IMPORT SFO cube (float start_x, float end_x, float start_y, float end_y, float start_z, float end_z)
IMPORT SFO rounded_cube (float start_x, float end_x, float start_y, float end_y, float start_z, float end_z, float r)
IMPORT SFO texture (SFO obj)
IMPORT SFO texture_box (float start_x, float end_x, float start_y, float end_y, float start_z, float end_z)
IMPORT SFO line ()
IMPORT SFO line (float start_x, float start_y, float start_z, float end_x, float end_y, float end_z, float line_width1, float line_width2)
IMPORT SFO plane (PT center, V u_x, V u_y)
IMPORT SFO torus (float radius_1, float radius_2)
IMPORT SFO color (SFO obj, float r, float g, float b, float a)
IMPORT SFO rot_x (SFO obj, float angle)
IMPORT SFO rot_y (SFO obj, float angle)
IMPORT SFO rot_z (SFO obj, float angle)
IMPORT SFO rot_x (SFO obj, float angle, PT center)
IMPORT SFO rot_y (SFO obj, float angle, PT center)
IMPORT SFO rot_z (SFO obj, float angle, PT center)
IMPORT SFO mod_x (SFO obj, float dx)
IMPORT SFO mod_y (SFO obj, float dy)
IMPORT SFO mod_z (SFO obj, float dz)
IMPORT SFO and_not (SFO obj, SFO not_obj)
IMPORT SFO or_elem (SFO obj1, SFO obj2)
IMPORT SFO blend (SFO obj1, SFO obj2, float k)
IMPORT SFO trans (SFO obj)
IMPORT SFO trans (SFO obj, float dx, float dy, float dz)
IMPORT SFO scale (SFO obj)
IMPORT SFO scale (SFO obj, float sx, float sy, float sz)
IMPORT SFO from_points (PTS p, SFO obj)
IMPORT SFO from_lines (LI li, SFO obj)
IMPORT SFO bind_arg (SFO obj, std::string name, std::string value)
IMPORT SFO color_from_normal (SFO obj)
IMPORT SFO grayscale_from_distance (SFO obj, SFO dist, float length)
IMPORT SFO stop_generation (SFO obj)
IMPORT SFO mix_color (SFO col1, SFO col2, float t)
IMPORT SFO grayscale (SFO obj)
IMPORT SFO noise (SFO obj, float strength)
IMPORT SFO ambient_occulsion (SFO obj, float d, float i)
IMPORT SFO soft_shadow (SFO scene, V light_dir, float mint, float maxt, float k, float strong)
IMPORT SFO bounding_primitive (SFO prim, SFO inside, SFO outside)
IMPORT SFO spherical (SFO obj, PT tl, PT br, float rr, float rp)
IMPORT SFO render (SFO obj)
IMPORT SFO v_render (SFO obj)
IMPORT SFO f_render_color (SFO obj)
IMPORT SFO color_from_position (SFO obj, float sx, float sy, float sz)
IMPORT SFO colormod_from_position (SFO obj, float px, float py, float pz, float sx, float sy, float sz)
IMPORT ML sfo_to_ml (EveryApi &ev, SFO sfo, float sx, float sy)

Constructor & Destructor Documentation

◆ ShaderModuleApi()

GameApi::ShaderModuleApi::ShaderModuleApi ( Env & e)

Member Function Documentation

◆ ambient_occulsion()

EXPORT GameApi::SFO GameApi::ShaderModuleApi::ambient_occulsion ( SFO obj,
float d,
float i )
Here is the caller graph for this function:

◆ and_not()

IMPORT SFO GameApi::ShaderModuleApi::and_not ( SFO obj,
SFO not_obj )
Here is the caller graph for this function:

◆ bind_arg()

IMPORT SFO GameApi::ShaderModuleApi::bind_arg ( SFO obj,
std::string name,
std::string value )
Here is the caller graph for this function:

◆ blend()

IMPORT SFO GameApi::ShaderModuleApi::blend ( SFO obj1,
SFO obj2,
float k )
Here is the caller graph for this function:

◆ bounding_primitive()

IMPORT SFO GameApi::ShaderModuleApi::bounding_primitive ( SFO prim,
SFO inside,
SFO outside )
Here is the caller graph for this function:

◆ color()

IMPORT SFO GameApi::ShaderModuleApi::color ( SFO obj,
float r,
float g,
float b,
float a )
Here is the caller graph for this function:

◆ color_from_normal()

EXPORT GameApi::SFO GameApi::ShaderModuleApi::color_from_normal ( SFO obj)
Here is the caller graph for this function:

◆ color_from_position()

IMPORT SFO GameApi::ShaderModuleApi::color_from_position ( SFO obj,
float sx,
float sy,
float sz )

◆ color_function()

IMPORT SFO GameApi::ShaderModuleApi::color_function ( SFO orig,
std::function< std::string(std::string)> function,
std::string function_name )

◆ colormod_from_position()

GameApi::SFO GameApi::ShaderModuleApi::colormod_from_position ( SFO obj,
float px,
float py,
float pz,
float sx,
float sy,
float sz )

◆ cube() [1/2]

EXPORT GameApi::SFO GameApi::ShaderModuleApi::cube ( )
Here is the caller graph for this function:

◆ cube() [2/2]

EXPORT GameApi::SFO GameApi::ShaderModuleApi::cube ( float start_x,
float end_x,
float start_y,
float end_y,
float start_z,
float end_z )

◆ empty()

IMPORT SFO GameApi::ShaderModuleApi::empty ( )

◆ f_render_color()

IMPORT SFO GameApi::ShaderModuleApi::f_render_color ( SFO obj)

◆ from_lines()

IMPORT SFO GameApi::ShaderModuleApi::from_lines ( LI li,
SFO obj )

◆ from_points()

IMPORT SFO GameApi::ShaderModuleApi::from_points ( PTS p,
SFO obj )

◆ function()

IMPORT SFO GameApi::ShaderModuleApi::function ( std::function< std::string(std::string id)> function,
std::string function_name,
std::vector< std::string > param_names = std::vector< std::string >(),
std::vector< std::string > arg_values = std::vector< std::string >() )
Here is the caller graph for this function:

◆ grayscale()

IMPORT SFO GameApi::ShaderModuleApi::grayscale ( SFO obj)
Here is the caller graph for this function:

◆ grayscale_from_distance()

IMPORT SFO GameApi::ShaderModuleApi::grayscale_from_distance ( SFO obj,
SFO dist,
float length )

◆ line() [1/2]

IMPORT SFO GameApi::ShaderModuleApi::line ( )
Here is the caller graph for this function:

◆ line() [2/2]

IMPORT SFO GameApi::ShaderModuleApi::line ( float start_x,
float start_y,
float start_z,
float end_x,
float end_y,
float end_z,
float line_width1,
float line_width2 )

◆ mix_color()

IMPORT SFO GameApi::ShaderModuleApi::mix_color ( SFO col1,
SFO col2,
float t )
Here is the caller graph for this function:

◆ mod_x()

IMPORT SFO GameApi::ShaderModuleApi::mod_x ( SFO obj,
float dx )

◆ mod_y()

IMPORT SFO GameApi::ShaderModuleApi::mod_y ( SFO obj,
float dy )

◆ mod_z()

IMPORT SFO GameApi::ShaderModuleApi::mod_z ( SFO obj,
float dz )

◆ noise()

IMPORT SFO GameApi::ShaderModuleApi::noise ( SFO obj,
float strength )
Here is the caller graph for this function:

◆ or_elem()

EXPORT GameApi::SFO GameApi::ShaderModuleApi::or_elem ( SFO obj1,
SFO obj2 )
Here is the caller graph for this function:

◆ plane()

IMPORT SFO GameApi::ShaderModuleApi::plane ( PT center,
V u_x,
V u_y )
Here is the caller graph for this function:

◆ render()

EXPORT GameApi::SFO GameApi::ShaderModuleApi::render ( SFO obj)
Here is the caller graph for this function:

◆ rot_x() [1/2]

IMPORT SFO GameApi::ShaderModuleApi::rot_x ( SFO obj,
float angle )
Here is the caller graph for this function:

◆ rot_x() [2/2]

IMPORT SFO GameApi::ShaderModuleApi::rot_x ( SFO obj,
float angle,
PT center )

◆ rot_y() [1/2]

IMPORT SFO GameApi::ShaderModuleApi::rot_y ( SFO obj,
float angle )
Here is the caller graph for this function:

◆ rot_y() [2/2]

IMPORT SFO GameApi::ShaderModuleApi::rot_y ( SFO obj,
float angle,
PT center )

◆ rot_z() [1/2]

IMPORT SFO GameApi::ShaderModuleApi::rot_z ( SFO obj,
float angle )
Here is the caller graph for this function:

◆ rot_z() [2/2]

IMPORT SFO GameApi::ShaderModuleApi::rot_z ( SFO obj,
float angle,
PT center )

◆ rounded_cube()

EXPORT GameApi::SFO GameApi::ShaderModuleApi::rounded_cube ( float start_x,
float end_x,
float start_y,
float end_y,
float start_z,
float end_z,
float r )
Here is the caller graph for this function:

◆ scale() [1/2]

IMPORT SFO GameApi::ShaderModuleApi::scale ( SFO obj)

◆ scale() [2/2]

IMPORT SFO GameApi::ShaderModuleApi::scale ( SFO obj,
float sx,
float sy,
float sz )

◆ sfo_to_ml()

GameApi::ML GameApi::ShaderModuleApi::sfo_to_ml ( EveryApi & ev,
SFO sfo,
float sx,
float sy )
Here is the caller graph for this function:

◆ soft_shadow()

IMPORT SFO GameApi::ShaderModuleApi::soft_shadow ( SFO scene,
V light_dir,
float mint,
float maxt,
float k,
float strong )
Here is the caller graph for this function:

◆ sphere() [1/2]

EXPORT GameApi::SFO GameApi::ShaderModuleApi::sphere ( )
Here is the caller graph for this function:

◆ sphere() [2/2]

EXPORT GameApi::SFO GameApi::ShaderModuleApi::sphere ( PT center,
float radius )

◆ spherical()

IMPORT SFO GameApi::ShaderModuleApi::spherical ( SFO obj,
PT tl,
PT br,
float rr,
float rp )

◆ stop_generation()

IMPORT SFO GameApi::ShaderModuleApi::stop_generation ( SFO obj)
Here is the caller graph for this function:

◆ texture()

IMPORT SFO GameApi::ShaderModuleApi::texture ( SFO obj)
Here is the caller graph for this function:

◆ texture_box()

IMPORT SFO GameApi::ShaderModuleApi::texture_box ( float start_x,
float end_x,
float start_y,
float end_y,
float start_z,
float end_z )
Here is the caller graph for this function:

◆ torus()

IMPORT SFO GameApi::ShaderModuleApi::torus ( float radius_1,
float radius_2 )
Here is the caller graph for this function:

◆ trans() [1/2]

IMPORT SFO GameApi::ShaderModuleApi::trans ( SFO obj)
Here is the caller graph for this function:

◆ trans() [2/2]

IMPORT SFO GameApi::ShaderModuleApi::trans ( SFO obj,
float dx,
float dy,
float dz )

◆ v_render()

EXPORT GameApi::SFO GameApi::ShaderModuleApi::v_render ( SFO obj)
Here is the caller graph for this function:

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