Removed a few unused files.

This commit is contained in:
Steven Fuller 2001-08-26 20:37:50 +00:00 committed by Patryk Obara
parent 39a1a56772
commit cf29827c40
20 changed files with 0 additions and 4149 deletions

View file

@ -1,111 +0,0 @@
/*************************************************************
Module name: AdvWin32.H
Notices: Copyright (c) 1995 Jeffrey Richter
*************************************************************/
#ifndef ADVWIN32_H_INCLUDED
#define ADVWIN32_H_INCLUDED
/* Disable Visual C++ warnings which fire when reading Windows OS headers. */
#ifndef __WATCOMC__
/* Disable ridiculous warnings so that the code */
/* compiles cleanly using warning level 4. */
/* nonstandard extension 'single line comment' was used */
#pragma warning(disable: 4001)
// nonstandard extension used : nameless struct/union
#pragma warning(disable: 4201)
// nonstandard extension used : bit field types other than int
#pragma warning(disable: 4214)
// Note: Creating precompiled header
#pragma warning(disable: 4699)
// unreferenced inline function has been removed
#pragma warning(disable: 4514)
// unreferenced formal parameter
#pragma warning(disable: 4100)
// 'type' differs in indirection to slightly different base
// types from 'other type'
#pragma warning(disable: 4057)
// named type definition in parentheses
#pragma warning(disable: 4115)
// nonstandard extension used : benign typedef redefinition
#pragma warning(disable: 4209)
// conditional expression is constant : used to differentiate between internal and external versions
#pragma warning(disable: 4127)
// comma operator in array index, disabled due to assertions in array indicies
#pragma warning(disable: 4709)
// assignment operator could not be generated, disable as often the operator isn't used.
#pragma warning(disable: 4512)
// 'function' selected for automatic inline expansion - when a function not declared inline was inlined: well done compiler, aren't you clever!
#pragma warning(disable: 4711)
// 'function' not expanded.
#pragma warning(disable: 4710)
#pragma warning(disable: 4032)
#pragma warning(disable: 4702)
/////////////////////////////////////////////////////////////
// Create an ARRAY_SIZE macro that returns the number of
// elements in an array. This is a handy macro that I use
// frequently throughout the sample applications.
#define ARRAY_SIZE(Array) \
(sizeof(Array) / sizeof((Array)[0]))
/////////////////////////////////////////////////////////////
// Create a BEGINTHREADEX macro that calls the C run-time's
// _beginthreadex function. The C run-time library doesn't
// want to have any reliance on Win32 data types such as
// HANDLE. This means that a Win32 programmer needs to cast
// the return value to a HANDLE. This is terribly inconvenient,
// so I have created this macro to perform the casting.
typedef unsigned (__stdcall *PTHREAD_START) (void *);
#define BEGINTHREADEX(lpsa, cbStack, lpStartAddr, \
lpvThreadParm, fdwCreate, lpIDThread) \
((HANDLE)_beginthreadex( \
(void *) (lpsa), \
(unsigned) (cbStack), \
(PTHREAD_START) (lpStartAddr), \
(void *) (lpvThreadParm), \
(unsigned) (fdwCreate), \
(unsigned *) (lpIDThread)))
/////////////////////////////////////////////////////////////
// Compile all CONTEXT structures to use 32-bit members
// instead of 16-bit members. Currently, the only sample
// application that requires this is TInjLib.16 in order
// for it to work correctly on the DEC Alpha AXP.
#define _PORTABLE_32BIT_CONTEXT
#endif /* ifndef __WATCOMC__ */
/////////////////////////////////////////////////////////////
// Force all EXEs/DLLs to use STRICT type checking.
#ifndef STRICT
#define STRICT 1
#endif
#endif /* ifndef ADVWIN32_H_INCLUDED */
////////////////////////// End Of File //////////////////////

View file

@ -5,7 +5,6 @@
#include "inline.h"
#include "module.h"
#include "krender.h"
#include "chnktexi.h"
#include "d3d_hud.h"

View file

@ -1,306 +0,0 @@
#include "3dc.h"
#include "module.h"
#include "inline.h"
#include "krender.h" /* KJL 11:37:53 12/05/96 - new scandraws patch */
/* KJL 15:02:50 05/14/97 - new max lighting intensity */
#define MAX_INTENSITY (65536*4-1)
#if StandardShapeLanguage
#define UseLocalAssert Yes
#include "ourasert.h"
/*
The outputclockwise compile option has been
maintained in case anyone wants to use the existing
triangle array code with counterclockwise ordering.
In the case of Win95, we might want to this if we can ever
persuade the Direct3D rasterisation module to come up
with CULL_CCW set. Note that outputtriangles has now been purged
from the system.
*/
#define outputclockwise Yes
#define use_div_fixed Yes
#define trip_debugger No
#if trip_debugger
int testa = 0;
int testb = 100;
int testc = 0;
#endif
/*
To make scan draws work backwards as
well as forwards, i.e. to cope with
items that would be backface culled
without the no cull flag set, as in racing
game TLOs.
This should now work for all polygon types.
*/
#define ReverseDraws Yes
/*
To optimise scan draws with local variables
explicitly braced to improve compiler
optimisation.
NOTE THIS IS -->ONLY<-- IMPLEMENTED FOR
VIDEOMODETYPE_8, 2DTEXTURE, 3DTEXTURE (LINEAR)
AND 3DTEXTURE (LINEAR_S) AT PRESENT.
AND NOT ALL THE OPTIONS INSIDE THOSE!!!
NOTE ALSO THAT THIS APPEARS TO PRODUCE BAD CODE
WITH WATCOM 10.0 AND -oeitlr, BUT WE HOPE IT WILL
WORK WITH WATCOM 10.6
-->CRASHES, AS IT HAPPENS!!!<--
*/
/*
Prototypes
*/
/*
externs for commonly used global variables and arrays
*/
extern int VideoModeType;
extern int VideoModeTypeScreen;
extern int ScanDrawMode;
extern int **ShadingTableArray;
extern unsigned char **PaletteShadingTableArray;
extern VIEWDESCRIPTORBLOCK *Global_VDB_Ptr;
extern unsigned char *ScreenBuffer;
extern IMAGEHEADER *ImageHeaderPtrs[MaxImages];
extern SCREENDESCRIPTORBLOCK ScreenDescriptorBlock;
extern long BackBufferPitch;
/* For multiple execute buffers */
extern int NumVertices;
#endif /* for support3dtextures */
/*
Global Variables
*/
// int *ItemPointers[maxpolyptrs];
// int ItemData[maxpolys * avgpolysize];
int **NextFreeItemPtr;
int *NextFreeItemData;
int NumFreeItemPtrs;
int NumFreeItemData;
int ItemCount; /* Instead of a Terminator */
POLYHEADER *global_pheader;
int MIP_Index;
/*
Global Variables For Scan Convertors
*/
int ScanData[maxpolys*maxscansize];
int *NextFreeScanData;
int NumFreeScanData;
int NumScans;
int NumPolyPts;
/*
Item Data Structures.
Buffer Initialisation and Allocation Functions.
*/
/*
John and Neal's code
Note this is only experimental, for the interface engine,
and therefore does not go through the standard scan draw
function array!!! Also, it only works in VideoModeType_8!!!
USE AT YOUR PERIL!!!!
*/
void Draw_Line_VMType_8(VECTOR2D* LineStart, VECTOR2D* LineEnd, int LineColour)
{
int gosa, tame, hani, dire;
int w, x, y;
int x1, y1, x2, y2;
unsigned char *sbufferptr;
unsigned char colour = LineColour;
x1 = LineStart->vx;
y1 = LineStart->vy;
x2 = LineEnd->vx;
y2 = LineEnd->vy;
x1=max(x1,Global_VDB_Ptr->VDB_ClipLeft);
x1=min(x1,Global_VDB_Ptr->VDB_ClipRight-1);
x2=max(x2,Global_VDB_Ptr->VDB_ClipLeft);
x2=min(x2,Global_VDB_Ptr->VDB_ClipRight-1);
y1=max(y1,Global_VDB_Ptr->VDB_ClipUp);
y1=min(y1,Global_VDB_Ptr->VDB_ClipDown-1);
y2=max(y2,Global_VDB_Ptr->VDB_ClipUp);
y2=min(y2,Global_VDB_Ptr->VDB_ClipDown-1);
if( abs( x2 - x1 ) < abs( y2 - y1 ) ) {
if( y2 < y1 ) {
w = y1;
y1 = y2;
y2 = w;
w = x1;
x1 = x2;
x2 = w;
}
dire = x1 < x2 ? 1 : -1;
gosa = abs( x2 - x1 );
hani = y2 - y1;
tame = hani / 2;
x = x1;
for( y = y1; y <= y2; y++ ) {
sbufferptr =
ScreenBuffer +
(y * BackBufferPitch) + x;
*sbufferptr = colour;
tame += gosa;
if( tame > hani ) {
x += dire;
tame -= hani;
}
}
} else {
if( x2 < x1 ) {
w = x1;
x1 = x2;
x2 = w;
w = y1;
y1 = y2;
y2 = w;
}
dire = y1 < y2 ? 1 : -1;
gosa = abs( y2 - y1 );
hani = x2 - x1;
tame = hani / 2;
y = y1;
for( x = x1; x <= x2; x++ ) {
sbufferptr =
ScreenBuffer +
(y * BackBufferPitch) + x;
*sbufferptr = colour;
tame += gosa;
if( tame > hani ) {
y += dire;
tame -= hani;
}
}
}
}
/*
Scan Convert and Draw I_GouraudPolygon
*/
void Draw_Item_GouraudPolygon(int *itemptr)
{
if (ScanDrawMode == ScanDrawDirectDraw)
{
KDraw_Item_GouraudPolygon(itemptr);
}
}
void Draw_Item_2dTexturePolygon(int *itemptr)
{
if (ScanDrawMode == ScanDrawDirectDraw)
{
KDraw_Item_2dTexturePolygon(itemptr);
}
}
void Draw_Item_Gouraud2dTexturePolygon(int *itemptr)
{
if (ScanDrawMode == ScanDrawDirectDraw)
{
KDraw_Item_Gouraud2dTexturePolygon(itemptr);
}
}
void Draw_Item_Gouraud3dTexturePolygon(int *itemptr)
{
if (ScanDrawMode == ScanDrawDirectDraw)
{
KDraw_Item_Gouraud3dTexturePolygon(itemptr);
}
}
void Draw_Item_ZB_Gouraud3dTexturePolygon(int *itemptr)
{
}
void Draw_Item_ZB_GouraudPolygon(int *itemptr)
{
}
void Draw_Item_ZB_2dTexturePolygon(int *itemptr)
{
}
void Draw_Item_ZB_Gouraud2dTexturePolygon(int *itemptr)
{
}
void Draw_Item_ZB_3dTexturedPolygon(int *itemptr)
{
}

