#include <GameApi.hh>
|
| IMPORT | TriStripApi (Env &e) |
| | ~TriStripApi () |
| IMPORT TS | from_array (PT *arr, int size) |
| IMPORT TS | function (std::function< PT(int i)> f, int count) |
| IMPORT TS | color_function (TS ts, std::function< unsigned int(int i)> f) |
| IMPORT TS | texcoord_function (TS ts, std::function< PT(int i)> texcoord) |
| IMPORT TS | normal_function (TS ts, std::function< V(int i)> normal) |
| IMPORT TS | rectangle_xy (float start_x, float end_x, float start_y, float end_y, float z, int sx, int sy) |
| IMPORT TS | rectangle_xz (float start_x, float end_x, float y, float start_z, float end_z) |
| IMPORT TS | circle (float center_x, float center_y, float center_z, float radius, int count) |
| IMPORT TS | transform (TS orig, std::function< PT(PT)> trans) |
| IMPORT TS | from_convex_plane (PL pl, PT pos, V u_x, V u_y) |
| IMPORT TS | span_3d_object (TS orig, float z_dist) |
| IMPORT TS | or_elem (TS t1, TS t2) |
| IMPORT TS | or_array (TS *array, int size) |
| IMPORT void | save (TS tris, std::string filename) |
| IMPORT TS | load (std::string filename) |
| IMPORT P | to_poly (TS strip) |
| IMPORT TS | from_poly (P poly) |
◆ TriStripApi()
| GameApi::TriStripApi::TriStripApi |
( |
Env & | e | ) |
|
◆ ~TriStripApi()
| GameApi::TriStripApi::~TriStripApi |
( |
| ) |
|
|
inline |
◆ circle()
| IMPORT TS GameApi::TriStripApi::circle |
( |
float | center_x, |
|
|
float | center_y, |
|
|
float | center_z, |
|
|
float | radius, |
|
|
int | count ) |
◆ color_function()
| IMPORT TS GameApi::TriStripApi::color_function |
( |
TS | ts, |
|
|
std::function< unsigned int(int i)> | f ) |
◆ from_array()
| IMPORT TS GameApi::TriStripApi::from_array |
( |
PT * | arr, |
|
|
int | size ) |
◆ from_convex_plane()
| IMPORT TS GameApi::TriStripApi::from_convex_plane |
( |
PL | pl, |
|
|
PT | pos, |
|
|
V | u_x, |
|
|
V | u_y ) |
◆ from_poly()
◆ function()
| IMPORT TS GameApi::TriStripApi::function |
( |
std::function< PT(int i)> | f, |
|
|
int | count ) |
◆ load()
| IMPORT TS GameApi::TriStripApi::load |
( |
std::string | filename | ) |
|
◆ normal_function()
| IMPORT TS GameApi::TriStripApi::normal_function |
( |
TS | ts, |
|
|
std::function< V(int i)> | normal ) |
◆ or_array()
| IMPORT TS GameApi::TriStripApi::or_array |
( |
TS * | array, |
|
|
int | size ) |
◆ or_elem()
◆ rectangle_xy()
| IMPORT TS GameApi::TriStripApi::rectangle_xy |
( |
float | start_x, |
|
|
float | end_x, |
|
|
float | start_y, |
|
|
float | end_y, |
|
|
float | z, |
|
|
int | sx, |
|
|
int | sy ) |
◆ rectangle_xz()
| IMPORT TS GameApi::TriStripApi::rectangle_xz |
( |
float | start_x, |
|
|
float | end_x, |
|
|
float | y, |
|
|
float | start_z, |
|
|
float | end_z ) |
◆ save()
| IMPORT void GameApi::TriStripApi::save |
( |
TS | tris, |
|
|
std::string | filename ) |
◆ span_3d_object()
| IMPORT TS GameApi::TriStripApi::span_3d_object |
( |
TS | orig, |
|
|
float | z_dist ) |
◆ texcoord_function()
| IMPORT TS GameApi::TriStripApi::texcoord_function |
( |
TS | ts, |
|
|
std::function< PT(int i)> | texcoord ) |
◆ to_poly()
◆ transform()
| IMPORT TS GameApi::TriStripApi::transform |
( |
TS | orig, |
|
|
std::function< PT(PT)> | trans ) |
The documentation for this class was generated from the following files: