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

#include <GameApi.hh>

Public Member Functions

IMPORT LinesApi (Env &e)
IMPORT LI pos_choose (EveryApi &ev, FB bm, float pos, float start_x, float end_x, float start_y, float end_y, float z)
IMPORT LI alt (std::vector< LI > v, int index)
IMPORT LI li_empty ()
IMPORT LI li_url (std::string url)
IMPORT LI li_url_nr (std::string url)
IMPORT LI function (std::function< PT(int linenum, bool id)> f, int numlines)
IMPORT LI line_pos_mult (float val, LI li)
IMPORT LI point_array (std::vector< PT > vec)
IMPORT LI li_or_array (std::vector< LI > vec)
IMPORT LI li_bevel (LI li, P p, float mix)
IMPORT P p_towards_normal (P p, float amount)
IMPORT LI li_matrix (LI lines, M matrix)
IMPORT LI color_function (LI lines, std::function< unsigned int(int linenum, bool id)> f)
IMPORT LI change_color (LI li, unsigned int color)
IMPORT LI change_color2 (LI li, unsigned int color_1, unsigned int color_2)
IMPORT LI from_points (PC points, bool loops)
IMPORT LI from_points2 (PTS start_points, PTS end_points)
IMPORT LI from_plane (PL plane)
IMPORT LI from_polygon (P poly)
IMPORT LI from_polygon2 (P poly1, P poly2)
IMPORT LI normals_from_polygon (P poly, float length)
IMPORT P line_anim (P poly, LI lines_from_polygon2, float val)
IMPORT PTS pts_line_anim (LI lines, float val)
IMPORT PTS pts_line_anim2 (LI lines, std::function< float(int)> f)
IMPORT LI border_from_bool_bitmap (BB b, float start_x, float end_x, float start_y, float end_y, float z)
IMPORT LI render_slice_2d (P p, PT pos, V u_x, V u_y)
IMPORT LI translate (LI lines, float dx, float dy, float dz)
IMPORT LI scale (LI lines, float m_x, float m_y, float m_z)
IMPORT LI li_or_elem (LI li1, LI li2)
IMPORT LI rotx (LI lines, float angle)
IMPORT LI roty (LI lines, float angle)
IMPORT LI rotz (LI lines, float angle)
IMPORT P line_product (LI lines1, LI lines2)
IMPORT LI fur (PTS pts, PT center, float dist)
IMPORT LI split_lines (LI lines, float dist)
IMPORT LI twist_y (LI lines, float y_0, float angle_per_y_unit)
IMPORT LI random_angle (LI lines, float max_angle)
IMPORT LI unit_cube (LI orig, PT pos, V u_x, V u_y, V u_z)
IMPORT LI unit_to_cube (LI orig, PT pos, V u_x, V u_y, V u_z)
IMPORT LI unit_to_flex (LI orig, PT bTL, PT bTR, PT bBL, PT bBR, PT fTL, PT fTR, PT fBL, PT fBR)
IMPORT LI random_mesh_quad_lines (EveryApi &ev, P p, int count)
IMPORT LI lines_from_quads (P p, int sx, int sy)
IMPORT ML ml_li_render (EveryApi &ev, LI l, float linewidth)
IMPORT LLA prepare (LI l)
IMPORT void update (LLA la, LI l)
IMPORT ML update_ml (LLA la, LI l)
IMPORT void render (LLA array)
IMPORT void prepare_inst (LLA array, PTA instances)
IMPORT void render_inst (LLA array, PTA instances)
IMPORT void prepare_inst_matrix (LLA array, MSA instances)
IMPORT void render_inst_matrix (LLA array, MSA instances)
IMPORT ML render_ml (EveryApi &ev, LLA array, float linewidth)
IMPORT ML render_ml2 (EveryApi &ev, LI array, float linewidth)
IMPORT ML render_inst_ml (EveryApi &ev, LLA array, PTA pta, float linewidth)
IMPORT ML render_inst_ml2 (EveryApi &ev, LI array, PTA pta, float linewidth)
IMPORT ML render_inst_ml3 (EveryApi &ev, LI array, PTS pts, float linewidth)
IMPORT ML render_inst_ml3_matrix (EveryApi &ev, LI array, MS pts, float linewidth)
IMPORT LI import_ifc (EveryApi &ev, std::string url)

Constructor & Destructor Documentation

◆ LinesApi()

GameApi::LinesApi::LinesApi ( Env & e)
Here is the caller graph for this function:

Member Function Documentation

◆ alt()