File diff suppressed because it is too large Load diff

View file

@ -1,55 +0,0 @@
/* If this define is set to a non-zero value then the new scandraws will be used */
#define KRENDER_ON 1
/* prototypes of the replacement scandraw functions */
extern void KR_ScanDraw_Item_2dTexturePolygon_VideoModeType_8(int *itemptr);
extern void KR_ScanDraw_Item_Gouraud2dTexturePolygon_VideoModeType_8(int *itemptr);
extern void KR_ScanDraw_Item_Gouraud3dTexturePolygon_Linear_S_VideoModeType_8(int *itemptr);
extern void MotionTrackerRotateBlit(void);
extern void MotionTrackerRotateBlit8(void);
/*KJL*****************************************************
* Palette fading; a value of 65536 corresponds to normal *
* palette, 0 is completely other (eg. all white). *
*****************************************************KJL*/
extern void SetPaletteFadeLevel(int fadeLevel);
extern void FadeBetweenPalettes(unsigned char *palPtr, int fadeLevel);
extern void FadePaletteToWhite(unsigned char *palPtr,int fadeLevel);
/*KJL*********************************************
* Fill the screen with black & flip then repeat. *
*********************************************KJL*/
extern void BlankScreen(void);
/* KJL 16:06:24 04/04/97 - To choose between laced and full screen modes */
extern int KRenderDrawMode;
extern void KDraw_Item_GouraudPolygon(int *itemptr);
extern void KDraw_Item_2dTexturePolygon(int *itemptr);
extern void KDraw_Item_Gouraud2dTexturePolygon(int *itemptr);
extern void KDraw_Item_Gouraud3dTexturePolygon(int *itemptr);
extern void MakeViewingWindowSmaller(void);
extern void MakeViewingWindowLarger(void);
/* routines to draw a star filled sky */
extern void CreateStarArray(void);
extern void DrawStarfilledSky(void);

