GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
GameApi_bm.cc File Reference
#include "GameApi_h.hh"
#include "GameApi_low.hh"
#include <iomanip>
#include <fstream>
#include "gif.h"
Include dependency graph for GameApi_bm.cc:

Classes

struct  BitmapPriv
struct  AnimPriv
class  ColorMap
class  ColorMap2
class  ColorRangeBitmap
class  GradientBitmap3
class  GradientBitmap2
class  NewBitmap_SZ< T >
class  BitmapTransformFromFunction< T >
class  BitmapFromFunction< T >
class  ChessBoardBitmap2
class  SaveBitmapML
class  SavePngArray
class  LoadBitmapBitmap
class  BitmapPrepareCache
class  BitmapFromString< T >
class  Rot90Bitmap
class  FlipBitmap
class  WorldFromUrl
class  ChooseBitmap3
class  ChooseBitmap4
class  PerlinNoise2
class  PerlinNoise
class  TriBoolBitmap
class  EquivalenceClassFromArea< T >
struct  RangeData
class  LineBoolBitmap
struct  Rectangle_data
class  RectBitmap44
class  BoolBitmapSprite
class  BitmapFromRed
class  GaussianBitmap
class  BitmapFromGreen
class  BitmapFromBlue
class  BitmapFromGrayscale
class  BitmapFromAlpha
class  FromBoolBitmap
class  DistanceFieldBitmap
class  BorderFloatBitmap
struct  PointArray
class  PersistentCache
class  SimpleBlur
class  Dithering
class  XBitmap
class  CBitmap
class  YBitmap
class  MulBitmap_c
class  AddBitmap_c
class  EqualizerBitmap
class  SampleContFloatBitmap
class  SampleContBoolBitmap
class  SqrtContFloat_c
class  FuncCont
class  IndicatorBitmap
class  SavePngML
class  AvgBitmap
class  DistFB
class  BlurBitmap
class  FBToIbm
class  IBMToVX
struct  Ret
class  IntBitmapLoader
class  IntBitmap_BM
class  PlusBitmap
class  GradientFB
class  RadialFB
class  SinFB
class  PlusFB
class  MulFB
class  CubeMapBitmap
class  SubBitmap2
class  NoiseVectors
class  FractalMountain
class  BumpMap
class  CreateIntBitmap
class  ChooseBM
class  ColorBM
class  CubeColorBool
class  ChooseBitmapColours
class  MedianFilter
class  CalcLight
class  ScaleToSize
class  GridML
class  PWorld
class  ScriptBitmap
class  SaveRawBitmap
class  SaveRawBitmapML
class  LoadRawBitmap2
class  CircularGradient
class  BitmapGraphicsContext
class  FloodFill2
class  GrayToBlack
class  WriteGifAnim
class  FlipTileBitmap
class  TileRendererMainLoop
class  TileHud
class  TileSplashScreen
class  TileScroller2d
class  TileRender2d
class  AnimTiles2d
class  NetworkTiles2d
class  ItemsTile
class  EnemyTile
class  PlayerTileMapping
class  PlayerTile
class  Game
class  BitmapFromPixelAllocator
class  BitmapMapFromPixelAllocator
class  ShaderBitmapFromPixelAllocator
class  BitmapPixelAllocator
class  VerticalBitmapDisplay
class  DisplayBitmaps
class  DebugNumber
class  FloatVoxelRangeChoose
class  BoolVoxelToIntVoxel
class  FloatBitmapRangeChoose
class  FloatBitmapChoose
class  FloatBitmapChoose_negative
class  FloatBitmapChoose_positive
class  FloatBitmapChoose_zero
class  RenderVolumeObject

Enumerations

enum  {
  E_Less = 1 , E_Greater , E_Empty , E_Number ,
  E_X , E_Y , E_Plus , E_Minus ,
  E_Mul , E_Div , E_Mod , E_Sin ,
  E_Cos , E_Tan
}

Functions