EXPORT GameApi::LI GameApi::LinesApi::alt ( std::vector< LI > v,
int index )
Here is the caller graph for this function:

◆ border_from_bool_bitmap()

EXPORT GameApi::LI GameApi::LinesApi::border_from_bool_bitmap ( GameApi::BB b,
float start_x,
float end_x,
float start_y,
float end_y,
float z )
Here is the caller graph for this function:

◆ change_color()

EXPORT GameApi::LI GameApi::LinesApi::change_color ( GameApi::LI li,
unsigned int color )
Here is the caller graph for this function:

◆ change_color2()

EXPORT GameApi::LI GameApi::LinesApi::change_color2 ( GameApi::LI li,
unsigned int color_1,
unsigned int color_2 )
Here is the caller graph for this function:

◆ color_function()

EXPORT GameApi::LI GameApi::LinesApi::color_function ( LI lines,
std::function< unsigned int(int linenum, bool id)> f )

◆ from_plane()

EXPORT GameApi::LI GameApi::LinesApi::from_plane ( GameApi::PL plane)

◆ from_points()

EXPORT GameApi::LI GameApi::LinesApi::from_points ( GameApi::PC points,
bool loops )

◆ from_points2()

GameApi::LI GameApi::LinesApi::from_points2 ( PTS start_points,
PTS end_points )

◆ from_polygon()

EXPORT GameApi::LI GameApi::LinesApi::from_polygon ( GameApi::P poly)
Here is the caller graph for this function:

◆ from_polygon2()

EXPORT GameApi::LI GameApi::LinesApi::from_polygon2 ( GameApi::P poly1,
GameApi::P poly2 )

◆ function()

EXPORT GameApi::LI GameApi::LinesApi::function ( std::function< PT(int linenum, bool id)> f,
int numlines )

◆ fur()

GameApi::LI GameApi::LinesApi::fur ( PTS pts,
PT center,
float dist )
Here is the caller graph for this function:

◆ import_ifc()

IMPORT LI GameApi::LinesApi::import_ifc ( EveryApi & ev,
std::string url )
Here is the caller graph for this function:

◆ li_bevel()

GameApi::LI GameApi::LinesApi::li_bevel ( LI li,
P p,
float mix )
Here is the caller graph for this function:

◆ li_empty()

GameApi::LI GameApi::LinesApi::li_empty ( )
Here is the caller graph for this function:

◆ li_matrix()

EXPORT GameApi::LI GameApi::LinesApi::li_matrix ( LI lines,
M matrix )

◆ li_or_array()

GameApi::LI GameApi::LinesApi::li_or_array ( std::vector< LI > vec)

◆ li_or_elem()

GameApi::LI GameApi::LinesApi::li_or_elem ( LI li1,
LI li2 )
Here is the caller graph for this function:

◆ li_url()

GameApi::LI GameApi::LinesApi::li_url ( std::string url)
Here is the caller graph for this function:

◆ li_url_nr()

GameApi::LI GameApi::LinesApi::li_url_nr ( std::string url)
Here is the caller graph for this function:

◆ line_anim()

EXPORT GameApi::P GameApi::LinesApi::line_anim ( GameApi::P poly,
GameApi::LI lines,
float val )

◆ line_pos_mult()

GameApi::LI GameApi::LinesApi::line_pos_mult ( float val,
LI li )

◆ line_product()

GameApi::P GameApi::LinesApi::line_product ( LI lines1,
LI lines2 )
Here is the caller graph for this function:

◆ lines_from_quads()

GameApi::LI GameApi::LinesApi::lines_from_quads ( P p,
int sx,
int sy )
Here is the caller graph for this function:

◆ ml_li_render()

EXPORT GameApi::ML GameApi::LinesApi::ml_li_render ( EveryApi & ev,
LI l,
float linewidth )
Here is the caller graph for this function:

◆ normals_from_polygon()

EXPORT GameApi::LI GameApi::LinesApi::normals_from_polygon ( GameApi::P p,
float length )

◆ p_towards_normal()

GameApi::P GameApi::LinesApi::p_towards_normal ( P p,
float amount )
Here is the caller graph for this function:

◆ point_array()

GameApi::LI GameApi::LinesApi::point_array ( std::vector< PT > vec)
Here is the caller graph for this function:

◆ pos_choose()

GameApi::LI GameApi::LinesApi::pos_choose ( EveryApi & ev,
FB bm,
float pos,
float start_x,
float end_x,
float start_y,
float end_y,
float z )
Here is the caller graph for this function:

