GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
test.cpp File Reference
#include "GameApi.hh"
#include <iostream>
#include <cstdlib>
#include <math.h>
#include <functional>
#include <sstream>
Include dependency graph for test.cpp:

Classes

struct  Models
struct  Envi

Functions

unsigned int func (char c)
P points_func (int i, float x, float y, float z, unsigned int color, EveryApi &ev)
P points_func2 (int i, float x, float y, float z, unsigned int color, EveryApi &ev)
float float_bitmap (int x, int y)
P pieces2 (unsigned int i, EveryApi &ev)
P pieces3 (unsigned int i, EveryApi &ev)
P line_func (int i, float sx, float sy, float sz, float ex, float ey, float ez, unsigned int scolor, unsigned int ecolor, EveryApi &ev)
P poly_func (int face, PT pp1, PT pp2, PT pp3, PT pp4, EveryApi &ev)
P cube_parts (int face, PT pt1, PT pt2, PT pt3, PT pt4, EveryApi &ev)
P cube (float x1, float x2, float y1, float y2, float z1, float z2, EveryApi &ev)
P heightmap_cube (float val, EveryApi &ev)
P pieces (unsigned int i, EveryApi &ev, Models &m)
unsigned int color_change_func (unsigned int orig, int face, int point)
void iter ()
int main (int argc, char *argv[])

Variables

char world []
struct Envi env

Function Documentation

◆ color_change_func()

unsigned int color_change_func ( unsigned int orig,
int face,
int point )
Here is the caller graph for this function:

◆ cube()

P cube ( float x1,
float x2,
float y1,
float y2,
float z1,
float z2,
EveryApi & ev )
Here is the caller graph for this function:

◆ cube_parts()

P cube_parts ( int face,
PT pt1,
PT pt2,
PT pt3,
PT pt4,
EveryApi & ev )
Here is the caller graph for this function:

◆ float_bitmap()

float float_bitmap ( int x,
int y )
Here is the caller graph for this function:

◆ func()

unsigned int func ( char c)

◆ heightmap_cube()

P heightmap_cube ( float val,
EveryApi & ev )
Here is the caller graph for this function:

◆ iter()

void iter ( )
Here is the caller graph for this function:

◆ line_func()

P line_func ( int i,
float sx,
float sy,
float sz,
float ex,
float ey,
float ez,
unsigned int scolor,
unsigned int ecolor,
EveryApi & ev )
Here is the caller graph for this function:

◆ main()

int main ( int argc,
char * argv[] )

◆ pieces()

P pieces ( unsigned int i,
EveryApi & ev,
Models & m )

◆ pieces2()

P pieces2 ( unsigned int i,
EveryApi & ev )
Here is the caller graph for this function:

◆ pieces3()

P pieces3 ( unsigned int i,
EveryApi & ev )
Here is the caller graph for this function:

◆ points_func()

P points_func ( int i,
float x,
float y,
float z,
unsigned int color,
EveryApi & ev )
Here is the caller graph for this function:

◆ points_func2()

P points_func2 ( int i,
float x,
float y,
float z,
unsigned int color,
EveryApi & ev )
Here is the caller graph for this function:

◆ poly_func()

P poly_func ( int face,
PT pp1,
PT pp2,
PT pp3,
PT pp4,
EveryApi & ev )
Here is the caller graph for this function:

Variable Documentation

◆ env

struct Envi env

◆ world

char world[]
Initial value:
=
"+---------+---------+"
"|....%...T|.P...Y...|"
"|..+---+..|...L....S|"
"|.Q|...|...KKK..I...|"
"|..+.*.+..|KKK.....G|"
"|&..W....#|KKK..H...|"
"+--.....--+---------+"