template<class T>
void ArrayDelete (T *ptr)
BufferRef LoadImage (std::string filename, bool &success)
std::string stripprefix (std::string s)
std::string remove_load (std::string s)
std::vector< unsigned char > * load_from_url (GameApi::Env &e, std::string url, bool nosize, int progress_num)
int find_str (std::string val, std::string repl)
void stackTrace ()
IMPORT void ProgressBar (int num, int val, int max, std::string label)
IMPORT void InstallProgress (int num, std::string label, int max=15)
int bitmap_find_data (std::string data)
std::string MB (long num)
template<class T>
Bitmap< T > * subbitmap_t (Bitmap< T > *bm, int x, int y, int width, int height)
BitmapHandle * subbitmap_h (BitmapHandle *handle, int x, int y, int width, int height)
template<class T>
Bitmap< T > * growbitmap_t (Bitmap< T > *bm, int l, int t, int r, int b, T tt)
BitmapHandle * growbitmap_h (BitmapHandle *handle, int l, int t, int r, int b)
BitmapHandle * modify_bitmap_h (BitmapHandle *orig, BitmapHandle *bm, int x, int y)
int index_from_string (char c, std::string s)
float perlin (float x, float y, float z)
bool range_select_color_area (int r, int g, int b, int a, void *dt)
bool Rectangle_func (int x, int y, void *data)
float mymin (float x, float y)
void SaveImage (BufferRef ref, std::string filename)
Ret bitmapparser (unsigned char *buf)
bool MedianCompare (int x, int y)
int cmd_find_ch (std::string expr, char find_ch)
bool cmd_is_number (std::string expr)
std::string cmd_stripspaces (std::string expr)
bool is_cmd_unary (std::string label, std::string expr)
void ParseCmds (std::string expr, std::vector< int > &cmdbuf, std::vector< float > &parambuf)
float executebufs (const std::vector< int > &cmdbuf, const std::vector< float > &parambuf, float X, float Y)
void save_raw_bitmap (GameApi::Env &e, GameApi::BM bm, std::string filename)
GameApi::BM load_raw_bitmap2 (GameApi::Env &e, std::string data)
GameApi::BM load_raw_bitmap (GameApi::Env &e, std::string filename)
bool is_transparent_tile (int val)
bool is_not_wall (int val)
bool vol_obj_property (Point p)
bool vol_obj_property2 (Point p)

Variables

double g_dpr
std::vector< const unsigned char * > g_content
std::vector< const unsigned char * > g_content_end
std::vector< const char * > g_urls
std::map< std::string, std::vector< unsigned char > * > load_url_buffers
IMPORT std::string gameapi_homepageurl
std::vector< std::pair< std::string, int > > bitmap_prepare_cache_data
unsigned int color_array [] = { 0x00000000, 0xffffffff, 0xffff0000, 0xff00ff00, 0xff0000ff, 0xff00ffff, 0xffffff00, 0xffffffff }
std::vector< float > * g_median_float
void * g_vol_data

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
E_Less 
E_Greater 
E_Empty 
E_Number 
E_X 
E_Y 
E_Plus 
E_Minus 
E_Mul 
E_Div 
E_Mod 
E_Sin 
E_Cos 
E_Tan 

Function Documentation

◆ ArrayDelete()

template<class T>
void ArrayDelete ( T * ptr)
Here is the caller graph for this function:

◆ bitmap_find_data()

int bitmap_find_data ( std::string data)

◆ bitmapparser()

Ret bitmapparser ( unsigned char * buf)
Here is the caller graph for this function:

◆ cmd_find_ch()

int cmd_find_ch ( std::string expr,
char find_ch )
Here is the caller graph for this function:

◆ cmd_is_number()

bool cmd_is_number ( std::string expr)
Here is the caller graph for this function:

◆ cmd_stripspaces()

std::string cmd_stripspaces ( std::string expr)
Here is the caller graph for this function:

◆ executebufs()

float executebufs ( const std::vector< int > & cmdbuf,
const std::vector< float > & parambuf,
float X,
float Y )
Here is the caller graph for this function:

◆ find_str()

int find_str ( std::string val,
std::string repl )

◆ growbitmap_h()

BitmapHandle * growbitmap_h ( BitmapHandle * handle,
int l,
int t,
int r,
int b )
Here is the caller graph for this function:

