GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
Graph.cc File Reference
#include "Graph.hh"
#include "Event.hh"
#include "Shader.hh"
#include "Effect2.hh"
#include "Font.hh"
#include "VertexArray.hh"
#include "GameApi_low.hh"
Include dependency graph for Graph.cc:

Classes

class  RectangleMesh
class  HexagonMesh
class  HexagonSteps
class  HexagonMeshTexCoords
class  RectangleMeshTexCoords
class  ColorFunction
class  BoolPos
struct  ThreadInfo_sprite
class  SpriteTexture

Macros

#define _SCL_SECURE_NO_WARNINGS
#define NO_SDL_GLEXT

Functions

void RenderVoxel (VolumeObject &orv, int size, float wholesize, HandleValue< std::pair< Vector, unsigned int > > &hv)
Cube3 CubeVoxelArea (Voxel< Cube3 > &cubes, PointI p1, PointI p2)
Point2d IntersectLines (const Line2d &l1, const Line2d &l2)
float AngleLines (const Point2d &intersect, const Point2d &l1, const Point2d &l2)
Quad QuadIterpolation (const Quad &q1, const Quad &q2, float val)
void BlitBitmap (BufferRef ref, int xx, int yy, Bitmap< Color > &color)
void PrepareGrid (Bitmap< Color > &bm, int cellsx, int cellsy, ArrayRender &rend)
void RenderGrid (Bitmap< Pos > &bm, float x, float y, int sx, int sy, ArrayRender &rend, int start_x, int start_y, int size_x, int size_y)
IMPORT void ProgressBar (int num, int val, int max, std::string label)
IMPORT void InstallProgress (int num, std::string label, int max=15)
void * thread_func_sprite (void *data)
std::string MB (long i)
void TexturePrepare (const Sprite &s, ArrayRender &rend, bool progress, bool textrender)
void TextureEnable (ArrayRender &rend, int frame, bool enable)
void PrepareSprite (const Sprite &s, ArrayRender &rend)
void PrepareSpriteToVA (const Sprite &s, VertexArraySet &vas)
void RenderSprite (const Sprite &s, int frame, Point2d pos, float z, ArrayRender &rend, Program *prog)
void RenderSprite (const Sprite &s, int frame, Point2d pos, float z, ArrayRender &rend, float mult_x, float mult_y, Program *prog)
std::string WhiteSpace (std::string s)
void DumpMem (const char *c, int size)
void Write (Parser2 *p, char *c, int size, int type, std::string s, bool &success)
int Find (std::string s, char c)

Variables

SuperParameters odd_1 = { 1.00, 1.00, 7.00, 0.20, 1.70, 1.70 }
SuperParameters odd_2 = {1.00, 1.00, 7.00, 0.20, 1.70, 1.70 }
SuperParameters curved_1 = { 1.00, 1.00, 5.00, 60.0, 100, 30 }
SuperParameters curved_2 = { 1.00, 2.00, 2.00, 10.0, 10, 10 }
int g_sprite_count =0
int g_sprite_count2 = 0
int g_pthread_count
IMPORT int sprite_screen_width =800
IMPORT int sprite_screen_height =600
IMPORT int sprite_target_width =800
IMPORT int sprite_target_height =600

Macro Definition Documentation

◆ _SCL_SECURE_NO_WARNINGS

#define _SCL_SECURE_NO_WARNINGS

◆ NO_SDL_GLEXT

#define NO_SDL_GLEXT

Function Documentation

◆ AngleLines()

float AngleLines ( const Point2d & intersect,
const Point2d & l1,
const Point2d & l2 )

◆ BlitBitmap()

void BlitBitmap ( BufferRef ref,
int xx,
int yy,
Bitmap< Color > & color )
Here is the caller graph for this function:

◆ CubeVoxelArea()

Cube3 CubeVoxelArea ( Voxel< Cube3 > & cubes,
PointI p1,
PointI p2 )

◆ DumpMem()

void DumpMem ( const char * c,
int size )
Here is the caller graph for this function:

◆ Find()

int Find ( std::string s,
char c )

◆ InstallProgress()

IMPORT void InstallProgress ( int num,
std::string label,
int max = 15 )

◆ IntersectLines()

Point2d IntersectLines ( const Line2d & l1,
const Line2d & l2 )
Here is the caller graph for this function:

◆ MB()

std::string MB ( long i)

◆ PrepareGrid()

void PrepareGrid ( Bitmap< Color > & bm,
int cellsx,
int cellsy,
ArrayRender & rend )
Here is the caller graph for this function:

◆ PrepareSprite()

void PrepareSprite ( const Sprite & s,
ArrayRender & rend )
Here is the caller graph for this function:

◆ PrepareSpriteToVA()

void PrepareSpriteToVA ( const Sprite & s,
VertexArraySet & vas )
Here is the caller graph for this function:

◆ ProgressBar()

IMPORT void ProgressBar ( int num,
int val,
int max,
std::string label )

std::cout << "ProgressBar: '" << num << " " << label << " " << val << " " << max << "'" << std::endl;

Here is the caller graph for this function:

◆ QuadIterpolation()

Quad QuadIterpolation ( const Quad & q1,
const Quad & q2,
float val )

◆ RenderGrid()

void RenderGrid ( Bitmap< Pos > & bm,
float x,
float y,
int sx,
int sy,
ArrayRender & rend,
int start_x,
int start_y,
int size_x,
int size_y )
Here is the caller graph for this function:

◆ RenderSprite() [1/2]

void RenderSprite ( const Sprite & s,
int frame,
Point2d pos,
float z,
ArrayRender & rend,
float mult_x,
float mult_y,
Program * prog )

◆ RenderSprite() [2/2]

void RenderSprite ( const Sprite & s,
int frame,
Point2d pos,
float z,
ArrayRender & rend,
Program * prog )
Here is the caller graph for this function:

◆ RenderVoxel()

void RenderVoxel ( VolumeObject & orv,
int size,
float wholesize,
HandleValue< std::pair< Vector, unsigned int > > & hv )
Here is the caller graph for this function:

◆ TextureEnable()

void TextureEnable ( ArrayRender & rend,
int frame,
bool enable )
Here is the caller graph for this function:

◆ TexturePrepare()

void TexturePrepare ( const Sprite & s,
ArrayRender & rend,
bool progress,
bool textrender )
Here is the caller graph for this function:

◆ thread_func_sprite()

void * thread_func_sprite ( void * data)
Here is the caller graph for this function:

◆ WhiteSpace()

std::string WhiteSpace ( std::string s)

◆ Write()

void Write ( Parser2 * p,
char * c,
int size,
int type,
std::string s,
bool & success )

Variable Documentation

◆ curved_1

SuperParameters curved_1 = { 1.00, 1.00, 5.00, 60.0, 100, 30 }

◆ curved_2

SuperParameters curved_2 = { 1.00, 2.00, 2.00, 10.0, 10, 10 }

◆ g_pthread_count

int g_pthread_count
extern

◆ g_sprite_count

int g_sprite_count =0

◆ g_sprite_count2

int g_sprite_count2 = 0

◆ odd_1

SuperParameters odd_1 = { 1.00, 1.00, 7.00, 0.20, 1.70, 1.70 }

◆ odd_2

SuperParameters odd_2 = {1.00, 1.00, 7.00, 0.20, 1.70, 1.70 }

◆ sprite_screen_height

IMPORT int sprite_screen_height =600

◆ sprite_screen_width

IMPORT int sprite_screen_width =800

◆ sprite_target_height

IMPORT int sprite_target_height =600

◆ sprite_target_width

IMPORT int sprite_target_width =800