#include <gnome.h>
#include <glade/glade.h>
#include "cam.h"
#include "cam_object.h"
Defines | |
#define | STACK_MAX 10000 |
#define | PUSH(Y, XL, XR, DY) |
#define | POP(Y, XL, XR, DY) |
Typedefs | |
typedef _seg | seg |
Functions | |
CAM__HeightMap * | CAM__HeightMap_MoveObject (CAM__HeightMap *HeightMap, gint x, gint y) |
returns a new HeightMap with the founded Object on XY in the given HeightMap | |
CAM__HeightMap * | CAM__HeightMap_MoveObject_Invert (CAM__HeightMap *HeightMap, gint x, gint y) |
returns a new HeightMap with the founded Object on XY in the given HeightMap (Inverted-Version) | |
CAM__HeightMap * | CAM__HeightMap_FloodFill (CAM__HeightMap *HeightMap, gint x, gint y, gint color) |
|
Value: {\ sp--;\ DY = sp->dy;\ Y = sp->y + sp->dy;\ XL = sp->xl;\ XR = sp->xr;\ } |
|
Value: {\
if (sp<stack+STACK_MAX && Y+(DY)>=0 && Y+(DY)<HeightMap->height){\
sp->y = Y;\
sp->xl = XL;\
sp->xr = XR;\
sp->dy = DY;\
sp++;\
}\
}
|
|
|
|
|
|
|
|
returns a new HeightMap with the founded Object on XY in the given HeightMap
|
|
returns a new HeightMap with the founded Object on XY in the given HeightMap (Inverted-Version)
|