forge_Forge_is_a_basic_utility_library.html

TYPES_H

NULL

NULL 0

Description: Defines NULL in C++

NULL

NULL ((void *)0)

Description: Defines NULL in C

TRUE

TRUE 1

Description: Defines TRUE

FALSE

FALSE 0

Description: Defines FALSE

F_DOUBLE_PRECISION

F_DOUBLE_PRECISION

Description: if F_DOUBLE_PRECISION is defined the type "freal" is defined as double otherwhise it will be defined as float. This is very usefull if you want to write an application that can be compiled to use either 32 or 64 bit floating point math. Forges entire match librarie are defined in both 32 and 64 bit precission and all functionality can be accessed using the freal type, a macro will replace all freal calls with the aropriate funtion using either 32 or 64 bit depending on if F_DOUBLE_PRECISION is defined

PI

PI 3.141592653

Description: Defines PI

forge_Debugging_.html

malloc(n)

malloc(n) f_debug_mem_malloc(n, __FILE__, __LINE__)

Description: Replaces malloc.

realloc(n,

realloc(n, m) f_debug_mem_realloc(n, m, __FILE__, __LINE__)

Description: Replaces realloc.

free(n)

free(n) f_debug_mem_free(n)

Description: Replaces free.

exit(n)

exit(n) exit_crash(n)

Description: over writhing exit(0) with afunction guaraneed tyo crash.

forge_Vector_math_.html

d_sqrt

d_sqrt sqrt

Description: replaced sqrt with carmacks inverse sqrt aproximation

forge_Sorting_.html

Enum:

FStringSortResult

F_SSR_A

F_SSR_B

F_SSR_EQUAL

F_SSR_COUNT

forge_A*_path_finding_.html

Enum:

ForgeDataElementType

FORGE_DET_BOOLEAN

FORGE_DET_TRIGGER

FORGE_DET_INTEGER

FORGE_DET_UNSIGNED_INTEGER

FORGE_DET_INTEGER_BOUND

FORGE_DET_REAL

FORGE_DET_REAL_BOUND

FORGE_DET_2D_POS

FORGE_DET_3D_POS

FORGE_DET_4D_POS

FORGE_DET_QUATERNION

FORGE_DET_2D_NORMAL

FORGE_DET_3D_NORMAL

FORGE_DET_2X2MATRIX

FORGE_DET_3X3MATRIX

FORGE_DET_4X4MATRIX

FORGE_DET_TEXT

FORGE_DET_PASSWORD

FORGE_DET_TEXT_BUFFER

FORGE_DET_COLOR_RGB

FORGE_DET_COLOR_RGBA

FORGE_DET_TIME

FORGE_DET_DATE

FORGE_DET_SELECT

FORGE_DET_SECTION_START

FORGE_DET_SECTION_END

FORGE_DET_CUSTOM

FORGE_DET_COUNT

Struct:

real

ForgeDataElementType type

char *text

char *description

union{ boolean active

boolean trigger

int integer

uint uinteger

struct{ double value

double max

double min

real

float color[4]

double vector[4]

double matrix[16]

char text[64]

struct{ char *text_buffer

uint buffer_size

forge_Seconds_in_a_day_.html

f_length2 f_length2d

f_length3 f_length3d

f_distance2 f_distance2d

f_distance3 f_distance3d

f_dot2 f_dot2d

f_dot3 f_dot3d

f_cross2 f_cross2d

f_cross3 f_cross3d

f_normalize2 f_normalize2d

f_normalize3 f_normalize3d

f_normalize4 f_normalize4d

f_reflect2 f_reflect2d

f_reflect3 f_reflect3d

f_flatten2 f_flatten2d

f_flatten3 f_flatten3d

f_project2 f_project2d

f_project3 f_project3d

f_intersect2 f_intersect2d

f_matrix_clear f_matrix_cleard

f_transform3 f_transform3d

f_transform4 f_transform4d

f_matrix_multiply f_matrix_multiplyd

f_matrixxy f_matrixxyd

f_matrixxz f_matrixxzd

f_matrixyx f_matrixyxd

f_matrixyz f_matrixyzd

f_matrixzx f_matrixzxd

f_matrixzy f_matrixzyd

f_spline f_splined

f_spline2d f_spline2dd

f_spline3d f_spline3dd

f_spline4d f_spline4dd

f_wiggle f_wiggled

f_wiggle2d f_wiggle2dd

f_wiggle3d f_wiggle3dd

f_smooth_step f_smooth_stepd

f_noise f_noised

f_noise2 f_noise2d

f_noise3 f_noise3d

f_noiser f_noiserd

f_noiser2 f_noiser2d

f_noiser3 f_noiser3d

f_step f_stepd

f_length2 f_length2f

f_length3 f_length3f

f_distance2 f_distance2f

f_distance3 f_distance3f

f_dot2 f_dot2f

f_dot3 f_dot3f

f_cross2 f_cross2f

f_cross3 f_cross3f

f_normalize2 f_normalize2f

f_normalize3 f_normalize3f

f_normalize4 f_normalize4f

f_reflect2 f_reflect2f

f_reflect3 f_reflect3f

f_flatten2 f_flatten2f

f_flatten3 f_flatten3f

f_project2 f_project2f

f_project3 f_project3f

f_intersect2 f_intersect2f

f_matrix_clear f_matrix_clearf

f_transform3 f_transform3f

f_transform4 f_transform4f

f_matrix_multiply f_matrix_multiplyf

f_matrixxy f_matrixxyf

f_matrixxz f_matrixxzf

f_matrixyx f_matrixyxf

f_matrixyz f_matrixyzf

f_matrixzx f_matrixzxf

f_matrixzy f_matrixzyf

f_spline f_splinef

f_spline2d f_spline2df

f_spline3d f_spline3df

f_spline4d f_spline4df

f_wiggle f_wigglef

f_wiggle2d f_wiggle2df

f_wiggle3d f_wiggle3df

f_smooth_step f_smooth_stepf

f_noise f_noisef

f_noise2 f_noise2f

f_noise3 f_noise3f

f_noiser f_noiserf

f_noiser2 f_noiser2f

f_noiser3 f_noiser3f

f_step f_stepf