Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
471 changes: 236 additions & 235 deletions BungieFrameWork/BFW_Headers/BFW.h

Large diffs are not rendered by default.

160 changes: 80 additions & 80 deletions BungieFrameWork/BFW_Headers/BFW_Akira.h

Large diffs are not rendered by default.

140 changes: 70 additions & 70 deletions BungieFrameWork/BFW_Headers/BFW_AppUtilities.h

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions BungieFrameWork/BFW_Headers/BFW_BinaryData.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ BDtBinaryData
{
UUtUns32 data_size;
tm_separate data_index;

} BDtBinaryData;

typedef struct BDtHeader
{
BDtClassType class_type;
UUtUns32 data_size;

} BDtHeader;

typedef struct BDtData
{
BDtHeader header;
UUtUns8 data[1];

} BDtData;

// ----------------------------------------------------------------------
Expand All @@ -54,7 +54,7 @@ typedef UUtError
typedef struct BDtMethods
{
BDtMethod_Load rLoad;

} BDtMethods;

// ======================================================================
Expand Down Expand Up @@ -84,7 +84,7 @@ typedef struct BDtMethods
#define BDmSkip4BytesFromBuffer(src) \
4; do { \
*(UUtUns8**)&(src) += 4; \
} while(0)
} while(0)

#define BDmGet4BytesFromBuffer(src,dst,type,swap_it) \
4; \
Expand All @@ -108,7 +108,7 @@ typedef struct BDtMethods
#define BDmSkip2BytesFromBuffer(src) \
2; do { \
*(UUtUns8**)&(src) += 2; \
} while(0)
} while(0)

#define BDmGet2BytesFromBuffer(src,dst,type,swap_it) \
2; \
Expand Down Expand Up @@ -154,7 +154,7 @@ typedef struct BDtMethods
#define BDmGetStringFromBuffer(src,dst,len,swap_it) \
(len); do { \
UUrString_Copy((dst), (char *) (src), (len)); \
*(UUtUns8**)&(src) += (len); } while(0)
*(UUtUns8**)&(src) += (len); } while(0)

#define BDmWriteStringToBuffer(buf,val,len,num_bytes, write_big) \
(len); do { \
Expand Down
2 changes: 1 addition & 1 deletion BungieFrameWork/BFW_Headers/BFW_Bink.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ BKrMovie_Play(
BKtScale inScale);

// ======================================================================
#endif /* BFW_BINK_H */
#endif /* BFW_BINK_H */
14 changes: 7 additions & 7 deletions BungieFrameWork/BFW_Headers/BFW_BitVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,30 +141,30 @@ UUrBitVector_TestAndSetBit(UUtUns32 *bitVector, UUtUns32 bit)
UUtUns32* elem;
UUtUns32 bvBit;
UUtBool result;

UUmAssert(bitVector);

elem = bitVector + BV_INDEX(bit);
bvBit = BV_BIT(bit);

result = (*elem & bvBit) != 0;
*elem |= bvBit;

return result;
}

static UUcInline UUtBool
static UUcInline UUtBool
UUrBitVector_TestAndClearBit(UUtUns32 *bitVector, UUtUns32 bit)
{
UUtUns32* elem;
UUtUns32 bvBit;
UUtBool result;

UUmAssert(bitVector);

elem = bitVector + BV_INDEX(bit);
bvBit = BV_BIT(bit);

result = (*elem & bvBit) != 0;
*elem &= ~bvBit;

Expand Down
32 changes: 16 additions & 16 deletions BungieFrameWork/BFW_Headers/BFW_Collision.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#pragma once
/*
FILE: BFW_Collision.h

AUTHOR: Brent H. Pease

CREATED: May 10, 1998

PURPOSE: Interface to the Motoko 3D engine

Copyright 1998

*/
Expand All @@ -25,7 +25,7 @@ typedef tm_enum CLtQuadProjection
CLcProjection_XY,
CLcProjection_XZ,
CLcProjection_YZ

} CLtQuadProjection;

typedef enum CLtCollisionType
Expand All @@ -41,12 +41,12 @@ UUtBool CLrSphere_Ray(
const M3tBoundingSphere *inSphere,
float *outT,
UUtBool *outIsExit);

UUtBool CLrQuad_Cylinder(
const M3tPoint3D *inPointArray,
const M3tQuad *inQuad,
const M3tBoundingCylinder *inCylinder);

