Add rayman2 source files
This commit is contained in:
113
Rayman_X/cpa/tempgrp/RAY/RAY.DSP
Normal file
113
Rayman_X/cpa/tempgrp/RAY/RAY.DSP
Normal file
@@ -0,0 +1,113 @@
|
||||
# Microsoft Developer Studio Project File - Name="RAY" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 5.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Static Library" 0x0104
|
||||
|
||||
CFG=RAY - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "Ray.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "Ray.mak" CFG="RAY - Win32 Debug"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "RAY - Win32 Release" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "RAY - Win32 Debug" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE "RAY - Win32 Retail" (based on "Win32 (x86) Static Library")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP Scc_ProjName ""$/cpa/tempgrp/RAY", UAEAAAAA"
|
||||
# PROP Scc_LocalPath "."
|
||||
CPP=cl.exe
|
||||
|
||||
!IF "$(CFG)" == "RAY - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "x:\cpa\lib"
|
||||
# PROP Intermediate_Dir "Tmp\Release"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
|
||||
# ADD CPP /nologo /G5 /W3 /GX /O2 /I "X:\CPA\Public" /I "T:\glide\win32\include" /D "NDEBUG" /D "VISUAL" /D "WIN32" /D "USE_PROFILER" /FD /c
|
||||
# SUBTRACT CPP /Fr /YX
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"X:\CPA\lib\RAYP5_vr.lib"
|
||||
|
||||
!ELSEIF "$(CFG)" == "RAY - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "X:\CPA\lib"
|
||||
# PROP Intermediate_Dir "tmp\Debug"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
|
||||
# ADD CPP /nologo /G5 /W3 /GX /Z7 /Od /I "X:\CPA\Public" /I "T:\glide\win32\include" /D "_DEBUG" /D "VISUAL" /D "WIN32" /D "USE_PROFILER" /D "MTH_CHECK" /D "CPA_WANTS_EXPORT" /FD /c
|
||||
# SUBTRACT CPP /Fr /YX
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo
|
||||
# ADD LIB32 /nologo /out:"X:\CPA\lib\RAYP5_vd.lib"
|
||||
|
||||
!ELSEIF "$(CFG)" == "RAY - Win32 Retail"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "RAY___Wi"
|
||||
# PROP BASE Intermediate_Dir "RAY___Wi"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "x:\cpa\lib"
|
||||
# PROP Intermediate_Dir "tmp\retail"
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /G5 /W3 /GX /O2 /I "X:\CPA\Public" /I "T:\glide\win32\include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "CPA_WANTS_EXPORT" /D "__MSC__" /FD /c
|
||||
# SUBTRACT BASE CPP /Fr /YX
|
||||
# ADD CPP /nologo /G5 /W3 /GX /O2 /I "X:\CPA\Public" /I "T:\glide\win32\include" /D "NDEBUG" /D "VISUAL" /D "WIN32" /D "RETAIL" /FD /c
|
||||
# SUBTRACT CPP /Fr /YX
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LIB32=link.exe -lib
|
||||
# ADD BASE LIB32 /nologo /out:"X:\CPA\lib\RAYP5_vr.lib"
|
||||
# ADD LIB32 /nologo /out:"X:\CPA\lib\RAYP5_vf.lib"
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "RAY - Win32 Release"
|
||||
# Name "RAY - Win32 Debug"
|
||||
# Name "RAY - Win32 Retail"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\Ray.mak
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\RAYMain.c
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
201
Rayman_X/cpa/tempgrp/RAY/RAY.vcproj
Normal file
201
Rayman_X/cpa/tempgrp/RAY/RAY.vcproj
Normal file
@@ -0,0 +1,201 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="7.10"
|
||||
Name="RAY"
|
||||
ProjectGUID="{47B92BC4-03D5-4CD3-BE8F-7102ED6DB720}"
|
||||
SccProjectName=""$/cpa/tempgrp/RAY", UAEAAAAA"
|
||||
SccAuxPath=""
|
||||
SccLocalPath="."
|
||||
SccProvider="MSSCCI:NXN alienbrain">
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"/>
|
||||
</Platforms>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Retail|Win32"
|
||||
OutputDirectory="x:\cpa\lib"
|
||||
IntermediateDirectory=".\tmp\retail"
|
||||
ConfigurationType="4"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
OptimizeForProcessor="1"
|
||||
AdditionalIncludeDirectories="X:\CPA\Public,T:\glide\win32\include"
|
||||
PreprocessorDefinitions="NDEBUG;VISUAL;WIN32;RETAIL"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="4"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
PrecompiledHeaderFile=".\tmp\retail/RAY.pch"
|
||||
AssemblerListingLocation=".\tmp\retail/"
|
||||
ObjectFile=".\tmp\retail/"
|
||||
ProgramDataBaseFileName=".\tmp\retail/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
OutputFile="X:\CPA\lib\RAYP5_vf.lib"
|
||||
SuppressStartupBanner="TRUE"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="x:\cpa\lib"
|
||||
IntermediateDirectory=".\Tmp\Release"
|
||||
ConfigurationType="4"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
InlineFunctionExpansion="1"
|
||||
OptimizeForProcessor="1"
|
||||
AdditionalIncludeDirectories="X:\CPA\Public,T:\glide\win32\include"
|
||||
PreprocessorDefinitions="NDEBUG;VISUAL;WIN32;USE_PROFILER"
|
||||
StringPooling="TRUE"
|
||||
RuntimeLibrary="4"
|
||||
EnableFunctionLevelLinking="TRUE"
|
||||
PrecompiledHeaderFile=".\Tmp\Release/RAY.pch"
|
||||
AssemblerListingLocation=".\Tmp\Release/"
|
||||
ObjectFile=".\Tmp\Release/"
|
||||
ProgramDataBaseFileName=".\Tmp\Release/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
OutputFile="X:\CPA\lib\RAYP5_vr.lib"
|
||||
SuppressStartupBanner="TRUE"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="X:\CPA\libd"
|
||||
IntermediateDirectory=".\tmp\Debug"
|
||||
ConfigurationType="4"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="FALSE">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
OptimizeForProcessor="1"
|
||||
AdditionalIncludeDirectories="X:\CPA\Public,T:\glide\win32\include"
|
||||
PreprocessorDefinitions="_DEBUG;VISUAL;WIN32;USE_PROFILER;MTH_CHECK;CPA_WANTS_EXPORT"
|
||||
RuntimeLibrary="3"
|
||||
PrecompiledHeaderFile=".\tmp\Debug/RAY.pch"
|
||||
AssemblerListingLocation=".\tmp\Debug/"
|
||||
ObjectFile=".\tmp\Debug/"
|
||||
ProgramDataBaseFileName=".\tmp\Debug/"
|
||||
WarningLevel="3"
|
||||
SuppressStartupBanner="TRUE"
|
||||
DebugInformationFormat="1"
|
||||
CompileAs="0"/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
OutputFile="X:\CPA\libd\RAYP5_vd.lib"
|
||||
SuppressStartupBanner="TRUE"/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
Culture="1033"/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCManagedWrapperGeneratorTool"/>
|
||||
<Tool
|
||||
Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath="Ray.mak">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="RAYMain.c">
|
||||
<FileConfiguration
|
||||
Name="Retail|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Release|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="2"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
<FileConfiguration
|
||||
Name="Debug|Win32">
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions=""/>
|
||||
</FileConfiguration>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
131
Rayman_X/cpa/tempgrp/RAY/RAYMain.c
Normal file
131
Rayman_X/cpa/tempgrp/RAY/RAYMain.c
Normal file
@@ -0,0 +1,131 @@
|
||||
#include "Acp_base.h"
|
||||
|
||||
#include "GMT/GmtHandl.h"
|
||||
|
||||
#include "GEO.h"
|
||||
#include "GLI.h"
|
||||
|
||||
#include "MTH.h"
|
||||
#include "COL.h"
|
||||
#include "SPO.h"
|
||||
#include "LST.h"
|
||||
|
||||
#include "MEC.h"
|
||||
/*#include "ENV.h"*/
|
||||
#include "SND.h"
|
||||
/*#include "SRF.h"*/
|
||||
#include "SCT.h"
|
||||
|
||||
#include "PCS.h"
|
||||
#include "PO.h"
|
||||
#include "IPO.h"
|
||||
|
||||
#include "ISI.h"
|
||||
|
||||
#include "RAY.h"
|
||||
|
||||
static GEO_tdstColor Tab_stColor[10000];
|
||||
|
||||
|
||||
/* Compute RLI for all object in a super object.*/
|
||||
/* This is a r<>cursive function.*/
|
||||
void RAY_vComputeAllIPOInSector(HIE_tdxHandleToSuperObject _hSuperObject)
|
||||
{
|
||||
/* GEO_tdstVisualSet_ *p_stVisualSet;*/
|
||||
ACP_tdxHandleOfObject hPhysicalObject;
|
||||
MTH_tdxReal xTemp;
|
||||
ACP_tdxIndex xI,xJ;
|
||||
ACP_tdxHandleToRadiosity hISI;
|
||||
ACP_tdxIndex xNbVertex;
|
||||
HIE_tdxHandleToSuperObject hchildSO;
|
||||
GEO_tdxHandleToVisualSet p_stVisualSet;
|
||||
long lNbLOD;
|
||||
ISI_tdstColor *pstColorISI;
|
||||
|
||||
HIE_fn_vPushMatrix (_hSuperObject);
|
||||
|
||||
if (HIE_fn_ulGetSuperObjectType(_hSuperObject) & (HIE_C_ulIPO | HIE_C_ulIPO_Mirror))
|
||||
{
|
||||
p_stVisualSet=PO_fn_hGetVisualSet(IPO_fn_hGetPhysicalObject((IPO_tdxHandleToInstanciatedPhysicalObject)HIE_fn_hGetSuperObjectObject(_hSuperObject)));
|
||||
lNbLOD=GLI_lGetVisualSetNumbertOfLOD(p_stVisualSet);
|
||||
hISI=IPO_fn_hGetRadiosity((IPO_tdxHandleToInstanciatedPhysicalObject)HIE_fn_hGetSuperObjectObject(_hSuperObject));
|
||||
|
||||
if(!hISI)
|
||||
{
|
||||
hISI=ISI_fn_hCreateISI(lNbLOD);
|
||||
for (xJ=0;xJ<lNbLOD;xJ++)
|
||||
{
|
||||
GLI_vGetVisualSetLOD(p_stVisualSet,xJ,&xTemp,&hPhysicalObject);
|
||||
ISI_fn_hCreateISILOD(hISI,xJ,hPhysicalObject->xNbPoints);
|
||||
}
|
||||
IPO_fn_vSetRadiosity((IPO_tdxHandleToInstanciatedPhysicalObject)HIE_fn_hGetSuperObjectObject(_hSuperObject),hISI);
|
||||
}
|
||||
|
||||
for (xJ=0;xJ<lNbLOD;xJ++)
|
||||
{
|
||||
GLI_vGetVisualSetLOD(p_stVisualSet,xJ,&xTemp,&hPhysicalObject);
|
||||
|
||||
GLI_xComputeLightForObject(hPhysicalObject,Tab_stColor);
|
||||
|
||||
xNbVertex=ISI_fn_xGetNbVertexRLILOD(hISI,xJ);
|
||||
pstColorISI=ISI_fn_dGetVertexRLILOD(hISI,xJ);
|
||||
ISI_ColGEOToISI(pstColorISI,Tab_stColor,xNbVertex);
|
||||
}
|
||||
}
|
||||
HIE_M_ForEachChildOf(_hSuperObject,hchildSO,xI)
|
||||
{
|
||||
RAY_vComputeAllIPOInSector(hchildSO);
|
||||
}
|
||||
|
||||
HIE_fn_vPopMatrix ();
|
||||
}
|
||||
|
||||
|
||||
/* Compute RLI for all sectors.*/
|
||||
/* This is a r<>cursive function.*/
|
||||
void RAY_vComputeAllSectorRec(HIE_tdxHandleToSuperObject _hSuperObject)
|
||||
{
|
||||
SECT_tdxHandleOfElementLstStaticLights hStaticLightsList;
|
||||
GLI_tdxHandleToLight hLight;
|
||||
ACP_tdxIndex xI;
|
||||
HIE_tdxHandleToSuperObject hchildSO;
|
||||
|
||||
HIE_fn_vPushMatrix (_hSuperObject);
|
||||
|
||||
if(HIE_fn_ulGetSuperObjectType(_hSuperObject)==HIE_C_ulSector)
|
||||
{
|
||||
GLI_vClearListOfLightInViewport(NULL);
|
||||
|
||||
SECT_M_ForEachStaticLightsListInSector(_hSuperObject,hStaticLightsList,xI)
|
||||
{
|
||||
hLight=SECT_GetStaticLightsInList(hStaticLightsList);
|
||||
if (GLI_ucGetObjectLighted(hLight) & GLI_C_LightMap)
|
||||
GLI_vAddLightToViewport(NULL,hLight);
|
||||
}
|
||||
HIE_M_ForEachChildOf(_hSuperObject,hchildSO,xI)
|
||||
{
|
||||
RAY_vComputeAllIPOInSector(hchildSO);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
HIE_M_ForEachChildOf(_hSuperObject,hchildSO,xI)
|
||||
{
|
||||
RAY_vComputeAllSector(hchildSO);
|
||||
}
|
||||
}
|
||||
|
||||
HIE_fn_vPopMatrix ();
|
||||
}
|
||||
|
||||
|
||||
/* Compute RLI for all sectors.*/
|
||||
/* This is a r<>cursive function.*/
|
||||
void RAY_vComputeAllSector(HIE_tdxHandleToSuperObject _hSuperObject)
|
||||
{
|
||||
HIE_fn_bLoadIdentity();
|
||||
HIE_fn_vInvalidateAllGlobalMatrices();
|
||||
GLI_vResetTableOfActiveLightsForChar( GLI_C_ActivateLight );
|
||||
RAY_vComputeAllSectorRec(_hSuperObject);
|
||||
HIE_fn_vPopMatrix ();
|
||||
}
|
5
Rayman_X/cpa/tempgrp/RAY/mssccprj.scc
Normal file
5
Rayman_X/cpa/tempgrp/RAY/mssccprj.scc
Normal file
@@ -0,0 +1,5 @@
|
||||
SCC = This is a source code control file
|
||||
|
||||
[RAY.vcproj]
|
||||
SCC_Aux_Path = "P4SCC#srvperforce-ma:1666##raymandata##Editor"
|
||||
SCC_Project_Name = Perforce Project
|
Reference in New Issue
Block a user