|
GameApi 28
Library used by GameApi Builder tool
|
#include <GameApi.hh>
Public Member Functions | |
| IMPORT | WaveformApi (Env &e) |
| IMPORT WV | wv_empty (float length) |
| IMPORT WV | function (std::function< float(float)> f, float length, float min_value, float max_value) |
| IMPORT WV | sinwave (float length, float freq) |
| IMPORT WV | gaussian (float start_x, float end_x, float start_y, float end_y) |
| IMPORT WV | sum (WV w1, WV w2) |
| IMPORT WV | move (WV w1, float delta) |
| IMPORT WV | scale (WV w1, float scale) |
| IMPORT WV | repeat (WV wave, int num) |
| IMPORT WV | sample (float *array, int length, float samplelength) |
| IMPORT WV | int_sample (int *array, int length, float samplelength, int min_value, int max_value) |
| IMPORT WV | mix (WV orig, float pos, WV sample) |
| IMPORT WV | volume_ramp (WV orig, float old_y_value, float x_pos1, float x_pos2, float y_pos1, float y_pos2) |
| IMPORT WV | freq_change (WV orig, float old_freq, float new_freq) |
| IMPORT float | length (WV orig) |
| IMPORT float | get_value (WV orig, float val) |
| IMPORT WV | length_change (WV orig, float new_length) |
| IMPORT WV | step (bool b) |
| IMPORT WV | cubic (float f_0, float f_1, float df_0, float df_1, float min_y, float max_y) |
| IMPORT BM | waveform_bitmap (WV wave, int sx, int sy, unsigned int true_color, unsigned int false_color) |
| IMPORT P | waveform_rotated_polygon (WV wave, float start_angle, float end_angle, float radius, int num_samples, int num_waves) |
| IMPORT PN | std_polynomial (float x_5, float x_4, float x_3, float x_2, float x_1, float c) |
| IMPORT PN | df_dx (PN poly) |
| IMPORT WV | polynomial_wave (PN pn, float start_x, float end_x, float start_y, float end_y) |
| GameApi::WaveformApi::WaveformApi | ( | Env & | e | ) |
| GameApi::WV GameApi::WaveformApi::cubic | ( | float | f_0, |
| float | f_1, | ||
| float | df_0, | ||
| float | df_1, | ||
| float | min_y, | ||
| float | max_y ) |

| GameApi::PN GameApi::WaveformApi::df_dx | ( | PN | poly | ) |

| EXPORT GameApi::WV GameApi::WaveformApi::freq_change | ( | GameApi::WV | orig, |
| float | old_freq, | ||
| float | new_freq ) |
| EXPORT GameApi::WV GameApi::WaveformApi::function | ( | std::function< float(float)> | f, |
| float | length, | ||
| float | min_value, | ||
| float | max_value ) |
| EXPORT GameApi::WV GameApi::WaveformApi::gaussian | ( | float | start_x, |
| float | end_x, | ||
| float | start_y, | ||
| float | end_y ) |

| EXPORT GameApi::WV GameApi::WaveformApi::int_sample | ( | int * | array, |
| int | length, | ||
| float | samplelength, | ||
| int | min_value, | ||
| int | max_value ) |
| EXPORT float GameApi::WaveformApi::length | ( | GameApi::WV | orig | ) |

| EXPORT GameApi::WV GameApi::WaveformApi::length_change | ( | WV | orig, |
| float | new_length ) |

| EXPORT GameApi::WV GameApi::WaveformApi::mix | ( | GameApi::WV | orig, |
| float | pos, | ||
| GameApi::WV | sample ) |
| EXPORT GameApi::WV GameApi::WaveformApi::move | ( | WV | w1, |
| float | delta ) |

| GameApi::WV GameApi::WaveformApi::polynomial_wave | ( | PN | pn, |
| float | start_x, | ||
| float | end_x, | ||
| float | start_y, | ||
| float | end_y ) |

| EXPORT GameApi::WV GameApi::WaveformApi::repeat | ( | WV | wave, |
| int | num ) |

| EXPORT GameApi::WV GameApi::WaveformApi::sample | ( | float * | array, |
| int | length, | ||
| float | samplelength ) |

| EXPORT GameApi::WV GameApi::WaveformApi::scale | ( | WV | w1, |
| float | scale ) |

| EXPORT GameApi::WV GameApi::WaveformApi::sinwave | ( | float | length, |
| float | freq ) |

| GameApi::PN GameApi::WaveformApi::std_polynomial | ( | float | x_5, |
| float | x_4, | ||
| float | x_3, | ||
| float | x_2, | ||
| float | x_1, | ||
| float | c ) |

| EXPORT GameApi::WV GameApi::WaveformApi::step | ( | bool | b | ) |

| EXPORT GameApi::WV GameApi::WaveformApi::sum | ( | WV | w1, |
| WV | w2 ) |

| EXPORT GameApi::WV GameApi::WaveformApi::volume_ramp | ( | GameApi::WV | orig, |
| float | old_y_value, | ||
| float | x_pos1, | ||
| float | x_pos2, | ||
| float | y_pos1, | ||
| float | y_pos2 ) |
| EXPORT GameApi::BM GameApi::WaveformApi::waveform_bitmap | ( | WV | wave, |
| int | sx, | ||
| int | sy, | ||
| unsigned int | true_color, | ||
| unsigned int | false_color ) |

| EXPORT GameApi::P GameApi::WaveformApi::waveform_rotated_polygon | ( | WV | wave, |
| float | start_angle, | ||
| float | end_angle, | ||
| float | radius, | ||
| int | num_samples, | ||
| int | num_waves ) |

| EXPORT GameApi::WV GameApi::WaveformApi::wv_empty | ( | float | length | ) |
