|
DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
|
Go to the source code of this file.
Classes | |
| struct | MWGlobalDestructor |
| struct | MWCatchRecord |
| struct | MWExceptionSpecification |
| struct | OverlayHeader |
| struct | MWTypeInfo |
| struct | MWBaseClass |
| struct | MWSingleBaseClass |
Typedefs | |
| typedef void(* | MWRuntimeObjectFunction) (void *object, int mode) |
Enumerations | |
| enum | InterpolateMode { INTERPOLATE_STEP = 0 , INTERPOLATE_FRACTION = 1 } |
Functions | |
| void | __construct_array (void *array, MWRuntimeObjectFunction constructor, MWRuntimeObjectFunction destructor, unsigned int element_size, unsigned int count) |
| void * | __construct_new_array (void *allocation, MWRuntimeObjectFunction constructor, MWRuntimeObjectFunction destructor, unsigned int element_size, unsigned int count) |
| void | __dl (void *storage) throw () |
| char | __throw_catch_compare (const char *thrown_type, const char *caught_type, long *pointer_adjustment) |
| void | unexpected__3stdFv () |
| void | terminate__3stdFv () |
| void | duhandler__3stdFv () |
| void | dthandler__3stdFv () |
| void * | __register_global_object (void *object, MWRuntimeObjectFunction destructor, MWGlobalDestructor *record) |
| void | __initialize_cpp_rts (void *first, void *last, void *overlay_start, void *overlay_end) |
| char * | __DecodeUnsignedNumber (char *encoded, unsigned int *value) |
| char * | __DecodeSignedNumber (char *encoded, int *value) |
| void | __end__catch (MWCatchRecord *record) |
| void | __unexpected (void *exception_record) |
| void | mwInit (int argc, const char **argv, const char **envp) |
| STATIC_ASSERT (sizeof(OverlayHeader)==0x40) | |
| void | mwOverlayInit (void *overlay, int size) |
| void | MWNotifyOverlayLoaded (void *address) |
| int | mwBload (char *path, void *buffer) |
| int | mwLoadOverlay (char *path, void *address) |
| void | VectorMax (float *max, float *a, float *b) |
| void | VectorMax (float *max, float *a, float *b, float *c) |
| void | VectorMax (float *max, float *a, float *b, float *c, float *d) |
| void | VectorMin (float *min, float *a, float *b) |
| void | VectorMin (float *min, float *a, float *b, float *c, float *d) |
| void | VectorMaxMin (float *max, float *min, float *a, float *b) |
| void | VectorMaxMin (float *max, float *min, float *a, float *b, float *c) |
| void | VectorMaxMin (float *max, float *min, float *a, float *b, float *c, float *d) |
| void | PlaneNormal (float *normal, float *v0, float *v1, float *v2) |
| float | DistPlanePoint (float *normal, float *on_plane, float *point) |
| float | ReflectionPlane (float *normal, float *on_plane, float *point, float *reflection) |
| int | IntersectionPoint_line_poly3 (float *from, float *to, float *v0, float *v1, float *v2, float *normal, float *hit) |
| int | Check_Point_Poly3_XYZ (float *point, float *v0, float *v1, float *v2, float *normal) |
| float | DistVector (float *vector) |
| float | DistVector (float *a, float *b) |
| void | MulMatrix (float(*product)[4], float(*left_matrix)[4], float(*right_matrix)[4]) |
| void | RotMatrixY (float(*matrix)[4], float angle_y) |
| void | LookAtMatrixZ (float(*matrix)[4], float *direction) |
| void | ApplyMatrixN (float(*out)[4], float(*matrix)[4], float(*in)[4], int count) |
| void | VectorInterpolate (float *out, float *from, float *to, float step, int mode) |
| float | AngleInterpolate (float from, float to, float step, int mode) |
| int | AngleCmp (float a, float b, float tolerance) |
| float | AngleLimit (float angle) |
| float | rnd () |
| float | nrnd () |
| void | CreateSinTable () |
| float | Sinf (float angle) |
| float | Cosf (float angle) |
| void * | __dt__Q23std9exceptionFv (void **self, short flag) throw () |
| const char * | what__Q23std9exceptionCFv (const void *exception) |
| void * | __dt__Q23std13bad_exceptionFv (void **self, short flag) throw () |
| const char * | what__Q23std13bad_exceptionCFv (const void *exception) |
Variables | |
| void(* | thandler__3std )() |
| void(* | uhandler__3std )() |
| MWGlobalDestructor * | __global_destructor_chain |
| void(* | __static_init [])() |
| void(* | __static_init_end [])() |
| const unsigned char | __RTTI__Q23std9exception [] |
| const char | BadExceptionTypeName [] |
| const char | ExceptionTypeName [] |
| const MWTypeInfo | ExceptionTypeInfo |
| const MWSingleBaseClass | BadExceptionBaseClasses |
| const MWTypeInfo | __RTTI__Q23std13bad_exception |
| const char | ExceptionWhat [] |
| const char | BadExceptionWhat [] |
Declares the game's vector, geometry, interpolation, and trigonometry helpers.
Definition in file mathutil.hpp.
| typedef void(* MWRuntimeObjectFunction) (void *object, int mode) |
Runs a constructor over every element of an array.
Definition at line 29 of file mathutil.hpp.
| enum InterpolateMode |
How VectorInterpolate and AngleInterpolate move toward their target.
| Enumerator | |
|---|---|
| INTERPOLATE_STEP | A fixed step, snapping when closer. |
| INTERPOLATE_FRACTION | The gap divided by the step. |
Definition at line 14 of file mathutil.hpp.
| void __construct_array | ( | void * | array, |
| MWRuntimeObjectFunction | constructor, | ||
| MWRuntimeObjectFunction | destructor, | ||
| unsigned int | element_size, | ||
| unsigned int | count | ||
| ) |
Runs a constructor over every element of an array.
Definition at line 94 of file mathutil.cpp.
| void * __construct_new_array | ( | void * | allocation, |
| MWRuntimeObjectFunction | constructor, | ||
| MWRuntimeObjectFunction | destructor, | ||
| unsigned int | element_size, | ||
| unsigned int | count | ||
| ) |
Runs a constructor over every element of a newly allocated array.
Definition at line 119 of file mathutil.cpp.
| void __dl | ( | void * | storage | ) | |
| throw | ( | ||||
| ) | |||||
Frees storage that operator new handed out.
Definition at line 155 of file mathutil.cpp.
| char __throw_catch_compare | ( | const char * | thrown_type, |
| const char * | caught_type, | ||
| long * | pointer_adjustment | ||
| ) |
Reports whether a thrown type matches a catch clause's type.
Definition at line 213 of file mathutil.cpp.
| void unexpected__3stdFv | ( | ) |
Calls the handler for an exception a function did not declare.
Definition at line 337 of file mathutil.cpp.
| void terminate__3stdFv | ( | ) |
Calls the handler that ends the program after an unrecoverable exception.
Definition at line 351 of file mathutil.cpp.
| void duhandler__3stdFv | ( | ) |
The default unexpected-exception handler, which terminates.
Definition at line 365 of file mathutil.cpp.
| void dthandler__3stdFv | ( | ) |
The default terminate handler, which stops the program.
Definition at line 379 of file mathutil.cpp.
| void * __register_global_object | ( | void * | object, |
| MWRuntimeObjectFunction | destructor, | ||
| MWGlobalDestructor * | record | ||
| ) |
Records one global object so that its destructor runs at exit.
Definition at line 393 of file mathutil.cpp.
| void __initialize_cpp_rts | ( | void * | first, |
| void * | last, | ||
| void * | overlay_start, | ||
| void * | overlay_end | ||
| ) |
Calls each static initializer in the table from the first pointer up to the second.
Starts the C++ runtime: its handlers and its global-object list.
Definition at line 413 of file mathutil.cpp.
| char * __DecodeUnsignedNumber | ( | char * | encoded, |
| unsigned int * | value | ||
| ) |
Reads an unsigned number out of a mangled type name.
Definition at line 436 of file mathutil.cpp.
| char * __DecodeSignedNumber | ( | char * | encoded, |
| int * | value | ||
| ) |
Reads a signed number out of a mangled type name.
Definition at line 472 of file mathutil.cpp.
| void __end__catch | ( | MWCatchRecord * | record | ) |
Ends a catch clause and releases the exception it caught.
Definition at line 508 of file mathutil.cpp.
| void __unexpected | ( | void * | exception_record | ) |
Raises an exception a function did not declare, through the unexpected handler.
Definition at line 544 of file mathutil.cpp.
| void mwInit | ( | int | argc, |
| const char ** | argv, | ||
| const char ** | envp | ||
| ) |
Starts the MetroWerks runtime.
Definition at line 634 of file mathutil.cpp.
| void mwOverlayInit | ( | void * | overlay, |
| int | size | ||
| ) |
Starts the overlay loader and records where overlays are read to.
Definition at line 645 of file mathutil.cpp.
| void MWNotifyOverlayLoaded | ( | void * | address | ) |
Tells the runtime that an overlay has finished loading.
Definition at line 667 of file mathutil.cpp.
| int mwBload | ( | char * | path, |
| void * | buffer | ||
| ) |
Reads one overlay image off the disc.
Definition at line 676 of file mathutil.cpp.
| int mwLoadOverlay | ( | char * | path, |
| void * | address | ||
| ) |
Reads an overlay into memory and gives back whether it succeeded.
Definition at line 705 of file mathutil.cpp.
| void VectorMax | ( | float * | max, |
| float * | a, | ||
| float * | b | ||
| ) |
Definition at line 723 of file mathutil.cpp.
| void VectorMax | ( | float * | max, |
| float * | a, | ||
| float * | b, | ||
| float * | c | ||
| ) |
Definition at line 736 of file mathutil.cpp.
| void VectorMax | ( | float * | max, |
| float * | a, | ||
| float * | b, | ||
| float * | c, | ||
| float * | d | ||
| ) |
One extreme of four points, which is what folds a set of bounds back into a single one.
Definition at line 752 of file mathutil.cpp.
| void VectorMin | ( | float * | min, |
| float * | a, | ||
| float * | b | ||
| ) |
Definition at line 771 of file mathutil.cpp.
| void VectorMin | ( | float * | min, |
| float * | a, | ||
| float * | b, | ||
| float * | c, | ||
| float * | d | ||
| ) |
Definition at line 784 of file mathutil.cpp.
| void VectorMaxMin | ( | float * | max, |
| float * | min, | ||
| float * | a, | ||
| float * | b | ||
| ) |
Definition at line 803 of file mathutil.cpp.
| void VectorMaxMin | ( | float * | max, |
| float * | min, | ||
| float * | a, | ||
| float * | b, | ||
| float * | c | ||
| ) |
The two extremes of three or four points at once, which is what builds a bound out of corners. Both write the greater extreme through the first argument, so the outputs are in the order a CBoxVu0 holds them.
Definition at line 819 of file mathutil.cpp.
| void VectorMaxMin | ( | float * | max, |
| float * | min, | ||
| float * | a, | ||
| float * | b, | ||
| float * | c, | ||
| float * | d | ||
| ) |
Definition at line 839 of file mathutil.cpp.
| void PlaneNormal | ( | float * | normal, |
| float * | v0, | ||
| float * | v1, | ||
| float * | v2 | ||
| ) |
Definition at line 863 of file mathutil.cpp.
| float DistPlanePoint | ( | float * | normal, |
| float * | on_plane, | ||
| float * | point | ||
| ) |
Definition at line 881 of file mathutil.cpp.
| float ReflectionPlane | ( | float * | normal, |
| float * | on_plane, | ||
| float * | point, | ||
| float * | reflection | ||
| ) |
Definition at line 888 of file mathutil.cpp.
| int IntersectionPoint_line_poly3 | ( | float * | from, |
| float * | to, | ||
| float * | v0, | ||
| float * | v1, | ||
| float * | v2, | ||
| float * | normal, | ||
| float * | hit | ||
| ) |
Where a line meets a triangle, given the triangle's plane normal rather than deriving it. Answers zero when the line misses, and writes the point through the last argument otherwise. Defined beside the rest of the vector helpers, in vector.h's unit.
Definition at line 899 of file mathutil.cpp.
| int Check_Point_Poly3_XYZ | ( | float * | point, |
| float * | v0, | ||
| float * | v1, | ||
| float * | v2, | ||
| float * | normal | ||
| ) |
Definition at line 923 of file mathutil.cpp.
| float DistVector | ( | float * | vector | ) |
The length of a vector, and the distance between two points. Declared here rather than in vector.h for the same reason as the extremes above: frame.cpp reaches for them and cannot see that header at all.
Definition at line 965 of file mathutil.cpp.
| float DistVector | ( | float * | a, |
| float * | b | ||
| ) |
Returns the distance between two positions.
Definition at line 986 of file mathutil.cpp.
| void MulMatrix | ( | float(*) | product[4], |
| float(*) | left_matrix[4], | ||
| float(*) | right_matrix[4] | ||
| ) |
| void RotMatrixY | ( | float(*) | matrix[4], |
| float | angle_y | ||
| ) |
| void LookAtMatrixZ | ( | float(*) | matrix[4], |
| float * | direction | ||
| ) |
| void ApplyMatrixN | ( | float(*) | out[4], |
| float(*) | matrix[4], | ||
| float(*) | in[4], | ||
| int | count | ||
| ) |
| void VectorInterpolate | ( | float * | out, |
| float * | from, | ||
| float * | to, | ||
| float | step, | ||
| int | mode | ||
| ) |
Definition at line 1143 of file mathutil.cpp.
| float AngleInterpolate | ( | float | from, |
| float | to, | ||
| float | step, | ||
| int | mode | ||
| ) |
Definition at line 1189 of file mathutil.cpp.
| int AngleCmp | ( | float | a, |
| float | b, | ||
| float | tolerance | ||
| ) |
Definition at line 1247 of file mathutil.cpp.
| float AngleLimit | ( | float | angle | ) |
Wraps one angle into the half turn either side of zero.
Definition at line 1275 of file mathutil.cpp.
| float rnd | ( | ) |
| float nrnd | ( | ) |
| void CreateSinTable | ( | ) |
Definition at line 1308 of file mathutil.cpp.
| float Sinf | ( | float | angle | ) |
| float Cosf | ( | float | angle | ) |
| void * __dt__Q23std9exceptionFv | ( | void ** | self, |
| short | flag | ||
| ) | |||
| throw | ( | ||
| ) | |||
Destructor of std::exception.
Destroys a std::exception.
Definition at line 171 of file mathutil.cpp.
| const char * what__Q23std9exceptionCFv | ( | const void * | exception | ) |
std::exception::what.
Gives a std::exception's description.
Definition at line 194 of file mathutil.cpp.
| void * __dt__Q23std13bad_exceptionFv | ( | void ** | self, |
| short | flag | ||
| ) | |||
| throw | ( | ||
| ) | |||
Destructor of std::bad_exception.
Destroys a std::bad_exception.
Definition at line 593 of file mathutil.cpp.
| const char * what__Q23std13bad_exceptionCFv | ( | const void * | exception | ) |
std::bad_exception::what.
Gives a std::bad_exception's description.
Definition at line 620 of file mathutil.cpp.
| void(* thandler__3std) () | ( | ) |
Handler that std::terminate calls to end the program.
Definition at line 108 of file mathutil.hpp.
| void(* uhandler__3std) () | ( | ) |
Handler that std::unexpected calls for an exception a function did not declare.
Definition at line 113 of file mathutil.hpp.
| MWGlobalDestructor* __global_destructor_chain |
Most recently registered global object, heading the list destroyed at exit.
Definition at line 118 of file mathutil.hpp.
|
extern |
|
extern |
End of the table of static initialisers the runtime calls at startup; the linker script places it.
|
extern |
Run-time type information record of std::exception.
|
extern |
Qualified name of std::bad_exception.
Definition at line 574 of file mathutil.cpp.
|
extern |
Qualified name of std::exception.
Definition at line 575 of file mathutil.cpp.
|
extern |
The runtime's own run-time type information record of std::exception.
Definition at line 576 of file mathutil.cpp.
|
extern |
The base classes of std::bad_exception: std::exception alone.
Definition at line 577 of file mathutil.cpp.
|
extern |
Run-time type information record of std::bad_exception.
Definition at line 581 of file mathutil.cpp.
|
extern |
What std::exception::what returns.
Definition at line 80 of file mathutil.cpp.
|
extern |
What std::bad_exception::what returns.
Definition at line 582 of file mathutil.cpp.