◆ prepare()

EXPORT GameApi::LLA GameApi::LinesApi::prepare ( LI l)

◆ prepare_inst()

EXPORT void GameApi::LinesApi::prepare_inst ( LLA array,
PTA instances )

◆ prepare_inst_matrix()

EXPORT void GameApi::LinesApi::prepare_inst_matrix ( LLA array,
MSA instances )

◆ pts_line_anim()

EXPORT GameApi::PTS GameApi::LinesApi::pts_line_anim ( LI lines,
float val )

◆ pts_line_anim2()

EXPORT GameApi::PTS GameApi::LinesApi::pts_line_anim2 ( LI lines,
std::function< float(int)> f )

◆ random_angle()

GameApi::LI GameApi::LinesApi::random_angle ( LI lines,
float max_angle )
Here is the caller graph for this function:

◆ random_mesh_quad_lines()

GameApi::LI GameApi::LinesApi::random_mesh_quad_lines ( EveryApi & ev,
P p,
int count )
Here is the caller graph for this function:

◆ render()

EXPORT void GameApi::LinesApi::render ( LLA array)

◆ render_inst()

EXPORT void GameApi::LinesApi::render_inst ( LLA array,
PTA instances )

◆ render_inst_matrix()

EXPORT void GameApi::LinesApi::render_inst_matrix ( LLA array,
MSA instances )

◆ render_inst_ml()

EXPORT GameApi::ML GameApi::LinesApi::render_inst_ml ( EveryApi & ev,
LLA array,
PTA pta,
float linewidth )

◆ render_inst_ml2()

EXPORT GameApi::ML GameApi::LinesApi::render_inst_ml2 ( EveryApi & ev,
LI array,
PTA pta,
float linewidth )

◆ render_inst_ml3()

EXPORT GameApi::ML GameApi::LinesApi::render_inst_ml3 ( EveryApi & ev,
LI array,
PTS pts,
float linewidth )

◆ render_inst_ml3_matrix()

EXPORT GameApi::ML GameApi::LinesApi::render_inst_ml3_matrix ( EveryApi & ev,
LI array,
MS pts,
float linewidth )

◆ render_ml()

EXPORT GameApi::ML GameApi::LinesApi::render_ml ( EveryApi & ev,
LLA array,
float linewidth )

◆ render_ml2()

EXPORT GameApi::ML GameApi::LinesApi::render_ml2 ( EveryApi & ev,
LI array,
float linewidth )

◆ render_slice_2d()

EXPORT GameApi::LI GameApi::LinesApi::render_slice_2d ( GameApi::P p,
GameApi::PT pos,
GameApi::V u_x,
GameApi::V u_y )

◆ rotx()

EXPORT GameApi::LI GameApi::LinesApi::rotx ( LI lines,
float angle )

◆ roty()

EXPORT GameApi::LI GameApi::LinesApi::roty ( LI lines,
float angle )

◆ rotz()

EXPORT GameApi::LI GameApi::LinesApi::rotz ( LI lines,
float angle )

◆ scale()

EXPORT GameApi::LI GameApi::LinesApi::scale ( LI lines,
float m_x,
float m_y,
float m_z )
Here is the caller graph for this function:

◆ split_lines()

GameApi::LI GameApi::LinesApi::split_lines ( LI lines,
float dist )
Here is the caller graph for this function:

◆ translate()

EXPORT GameApi::LI GameApi::LinesApi::translate ( LI lines,
float dx,
float dy,
float dz )
Here is the caller graph for this function:

◆ twist_y()

GameApi::LI GameApi::LinesApi::twist_y ( LI lines,
float y_0,
float angle_per_y_unit )
Here is the caller graph for this function:

◆ unit_cube()

IMPORT LI GameApi::LinesApi::unit_cube ( LI orig,
PT pos,
V u_x,
V u_y,
V u_z )

◆ unit_to_cube()

IMPORT LI GameApi::LinesApi::unit_to_cube ( LI orig,
PT pos,
V u_x,
V u_y,
V u_z )

◆ unit_to_flex()

IMPORT LI GameApi::LinesApi::unit_to_flex ( LI orig,
PT bTL,
PT bTR,
PT bBL,
PT bBR,
PT fTL,
PT fTR,
PT fBL,
PT fBR )

◆ update()

EXPORT void GameApi::LinesApi::update ( LLA la,
LI l )

◆ update_ml()

EXPORT GameApi::ML GameApi::LinesApi::update_ml ( LLA la,
LI l )
Here is the caller graph for this function:

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