Add rayman2 source files
This commit is contained in:
1118
Rayman_X/cpa/public/MMG/CpaMmg.h
Normal file
1118
Rayman_X/cpa/public/MMG/CpaMmg.h
Normal file
File diff suppressed because it is too large
Load Diff
221
Rayman_X/cpa/public/MMG/ErrMmg.h
Normal file
221
Rayman_X/cpa/public/MMG/ErrMmg.h
Normal file
@@ -0,0 +1,221 @@
|
||||
/* ##H_FILE#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
FILE : ErrMmg.h
|
||||
|
||||
DESCRIPTION : this file contain constant and variables to manage error
|
||||
in the module Mmg
|
||||
|
||||
VERSION : 5.1.0/Pierrick Crepy/Creation
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
||||
|
||||
#ifndef __ERRMMG_H__
|
||||
#define __ERRMMG_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* ##CONSTANTE#--------------------------------------------------------------------------
|
||||
Constantes declaration
|
||||
---------------------------------------------------------------------------------------*/
|
||||
#define D_CheckSystemForBlockWithoutFree
|
||||
|
||||
#define C_szMmgVersion "MMG V6.0.1" /* The format is XXX Va.b.c with Xxx is the Tag of the module */
|
||||
#define C_szMmgFullName "Memory Manager"/* the complete and clear name of the module */
|
||||
#define C_szMmgDate "Mar 12 1998" /*The format is "Mmm dd yyyy".You can use __DATE__ but be careful that you have the control of the compilation*/
|
||||
|
||||
/* break the compatibility with the old syntaxe (mem)*/
|
||||
/* modification of all the message error in order to give the maximum accurate information*/
|
||||
/* testMalloc function work propely.*/
|
||||
/* strong the initialization of block.*/
|
||||
|
||||
/* For DLLs who are using this module : */
|
||||
#undef CPA_EXPORT
|
||||
#if defined(CPA_WANTS_IMPORT)
|
||||
#define CPA_EXPORT __declspec(dllimport)
|
||||
#elif defined(CPA_WANTS_EXPORT)
|
||||
#define CPA_EXPORT __declspec(dllexport)
|
||||
#else
|
||||
#define CPA_EXPORT
|
||||
#endif
|
||||
|
||||
#ifndef __ERM_H__
|
||||
#include "ERM.h"
|
||||
#endif /*__ERM_H__*/
|
||||
|
||||
|
||||
#define __FATAL_ERR_MMG__
|
||||
#define __FATAL_DEBUG_ERR_MMG__ /* disable the definition if __DEBUG_MALLOC_MODE__ is not defined*/
|
||||
#define __WARNING1_ERR_MMG__
|
||||
#define __WARNING2_ERR_MMG__
|
||||
#define __WARNING3_ERR_MMG__
|
||||
/* error of the Mmg Module*/
|
||||
typedef enum e_uwMmgErrNumber_{
|
||||
E_uwMmgFatalErr,
|
||||
#ifdef __FATAL_ERR_MMG__
|
||||
/* -----------------*/
|
||||
/* E_uwMmgPbDataAlignment,*/
|
||||
E_uwMmgPbInvalidMallocInfo,
|
||||
E_uwMmgPbAlignmentBlock,
|
||||
E_uwMmgPbDynAllacationAlignment,
|
||||
E_uwMmgPbDynOverflowBefore,
|
||||
E_uwMmgPbDynOverflowAfter,
|
||||
E_uwMmgPbStaOverflowBefore,
|
||||
E_uwMmgPbStaOverflowAfter,
|
||||
E_uwMmgPbOverflowBefore,
|
||||
E_uwMmgPbOverflowAfter,
|
||||
E_uwMmgPbTooManyAllacation,
|
||||
E_uwMmgPbVirtualAlloc,
|
||||
E_uwMmgPbInvalidBlock,
|
||||
E_uwMmgPbInvalidStaticAddress,
|
||||
E_uwMmgPbInvalidModuleId,
|
||||
E_uwMmgPbInvalidBlockId,
|
||||
E_uwMmgPbNoStaticMemory,
|
||||
E_uwMmgPbAccessMemoryDenied,
|
||||
E_uwMmgPbInvalNbOfChannel,
|
||||
E_uwMmgPbTooManyChannel,
|
||||
E_uwMmgPbInFirstInitMmgModule,
|
||||
E_uwMmgPbInInitMmg,
|
||||
E_uwMmgPbInInitBlock,
|
||||
#endif /*__FATAL_ERR_MMG__*/
|
||||
#ifdef __FATAL_DEBUG_ERR_MMG__
|
||||
/* ---------------------*/
|
||||
E_uwMmgPbCanNotInitMmg,
|
||||
E_uwMmgPbCanNotUseDynMode,
|
||||
E_uwMmgPbBagMode,
|
||||
#endif /*__FATAL_DEBUG_ERR_MMG__*/
|
||||
#ifdef D_CheckSystemForBlockWithoutFree
|
||||
/* ----------------------------------*/
|
||||
E_uwMmgPbAlignmentAllocationRequested,
|
||||
E_uwMmgPbOverFlowBeforeOnTheRemainTag,
|
||||
E_uwMmgPbNoAvailableFunctionForBlockWithoutFree,
|
||||
|
||||
#endif /*D_CheckSystemForBlockWithoutFree*/
|
||||
E_uwMmgStartOfWarning,
|
||||
#ifdef __WARNING1_ERR_MMG__
|
||||
/* -------------------*/
|
||||
#endif /*__WARNING1_ERR_MMG__*/
|
||||
#ifdef __WARNING2_ERR_MMG__
|
||||
/* -------------------*/
|
||||
E_uwMmgPbDynamicFree,
|
||||
#endif /*__WARNING2_ERR_MMG__*/
|
||||
#ifdef __WARNING3_ERR_MMG__
|
||||
/* -------------------*/
|
||||
E_uwMmgPbAllocateBlock,
|
||||
E_uwMmgPbDynAllacateMemory,
|
||||
E_uwMmgPbDynAddressNotValid,
|
||||
E_uwMmgPbStaAddressNotValid,
|
||||
E_uwMmgPbBLockFull,
|
||||
E_uwMmgPbSpaceForDebugInformationIsFull,
|
||||
E_uwMmgPbDeleteBlock,
|
||||
E_uwMmgPbSizeOfAllocIs0,
|
||||
E_uwMmgPbFreeofNULL,
|
||||
E_uwMmgPbBbFree,
|
||||
E_uwMmgPbDftChannelCannotBeFree,
|
||||
E_uwMmgPbInvalChannel,
|
||||
E_uwMmgInvalidGroup,
|
||||
#endif /*__WARNING3_ERR_MMG__*/
|
||||
E_uwMmgErrNumber
|
||||
} e_uwMmgErrNumber;
|
||||
|
||||
/* ##GLOBVAR#----------------------------------------------------------------------------
|
||||
Globale variable declaration
|
||||
---------------------------------------------------------------------------------------*/
|
||||
#undef __ERRMMG_EXTERN
|
||||
#ifndef __DeclareGlobalVariableErrMmg_h__
|
||||
#define __ERRMMG_EXTERN extern /*external declaration*/
|
||||
#else /*__DeclareGlobalVariableErrMmg_h__*/
|
||||
#define __ERRMMG_EXTERN /*replace by nothing : we have to declare*/
|
||||
#endif /*__DeclareGlobalVariableErrMmg_h__*/
|
||||
|
||||
__ERRMMG_EXTERN CPA_EXPORT unsigned char g_ucMmgModuleId /* number of identification of the Erm module*/
|
||||
#if defined(__DeclareGlobalVariableErrMmg_h__) && !defined(CPA_WANTS_IMPORT)
|
||||
= C_ucModuleNotInitialized
|
||||
#endif /*__DeclareGlobalVariableErrMmg_h__ && CPA_WANTS_IMPORT*/
|
||||
;
|
||||
|
||||
#ifdef __ERROR_STRINGS__
|
||||
|
||||
__ERRMMG_EXTERN CPA_EXPORT char * g_a_szMmgInformationModule []
|
||||
#if defined(__DeclareGlobalVariableErrMmg_h__) && !defined(CPA_WANTS_IMPORT)
|
||||
= {C_szMmgVersion, C_szMmgFullName, C_szMmgDate}
|
||||
#endif /*__DeclareGlobalVariableErrMmg_h__ && CPA_WANTS_IMPORT*/
|
||||
;
|
||||
|
||||
__ERRMMG_EXTERN CPA_EXPORT struct tdstErrorMsg_ g_a_stMmgTabErr [] /* Obliged syntax 'g_a_st'+[Abbreviation of ModuleName]+'TabErr'*/
|
||||
#if defined(__DeclareGlobalVariableErrMmg_h__) && !defined(CPA_WANTS_IMPORT)
|
||||
={
|
||||
#ifdef __FATAL_ERR_MMG__
|
||||
/* -------------*/
|
||||
/* E_uwMmgPbDataAlignment, "the alignment information are not valid (in Mmg_fn_cCheckAlignmentValidity)",*/
|
||||
E_uwMmgPbInvalidMallocInfo, "The block tested by testMalloc is not valid, it's should be not initialize !",
|
||||
E_uwMmgPbAlignmentBlock, "Alignment error of the beginning address of my block\n(from the 'malloc' system function, in Mmg_fn_vInitblock)",
|
||||
E_uwMmgPbDynAllacationAlignment, "the dynamic memory allocated is not aligned\n(from the 'malloc' system function, in fn_p_vDynAlloc)",
|
||||
E_uwMmgPbDynOverflowBefore, "Overflow before a dynamic malloc",
|
||||
E_uwMmgPbDynOverflowAfter, "Overflow after a dynamic malloc",
|
||||
E_uwMmgPbStaOverflowBefore,"Overflow before a static malloc",
|
||||
E_uwMmgPbStaOverflowAfter, "Overflow after a static malloc",
|
||||
E_uwMmgPbOverflowBefore,"Overflow before an allocation",
|
||||
E_uwMmgPbOverflowAfter, "Overflow after an allocation",
|
||||
E_uwMmgPbTooManyAllacation, "There is too many allocation",
|
||||
E_uwMmgPbVirtualAlloc, "The virtualAlloc function failed (return NULL). Is that enough memory ??",
|
||||
E_uwMmgPbInvalidBlock, "The static block that you try to use, is not valid, it's should be not well initialize !",
|
||||
E_uwMmgPbInvalidStaticAddress, "The address is not a static address",
|
||||
E_uwMmgPbInvalidModuleId, "The moduleId is impossible",
|
||||
E_uwMmgPbInvalidBlockId, "The BlockId is impossible",
|
||||
E_uwMmgPbNoStaticMemory, "There is no static memory",
|
||||
E_uwMmgPbAccessMemoryDenied, "You've try to access to the memory through Mmg module.\nBut the memory have been locked with Mmg_fn_vLockAlloaction!",
|
||||
E_uwMmgPbInvalNbOfChannel, "Invalid number of channel",
|
||||
E_uwMmgPbTooManyChannel, "Sorry, too much channels are used",
|
||||
E_uwMmgPbInFirstInitMmgModule, "Malloc system failed in FirstInitMmgModule function",
|
||||
E_uwMmgPbInInitMmg, "Malloc system failed in InitMmg function",
|
||||
E_uwMmgPbInInitBlock, "Malloc system failed in Mmg_fn_vInitBlock function",
|
||||
#endif /*__FATAL_ERR_MMG__*/
|
||||
#ifdef __FATAL_DEBUG_ERR_MMG__
|
||||
E_uwMmgPbCanNotInitMmg, "The Mmg initialization have to be done before the Erm initialization",
|
||||
E_uwMmgPbCanNotUseDynMode, "You have selected the Dynamic mode.\nBut __DYNAMIC_MALLOC_ALLOWED__ is not defined",
|
||||
E_uwMmgPbBagMode, "Problem the Mmg_M_SetModeAlloc is not appropriate \nExample: you try to use Dynamic memory but Mmg_M_SetModeAlloc is set for the Static memory",
|
||||
#endif /*__FATAL_DEBUG_ERR_MMG__*/
|
||||
|
||||
#ifdef D_CheckSystemForBlockWithoutFree
|
||||
/* ----------------------------------*/
|
||||
E_uwMmgPbAlignmentAllocationRequested, "The size of the allocation is not compatible with the alignment requested duing the initialization of the block",
|
||||
E_uwMmgPbOverFlowBeforeOnTheRemainTag, "The last Allocation Overwrite the Remain check Key, just after the p_cMaxMen",
|
||||
E_uwMmgPbNoAvailableFunctionForBlockWithoutFree,"You can NOT use this function with this kind of block: block without Free management",
|
||||
#endif /*D_CheckSystemForBlockWithoutFree*/
|
||||
|
||||
|
||||
#ifdef __WARNING1_ERR_MMG__
|
||||
/* ----------------*/
|
||||
#endif /*__WARNING1_ERR_MMG__*/
|
||||
#ifdef __WARNING2_ERR_MMG__
|
||||
/* ----------------*/
|
||||
E_uwMmgPbDynamicFree, "Can not free the dynamic memory",
|
||||
#endif /*__WARNING2_ERR_MMG__*/
|
||||
#ifdef __WARNING3_ERR_MMG__
|
||||
/* ----------------*/
|
||||
E_uwMmgPbAllocateBlock, "Impossible to Allocate the block (in Mmg_fn_vInitblock),\nthe system function for allocation failed (return NULL)",
|
||||
E_uwMmgPbDynAllacateMemory, "Can not allocate dynamic memory (in fn_p_vDynAlloc),\nthe system function for allocation failed (return NULL)",
|
||||
E_uwMmgPbDynAddressNotValid, "The dynamic memory address is not valid (not referenced in the debug table)",
|
||||
E_uwMmgPbStaAddressNotValid, "The Static memory address is not valid (not referenced in the debug table), or using a wrong static block",
|
||||
E_uwMmgPbBLockFull, "Can not allocate (the block is full)",
|
||||
E_uwMmgPbSpaceForDebugInformationIsFull, "The number of requested allocation are too high, the debug information memory is full",
|
||||
E_uwMmgPbDeleteBlock, "Can not free the Block (in Mmg_fn_vDeleteblock)",
|
||||
E_uwMmgPbSizeOfAllocIs0, "Strange, you have request an allocation of 0 Byte, the return value Will be NULL, please change",
|
||||
E_uwMmgPbFreeofNULL, "Strange, you have request a free with a NULL pointer, please change that",
|
||||
E_uwMmgPbBbFree, "Strange, the number of free was not valid.\nThe debug function TestMalloc has repaired this data.\nPlease warn the developper of Mmg to fix the Bug",
|
||||
E_uwMmgPbDftChannelCannotBeFree,"You try to release the default channel (0), you not allow to do that !",
|
||||
E_uwMmgPbInvalChannel, "Invalid number of channel",
|
||||
E_uwMmgInvalidGroup,"You are not allow to use another group to the default",
|
||||
#endif /*__WARNING3_ERR_MMG__*/
|
||||
0xFFFF, "\0"/*fin*/
|
||||
}
|
||||
#endif /*__DeclareGlobalVariableErrMmg_h__ && CPA_WANTS_IMPORT*/
|
||||
;
|
||||
|
||||
#endif /*__ERROR_STRINGS__*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /*__ERRMMG_H__*/
|
274
Rayman_X/cpa/public/MMG/RastMmg.h
Normal file
274
Rayman_X/cpa/public/MMG/RastMmg.h
Normal file
@@ -0,0 +1,274 @@
|
||||
|
||||
/****************************************************************
|
||||
* *
|
||||
* RastMmg.h *
|
||||
* *
|
||||
* Functions to have a dump of the memory used type by type *
|
||||
* *
|
||||
* Author : Alexis Vaisse *
|
||||
* *
|
||||
****************************************************************/
|
||||
|
||||
|
||||
#ifndef __RASTMMG_H__
|
||||
#define __RASTMMG_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
#define MMG_C_lTypeScript 1
|
||||
#define MMG_C_lSubTypeScript 0
|
||||
|
||||
#define MMG_C_lTypeMiniStructure 2
|
||||
#define MMG_C_lSubType3dData 0
|
||||
#define MMG_C_lSubTypeStdGame 1
|
||||
#define MMG_C_lSubTypeDynamics 2
|
||||
#define MMG_C_lSubTypeBrain 3
|
||||
#define MMG_C_lSubTypeCineInfo 4
|
||||
#define MMG_C_lSubTypeCollSet 5
|
||||
#define MMG_C_lSubTypeMSWay 6
|
||||
#define MMG_C_lSubTypeLight 7
|
||||
#define MMG_C_lSubTypeSectInfo 8
|
||||
#define MMG_C_lSubTypeMicro 9
|
||||
#define MMG_C_lSubTypePrtSrc 10
|
||||
#define MMG_C_lSubTypeMSSound 11
|
||||
#define MMG_C_lSubTypeAnimEffect 12
|
||||
#define MMG_C_lSubTypeMagnet 13
|
||||
|
||||
#define MMG_C_lTypeFamily 3
|
||||
#define MMG_C_lSubTypeFamily 0
|
||||
#define MMG_C_lSubTypeState 1
|
||||
#define MMG_C_lSubTypeAnimation 2
|
||||
#define MMG_C_lSubTypeTransition 3
|
||||
#define MMG_C_lSubTypeProhibit 4
|
||||
#define MMG_C_lSubTypeTBLList 5
|
||||
#define MMG_C_lSubTypeTBLElement 6
|
||||
#define MMG_C_lSubTypeTBLEvent 7
|
||||
#define MMG_C_lSubTypeZdxListElement 8
|
||||
#define MMG_C_lSubTypeZdxIndexListElement 9
|
||||
#define MMG_C_lSubTypeGeometricZdxListElement 10
|
||||
#define MMG_C_lSubTypeZoneSetListElement 11
|
||||
#define MMG_C_lSubTypeCsaListElement 12
|
||||
#define MMG_C_lSubTypeZoneSetEncapsulation 13
|
||||
|
||||
#define MMG_C_lTypeAI 4
|
||||
#define MMG_C_lSubTypeMind 0
|
||||
#define MMG_C_lSubTypeMacro 1
|
||||
#define MMG_C_lSubTypeNodeMacro 2
|
||||
#define MMG_C_lSubTypeComport 3
|
||||
#define MMG_C_lSubTypeRule 4
|
||||
#define MMG_C_lSubTypeNodeInterpret 5
|
||||
#define MMG_C_lSubTypeActionTableEntry 6
|
||||
#define MMG_C_lSubTypeActionTable 7
|
||||
#define MMG_C_lSubTypeModel 8
|
||||
#define MMG_C_lSubTypeScriptAI 9
|
||||
#define MMG_C_lSubTypeIntelligence 10
|
||||
#define MMG_C_lSubTypeDsgVarInfo 11
|
||||
#define MMG_C_lSubTypeDsgVar 12
|
||||
#define MMG_C_lSubTypeDsgMemBuffer 13
|
||||
#define MMG_C_lSubTypeDsgMem 14
|
||||
#define MMG_C_lSubTypeNodeString 15
|
||||
#define MMG_C_lSubTypeNodeVector 16
|
||||
#define MMG_C_lSubTypeListOfArc 17
|
||||
#define MMG_C_lSubTypeArc 18
|
||||
#define MMG_C_lSubTypeNameOfGraph 19
|
||||
#define MMG_C_lSubTypeNameOfGraphSection 20
|
||||
#define MMG_C_lSubTypeGraph 21
|
||||
#define MMG_C_lSubTypeGraphNode 22
|
||||
#define MMG_C_lSubTypeAIDEBUG 23
|
||||
|
||||
#define MMG_C_lTypePosition 5
|
||||
#define MMG_C_lSubTypePosition 0
|
||||
|
||||
#define MMG_C_lTypeSuperObject 6
|
||||
#define MMG_C_lSubTypeSuperObject 0
|
||||
#define MMG_C_lSubTypeSuperObjectTable 1
|
||||
|
||||
#define MMG_C_lTypeSector 7
|
||||
#define MMG_C_lSubTypeSector 0
|
||||
#define MMG_C_lSubTypeGraphicElement 1
|
||||
#define MMG_C_lSubTypeCollisionElement 2
|
||||
#define MMG_C_lSubTypeCharacterElement 3
|
||||
#define MMG_C_lSubTypeActiveElement 4
|
||||
#define MMG_C_lSubTypeSoundElement 5
|
||||
#define MMG_C_lSubTypeDNMLightElement 6
|
||||
#define MMG_C_lSubTypeStaticLightElement 7
|
||||
#define MMG_C_lSubTypeSoundEvent 8
|
||||
|
||||
#define MMG_C_lTypeGeometricObject 8
|
||||
#define MMG_C_lSubTypePointsNormals 0
|
||||
#define MMG_C_lSubTypeIndexUsedByElement 1
|
||||
#define MMG_C_lSubTypeMainObject 2
|
||||
#define MMG_C_lSubTypeListOfElementType 3
|
||||
#define MMG_C_lSubTypeListOfElement 4
|
||||
#define MMG_C_lSubTypeListOfPoint 5
|
||||
#define MMG_C_lSubTypeListOfEdge 6
|
||||
#define MMG_C_lSubTypeListOfEdgeMaterial 7
|
||||
#define MMG_C_lSubTypePointsMaterial 8
|
||||
#define MMG_C_lSubTypeParallelBox 9
|
||||
#define MMG_C_lSubTypeRotativeSprite 10
|
||||
#define MMG_C_lSubTypeBoundingSphere 11
|
||||
#define MMG_C_lSubTypeElementSprite 12
|
||||
#define MMG_C_lSubTypeElementIT 13
|
||||
#define MMG_C_lSubTypeElementFaceMap 14
|
||||
#define MMG_C_lSubTypeElementTMeshes 15
|
||||
#define MMG_C_lSubTypeElementPoint 16
|
||||
#define MMG_C_lSubTypeElementLine 17
|
||||
#define MMG_C_lSubTypeElementSphere 18
|
||||
#define MMG_C_lSubTypeElementAlignedBox 19
|
||||
#define MMG_C_lSubTypeElementCone 20
|
||||
|
||||
#define MMG_C_lTypeSAI 9
|
||||
#define MMG_C_lSubTypeSAI 0
|
||||
|
||||
#define MMG_C_lTypeIPT 10
|
||||
#define MMG_C_lSubTypeIPT 0
|
||||
|
||||
#define MMG_C_lTypeFile 11
|
||||
#define MMG_C_lSubTypeBmpFile 0
|
||||
#define MMG_C_lSubTypeConcatFile 1
|
||||
#define MMG_C_lSubTypeGfFile 2
|
||||
#define MMG_C_lSubTypeTgaFile 3
|
||||
#define MMG_C_lSubTypeMiscellaneousFile 4
|
||||
|
||||
#define MMG_C_lTypeGMT 12
|
||||
#define MMG_C_lSubTypeCollideMaterial 0
|
||||
#define MMG_C_lSubTypeFor3DOS 1
|
||||
#define MMG_C_lSubTypeForA3D 2
|
||||
#define MMG_C_lSubTypeMain 3
|
||||
|
||||
#define MMG_C_lTypeMOR 13
|
||||
#define MMG_C_lSubTypeElement 0
|
||||
#define MMG_C_lSubTypePO 1
|
||||
|
||||
#define MMG_C_lTypeISI 14
|
||||
#define MMG_C_lSubTypeLOD 0
|
||||
#define MMG_C_lSubTypeArray 1
|
||||
#define MMG_C_lSubTypeStruct 2
|
||||
#define MMG_C_lSubTypeBlendRLI 3
|
||||
|
||||
#define MMG_C_lTypeInterpol 15
|
||||
#define MMG_C_lSubTypeA3dGENERAL 0
|
||||
#define MMG_C_lSubTypeVectors 1
|
||||
#define MMG_C_lSubTypeQuaternions 2
|
||||
#define MMG_C_lSubTypeHierarchies 3
|
||||
#define MMG_C_lSubTypeNTTO 4
|
||||
#define MMG_C_lSubTypeOnlyFrames 5
|
||||
#define MMG_C_lSubTypeChannels 6
|
||||
#define MMG_C_lSubTypeFrames 7
|
||||
#define MMG_C_lSubTypeFramesKF 8
|
||||
#define MMG_C_lSubTypeKeyFrames 9
|
||||
#define MMG_C_lSubTypeEvents 10
|
||||
#define MMG_C_lSubTypeMorphData 11
|
||||
#define MMG_C_lSubTypeSpeedCuttedAnim 12
|
||||
#define MMG_C_lSubTypeSpeedMatrix 13
|
||||
|
||||
#define MMG_C_lTypeVignette 16
|
||||
#define MMG_C_lSubTypeVignette 0
|
||||
|
||||
#define MMG_C_lTypeGAM 17
|
||||
#define MMG_C_lSubTypePlayer 0
|
||||
#define MMG_C_lSubTypeCSO 1
|
||||
#define MMG_C_lSubTypeLipSynchro 2
|
||||
#define MMG_C_lSubTypeSnapShot 3
|
||||
#define MMG_C_lSubTypeBinAnim 4
|
||||
#define MMG_C_lSubTypeListOfMaps 5
|
||||
#define MMG_C_lSubTypeMorphChannelList 6
|
||||
#define MMG_C_lSubTypeMorphList 7
|
||||
#define MMG_C_lSubTypeAlwaysActiveChar 8
|
||||
#define MMG_C_lSubTypeFont 9
|
||||
#define MMG_C_lSubTypeMainChar 10
|
||||
#define MMG_C_lSubTypeEngineObject 11
|
||||
#define MMG_C_lSubTypeAlwaysGenerator 12
|
||||
#define MMG_C_lSubTypeAlwaysModel 13
|
||||
#define MMG_C_lSubTypeObjectTypeElement 14
|
||||
#define MMG_C_lSubTypeViewPortArray 15
|
||||
|
||||
#define MMG_C_lTypeGLI 18
|
||||
#define MMG_C_lSubTypeTexture 0
|
||||
#define MMG_C_lSubTypeGlobal 1
|
||||
#define MMG_C_lSubTypeZBufferForLight 2
|
||||
#define MMG_C_lSubTypeGliLight 3
|
||||
#define MMG_C_lSubTypePolice 4
|
||||
#define MMG_C_lSubTypeZList 5
|
||||
#define MMG_C_lSubTypeCamera 6
|
||||
#define MMG_C_lSubTypeMaterial 7
|
||||
#define MMG_C_lSubTypeAnimatedTexture 8
|
||||
#define MMG_C_lSubTypeMipMapping 9
|
||||
#define MMG_C_lSubTypeVisualSet 10
|
||||
#define MMG_C_lSubTypeRLI 11
|
||||
|
||||
#define MMG_C_lTypeOctree 19
|
||||
#define MMG_C_lSubTypeElementBaseTable 0
|
||||
#define MMG_C_lSubTypeFaceIndex 1
|
||||
#define MMG_C_lSubTypeTaggedPointTable 2
|
||||
#define MMG_C_lSubTypeTaggedFaceTable 3
|
||||
#define MMG_C_lSubTypeOctreeNode 4
|
||||
#define MMG_C_lSubTypeFaceIndexList 5
|
||||
#define MMG_C_lSubTypeOctreeStructure 6
|
||||
|
||||
#define MMG_C_lTypePO 20
|
||||
#define MMG_C_lSubTypePOStructure 0
|
||||
|
||||
#define MMG_C_lTypePCS 21
|
||||
#define MMG_C_lSubTypePCSStructure 0
|
||||
|
||||
#define MMG_C_lTypeIPO 22
|
||||
#define MMG_C_lSubTypeIPOStructure 0
|
||||
|
||||
#define MMG_C_lTypeMEC 23
|
||||
#define MMG_C_lSubTypeMecMatCharacteristic 0
|
||||
#define MMG_C_lSubTypeMecCameraCard 1
|
||||
#define MMG_C_lSubTypeMecBaseCard 2
|
||||
|
||||
#define MMG_C_lTypeRND 24
|
||||
#define MMG_C_lSubTypeRND 0
|
||||
|
||||
|
||||
#if (defined(USE_PROFILER) && !defined(U64))
|
||||
|
||||
void MMG_fn_vInitMemoryRasterDeclaration(void); /* Called once when the first memory block is allocated*/
|
||||
void MMG_fn_vDesinitMemoryRasterDeclaration (void); /* Called once at the end of the program*/
|
||||
|
||||
void MMG_fn_vInitMemoryRaster (long _lNumberOfType); /* Must be called once at the beginning of the game*/
|
||||
void MMG_fn_vInitTypeForMemoryRaster (long _lType , char * _szTypeName , long _lNumberOfSubType);
|
||||
void MMG_fn_vInitSubTypeForMemoryRaster (long _lType , long _lSubType , char * _szSubTypeName , long _lNumberOfObject);
|
||||
|
||||
void MMG_fn_vAddMemoryInfo (long _lType , long _lSubType , void * _p_vObject); /* Must be called before making a memory allocation*/
|
||||
void MMG_fn_vBeginMemoryInfo (long _lType , long _lSubType , void * _p_vObject); /* Must be called before making several memory allocations. Then one must call the MMG_fn_vEndMemoryInfo function*/
|
||||
void MMG_fn_vEndMemoryInfo (); /* Must be called after calling the MMG_fn_vBeginMemoryInfo and making memory allocations*/
|
||||
|
||||
void MMG_fn_vRegisterMemoryAllocation (long _lChannelNumber , long _lRequestedSize);/* This function is called only by the fn_p_vGenAlloc function*/
|
||||
void MMG_fn_vRegisterMemoryFree (long _lChannelNumber , void * _p_vBlock); /* This function is called only by the fn_p_vGenFree function*/
|
||||
|
||||
void MMG_fn_vDumpMemory (); /* Save all memory informations into a dump file*/
|
||||
|
||||
void MMG_fn_vClearMemoryRaster ();
|
||||
|
||||
#else
|
||||
|
||||
#define MMG_fn_vInitMemoryRasterDeclaration()
|
||||
#define MMG_fn_vDesinitMemoryRasterDeclaration()
|
||||
|
||||
#define MMG_fn_vInitMemoryRaster(a)
|
||||
#define MMG_fn_vInitTypeForMemoryRaster(a,b,c)
|
||||
#define MMG_fn_vInitSubTypeForMemoryRaster(a,b,c,d)
|
||||
|
||||
#define MMG_fn_vAddMemoryInfo(a,b,c)
|
||||
#define MMG_fn_vBeginMemoryInfo(a,b,c)
|
||||
#define MMG_fn_vEndMemoryInfo()
|
||||
#define MMG_fn_vRegisterMemoryAllocation(a,b)
|
||||
|
||||
#define MMG_fn_vDumpMemory()
|
||||
|
||||
#define MMG_fn_vClearMemoryRaster()
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif
|
BIN
Rayman_X/cpa/public/MMG/TOC044.doc.lnk
Normal file
BIN
Rayman_X/cpa/public/MMG/TOC044.doc.lnk
Normal file
Binary file not shown.
Reference in New Issue
Block a user