View file

@ -1,84 +0,0 @@
#include "Chunk.hpp"
#define VECTOR VECTORCH
struct ChunkMapBlock
{
char TemplateName[20];
char TemplateNotes[100];
int MapType;
int MapShape;
int MapFlags;
int MapFlags2;
int MapFlags3;
int MapCType;
int MapCGameType;
int MapCStrategyS;
int MapCStrategyL;
int MapInteriorType;
int MapLightType;
int MapMass;
VECTOR MapNewtonV;
VECTOR MapOrigin;
int MapViewType;
int MapVDBData;
int SimShapeList;
};
class Map_Block_Chunk : public Chunk
{
public:
virtual size_t size_chunk()
{
return (chunk_size=216);
}
virtual BOOL output_chunk (HANDLE &);
virtual void fill_data_block (char * data_start);
ChunkMapBlock map_data;
friend class Object_Project_Data_Chunk;
Map_Block_Chunk (Object_Project_Data_Chunk * parent)
:Chunk(parent,"MAPBLOCK")
{}
private:
//constructor from buffer
Map_Block_Chunk (Object_Project_Data_Chunk * parent,const char* data);
};
struct ChunkStrategy
{
char StrategyName[20];
char StrategyNotes[100];
int Strategy;
};
class Strategy_Chunk : public Chunk
{
public :
virtual size_t size_chunk()
{
return (chunk_size=136);
}
virtual BOOL output_chunk (HANDLE &);
virtual void fill_data_block (char * data_start);
ChunkStrategy strategy_data;
friend class Object_Project_Data_Chunk;
Strategy_Chunk(Object_Project_Data_Chunk *parent)
:Chunk(parent,"STRATEGY")
{}
private:
//constructor from buffer
Strategy_Chunk (Object_Project_Data_Chunk * parent,const char* data);
};

View file

@ -13,7 +13,6 @@
#if SupportWindows95
#include "krender.h" /* KJL 10:48:25 02/05/97 */
#include "kzsort.h"
#include "kshape.h"
#endif

View file

@ -1,40 +0,0 @@
//-------------------------------------------------------------------
// DESCRIPTION: SMSOPT.H - Options for SMS compilation
//
// AUTHOR: Mark Tolley
//
// HISTORY: Created 19th Sept 1996
//
//-------------------------------------------------------------------
// Incorporated into sndmanag.h and xxxxxsnd.h
#ifndef SMSOPT_H
#define SMSOPT_H
// #DEFINES
// General switches
#define SOUND_ON 0 // Compile sound commands in main game code
#define SOUND_3D 1 // Compile 3D sound functions
// (NB switching this off makes SMS independent of 3DC)
// Platform switches - ONLY ONE OF THESE SHOULD BE ON!!
#define SMS_SATURN 0 // Compile SMS for Saturn
#define SMS_PSX 0 // Compile SMS for PSX
#define SMS_PCDOS 0 // Compile SMS for PC-DOS
#define SMS_WIN32 1 // Compile SMS for PC-Win95
// Sound source switches
#define MIDI_ON 1 // Compile MIDI-specific code
#define DIGI_ON 1 // Compile WAV-specific code
#define CDDA_ON 1 // Compile CDDA-specific code
// Any other sound-specific compiler switches
#define SMS_FORCE_PENTIUM_TO_DOS_QUALITY 0 // Forces Pentium to use
// DOS quality sound. May help to speed things
// up... NB 3D SOUND WON'T WORK PROPERLY
#define SMS_TIMER 1 // Implement timing for ONEHI. Relies on NormalFrameTime
#endif // SMSOPT_H
// END OF FILE