◆ growbitmap_t()

template<class T>
Bitmap< T > * growbitmap_t ( Bitmap< T > * bm,
int l,
int t,
int r,
int b,
T tt )
Here is the caller graph for this function:

◆ index_from_string()

int index_from_string ( char c,
std::string s )
Here is the caller graph for this function:

◆ InstallProgress()

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

◆ is_cmd_unary()

bool is_cmd_unary ( std::string label,
std::string expr )
Here is the caller graph for this function:

◆ is_not_wall()

bool is_not_wall ( int val)
Here is the caller graph for this function:

◆ is_transparent_tile()

bool is_transparent_tile ( int val)
Here is the caller graph for this function:

◆ load_from_url()

std::vector< unsigned char > * load_from_url ( GameApi::Env & e,
std::string url,
bool nosize,
int progress_num )

◆ load_raw_bitmap()

GameApi::BM load_raw_bitmap ( GameApi::Env & e,
std::string filename )

◆ load_raw_bitmap2()

GameApi::BM load_raw_bitmap2 ( GameApi::Env & e,
std::string data )
Here is the caller graph for this function:

◆ LoadImage()

BufferRef LoadImage ( std::string filename,
bool & success )

◆ MB()

std::string MB ( long num)

◆ MedianCompare()

bool MedianCompare ( int x,
int y )
Here is the caller graph for this function:

◆ modify_bitmap_h()

BitmapHandle * modify_bitmap_h ( BitmapHandle * orig,
BitmapHandle * bm,
int x,
int y )
Here is the caller graph for this function:

◆ mymin()

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

◆ ParseCmds()

void ParseCmds ( std::string expr,
std::vector< int > & cmdbuf,
std::vector< float > & parambuf )
Here is the caller graph for this function:

◆ perlin()

float perlin ( float x,
float y,
float z )
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;

◆ range_select_color_area()

bool range_select_color_area ( int r,
int g,
int b,
int a,
void * dt )
Here is the caller graph for this function:

◆ Rectangle_func()

bool Rectangle_func ( int x,
int y,
void * data )
Here is the caller graph for this function:

◆ remove_load()

std::string remove_load ( std::string s)
Here is the caller graph for this function:

◆ save_raw_bitmap()

void save_raw_bitmap ( GameApi::Env & e,
GameApi::BM bm,
std::string filename )
Here is the caller graph for this function:

◆ SaveImage()

void SaveImage ( BufferRef ref,
std::string filename )
Here is the caller graph for this function:

◆ stackTrace()

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

◆ stripprefix()

std::string stripprefix ( std::string s)
Here is the caller graph for this function:

◆ subbitmap_h()

BitmapHandle * subbitmap_h ( BitmapHandle * handle,
int x,
int y,
int width,
int height )
Here is the caller graph for this function:

◆ subbitmap_t()

template<class T>
Bitmap< T > * subbitmap_t ( Bitmap< T > * bm,
int x,
int y,
int width,
int height )
Here is the caller graph for this function:

◆ vol_obj_property()

bool vol_obj_property ( Point p)

◆ vol_obj_property2()

bool vol_obj_property2 ( Point p)

Variable Documentation

◆ bitmap_prepare_cache_data

std::vector<std::pair<std::string,int> > bitmap_prepare_cache_data

◆ color_array

unsigned int color_array[] = { 0x00000000, 0xffffffff, 0xffff0000, 0xff00ff00, 0xff0000ff, 0xff00ffff, 0xffffff00, 0xffffffff }

◆ g_content

std::vector<const unsigned char*> g_content
extern

◆ g_content_end

std::vector<const unsigned char*> g_content_end
extern

◆ g_dpr

double g_dpr
extern

◆ g_median_float

std::vector<float>* g_median_float

◆ g_urls

std::vector<const char*> g_urls
extern

◆ g_vol_data

void* g_vol_data

◆ gameapi_homepageurl

IMPORT std::string gameapi_homepageurl
extern

◆ load_url_buffers

std::map<std::string, std::vector<unsigned char>*> load_url_buffers
extern