UUtBool
CLrSphere_Line(
const M3tPoint3D* inStart,
Expand All @@ -64,12 +64,12 @@ CLrBox_Line(
const M3tBoundingBox_MinMax* inBox,
const M3tPoint3D* inStartPoint,
const M3tPoint3D* inEndPoint);

UUtBool
CLrBox_Sphere(
M3tBoundingBox_MinMax* inBox,
M3tBoundingSphere* inSphere);


UUtBool
CLrQuad_PointInQuad(
Expand All @@ -84,7 +84,7 @@ CLrLine_Plane(
M3tPoint3D *inLineB,
M3tPlaneEquation *inPlane,
M3tPoint3D *outIntersection); // optional

UUtBool
CLrQuad_Line(
CLtQuadProjection inProjection,
Expand Down Expand Up @@ -113,8 +113,8 @@ CLrQuad_Quad(
M3tPoint3D *outIntersectionR, // Ignored if above is null
M3tPlaneEquation *outPlaneA, // return the plane of quad A or NULL if you don't care
M3tPlaneEquation *outPlaneB);


UUtBool
CLrQuad_SphereTrivialReject(
CLtQuadProjection inProjection,
Expand All @@ -141,9 +141,9 @@ CLrQuad_Box(
const M3tPlaneEquation* inPlaneArray,
UUtUns32 inPlaneEquIndex,
const M3tQuad* inQuad,
const M3tBoundingBox_MinMax* inBox);
const M3tBoundingBox_MinMax* inBox);

void
void
CLrPlaneEquationFromQuad(
const M3tQuad *inQuad,
const M3tPoint3D *inPointArray,
Expand All @@ -158,12 +158,12 @@ UUtBool
CLrBox_Point(
M3tBoundingBox *inBox,
M3tPoint3D *inPoint);

UUtBool
CLrBox_Box(
M3tBoundingBox *inBoxA,
M3tBoundingBox *inBoxB);

UUtBool CLrHotdog_Sphere(
M3tBoundingHotdog *inDog,
M3tBoundingSphere *inSphere);
Expand Down
2 changes: 1 addition & 1 deletion BungieFrameWork/BFW_Headers/BFW_CommandLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ CLrGetCommandLine(
char ***outArgV);

// ======================================================================
#endif /* BFW_COMMANDLINE_H */
#endif /* BFW_COMMANDLINE_H */
12 changes: 6 additions & 6 deletions BungieFrameWork/BFW_Headers/BFW_Console.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ typedef enum COtCallbackAction
COc_ValueChanged,
COc_PrintRange,
COc_GetValue

} COtCallbackAction;

// ----------------------------------------------------------------------
Expand All @@ -47,7 +47,7 @@ typedef void (*COtVarCallback)(
COtCallbackAction inCallbackAction,
void* inCallbackData,
void* inRefcon);

typedef void (*COtCommandCallback)(
UUtUns32 inArgC,
char** inArgV,
Expand Down Expand Up @@ -101,7 +101,7 @@ COrConsole_Activate(
void
COrConsole_Deactivate(
void);

void
COrConsole_Display_Lines(
void);
Expand Down Expand Up @@ -152,8 +152,8 @@ UUtBool
COrCommand_Execute(char *inCommandLine);

extern IMtShade COgDefaultTextShade;
extern IMtShade COgDefaultTextShadowShade;
extern IMtShade COgDefaultTextShadowShade;

#if THE_DAY_IS_MINE
void UUcArglist_Call COrConsole_Printf(const char *format, ...);
#else
Expand All @@ -169,7 +169,7 @@ void UUcArglist_Call COrConsole_Printf_Color(COtPriority inPriority, IMtShade in
#if defined(DEBUGGING) && DEBUGGING
#define COmAssert(x) if (!(x)) do { COrConsole_Printf("%s", #x); } while(0)
#else
#define COmAssert(x)
#define COmAssert(x)
#endif

UUtError
Expand Down
54 changes: 27 additions & 27 deletions BungieFrameWork/BFW_Headers/BFW_DebuggerSymbols.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#pragma once
/*
FILE: BFW_DebuggerSymbols.h

AUTHOR: Brent H. Pease

CREATED: July 12, 1999
PURPOSE:

PURPOSE:

Copyright 1999

*/
Expand All @@ -23,9 +23,9 @@ typedef enum DStSourceSymDB_Platform
{
DScSourceSymDB_Platform_MacOS,
DScSourceSymDB_Platform_Win32,

DScPlatform_Num

} DStSourceSymDB_Platform;

typedef struct DStSourceSymDB_BinOffset2SourceFileMap
Expand All @@ -34,83 +34,83 @@ typedef struct DStSourceSymDB_BinOffset2SourceFileMap
UUtUns32 owningFunctionIndex;
UUtUns32 owningSourceFileIndex;
UUtUns32 owningScope;

UUtUns32 binOffsetLow; // resource relative
UUtUns32 binOffsetHigh; // resource relative

UUtUns32 sourceFileLineLow;
UUtUns32 sourceFileLineHigh;

} DStSourceSymDB_BinOffset2SourceFileMap;

typedef struct DStSourceSymDB_SourceFile
{
char* sourceFileLeafName;
UUtUns32 modDate;

UUtUns32 functionIndexLow;
UUtUns32 functionIndexHigh;

} DStSourceSymDB_SourceFile;

typedef struct DStSourceSymDB_Scope
{
UUtUns32 scopingDepth;

UUtUns32 mappingIndexLow; // indexes into resource mappings
UUtUns32 mappingIndexHigh; // indexes into resource mappings

UUtUns32 parentScopeIndex;
UUtUns32 parentFunctionIndex;
UUtUns32 parentSourceFileIndex;

} DStSourceSymDB_Scope;

typedef struct DStSourceSymDB_Function
{
char* functionName;

UUtUns32 owningResourceIndex;
UUtUns32 owningSourceFileIndex;

UUtUns32 mappingIndexLow; // indexes into resource mappings
UUtUns32 mappingIndexHigh; // indexes into resource mappings

UUtUns32 scopeIndexLow;
UUtUns32 scopeIndexHigh;

} DStSourceSymDB_Function;

typedef struct DStSourceSymDB_Resource
{
UUtUns32 mappingIndexLow;
UUtUns32 mappingIndexHigh;

} DStSourceSymDB_Resource;

typedef struct DStSourceSymDB_Header
{
char version[DScSourceSymDB_VersionStrLength];
char* executableLeafName;
DStSourceSymDB_Platform platform;

UUtUns32 rootFunctionIndex;

UUtUns32 numResources;
DStSourceSymDB_Resource* resources;

UUtUns32 numSourceFiles;
DStSourceSymDB_SourceFile* sourceFiles;

UUtUns32 numFunctions;
DStSourceSymDB_Function* functions;

UUtUns32 numScopes;
DStSourceSymDB_Scope* scope;

UUtUns32 nameLength;
char* names;

UUtUns32 numMappings;
DStSourceSymDB_BinOffset2SourceFileMap* mappings;

Expand Down
Loading