Make headers freestanding
This commit is contained in:
parent
9e1c33cca3
commit
8ed99faf5c
|
@ -19,10 +19,15 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _CLIPPER_H
|
||||
#define _CLIPPER_H
|
||||
|
||||
#include "pstypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct g3s_codes;
|
||||
struct g3s_point;
|
||||
|
||||
extern void free_temp_point(g3s_point *p);
|
||||
extern g3s_point **clip_polygon(g3s_point **src,g3s_point **dest,int *nv,g3s_codes *cc);
|
||||
extern void init_free_points(void);
|
||||
|
|
|
@ -21,6 +21,12 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
|
||||
#define MAX_POINTS_IN_POLY 100
|
||||
|
||||
#include "maths.h"
|
||||
|
||||
struct vms_vector;
|
||||
struct vms_matrix;
|
||||
struct g3s_point;
|
||||
|
||||
extern int Canvas_width,Canvas_height; //the actual width & height
|
||||
extern fix Canv_w2,Canv_h2; //fixed-point width,height/2
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include "segment.h"
|
||||
#include "editor/editor.h"
|
||||
|
||||
extern segment *Cursegp; // Pointer to current segment in the mine, the one to which things happen.
|
||||
#ifdef DXX_BUILD_DESCENT_II
|
||||
|
|
|
@ -24,6 +24,10 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct grs_canvas;
|
||||
struct editor_view;
|
||||
struct segment;
|
||||
|
||||
void meddraw_init_views( grs_canvas * canvas);
|
||||
void draw_world(grs_canvas *screen_canvas,editor_view *v,segment *mine_ptr,int depth);
|
||||
void find_segments(short x,short y,grs_canvas *screen_canvas,editor_view *v,segment *mine_ptr,int depth);
|
||||
|
|
|
@ -24,6 +24,9 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct segment;
|
||||
struct vms_matrix;
|
||||
|
||||
void GetMouseRotation( int idx, int idy, vms_matrix * RotMat );
|
||||
extern int Gameview_lockstep; //In medmisc.c
|
||||
int ToggleLockstep();
|
||||
|
|
|
@ -24,6 +24,8 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct vms_vector;
|
||||
|
||||
extern void sort_seg_list(int n_segs,short *segnumlist,vms_vector *pos);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -27,6 +27,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
struct d_event;
|
||||
struct vms_angvec;
|
||||
|
||||
int objpage_grab_current(int n);
|
||||
int objpage_goto_first();
|
||||
|
|
|
@ -24,6 +24,8 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct segment;
|
||||
|
||||
extern void assign_light_to_side(segment *sp, int sidenum);
|
||||
extern void assign_default_lighting_all(void);
|
||||
extern void stretch_uvs_from_curedge(segment *segp, int side);
|
||||
|
|
|
@ -21,6 +21,8 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _PALETTE_H
|
||||
#define _PALETTE_H
|
||||
|
||||
#include "pstypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -20,10 +20,14 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _PCX_H
|
||||
#define _PCX_H
|
||||
|
||||
#include "pstypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct grs_bitmap;
|
||||
|
||||
#define PCX_ERROR_NONE 0
|
||||
#define PCX_ERROR_OPENING 1
|
||||
#define PCX_ERROR_NO_HEADER 2
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
#ifndef _STRIO_H
|
||||
#define _STRIO_H
|
||||
|
||||
#include <physfs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -27,6 +27,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct grs_bitmap;
|
||||
struct grs_canvas;
|
||||
struct grs_font;
|
||||
struct window;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -20,6 +20,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _AUTOMAP_H
|
||||
#define _AUTOMAP_H
|
||||
|
||||
#include "pstypes.h"
|
||||
#include "segment.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -32,7 +35,9 @@ extern void automap_clear_visited();
|
|||
extern ubyte Automap_visited[MAX_SEGMENTS];
|
||||
|
||||
#if defined(DXX_BUILD_DESCENT_II)
|
||||
#include "object.h"
|
||||
struct object;
|
||||
struct vms_vector;
|
||||
|
||||
void DropBuddyMarker(object *objp);
|
||||
void InitMarkerInput();
|
||||
int MarkerInputMessage(int key);
|
||||
|
|
|
@ -21,10 +21,14 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _CONTROLS_H
|
||||
#define _CONTROLS_H
|
||||
|
||||
#include "maths.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct object;
|
||||
|
||||
void read_flying_controls( object * obj );
|
||||
|
||||
#if defined(DXX_BUILD_DESCENT_II)
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
#ifndef _ESCORT_H
|
||||
#define _ESCORT_H
|
||||
|
||||
#include "maths.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -21,10 +21,16 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _FIREBALL_H
|
||||
#define _FIREBALL_H
|
||||
|
||||
#include <physfs.h>
|
||||
#include "maths.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct object;
|
||||
struct vms_vector;
|
||||
|
||||
// explosion types
|
||||
#define ET_SPARKS 0 //little sparks, like when laser hits wall
|
||||
#define ET_MULTI_START 1 //first part of multi-part explosion
|
||||
|
|
|
@ -21,6 +21,10 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _GAMEMINE_H
|
||||
#define _GAMEMINE_H
|
||||
|
||||
#include <physfs.h>
|
||||
#include "maths.h"
|
||||
#include "vecmat.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -20,6 +20,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _GAMEPAL_H
|
||||
#define _GAMEPAL_H
|
||||
|
||||
#include "inferno.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -21,6 +21,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _GAMESAVE_H
|
||||
#define _GAMESAVE_H
|
||||
|
||||
#include "pstypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -25,6 +25,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct object;
|
||||
|
||||
#define HOSTAGE_SIZE i2f(5) // 3d size of a hostage
|
||||
|
||||
#define MAX_HOSTAGE_TYPES 1 //only one hostage bitmap
|
||||
|
|
|
@ -21,6 +21,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _KMATRIX_H
|
||||
#define _KMATRIX_H
|
||||
|
||||
#include "maths.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -20,6 +20,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _LASER_H
|
||||
#define _LASER_H
|
||||
|
||||
#include "maths.h"
|
||||
#include "vecmat.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -21,10 +21,16 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _LIGHTING_H
|
||||
#define _LIGHTING_H
|
||||
|
||||
#include "maths.h"
|
||||
#include "segment.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct g3s_lrgb;
|
||||
struct object;
|
||||
|
||||
#define MAX_LIGHT 0x10000 // max value
|
||||
|
||||
#define MIN_LIGHT_DIST (F1_0*4)
|
||||
|
|
|
@ -21,10 +21,15 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _MULTIBOT_H
|
||||
#define _MULTIBOT_H
|
||||
|
||||
#include "pstypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct object;
|
||||
struct vms_vector;
|
||||
|
||||
#if defined(DXX_BUILD_DESCENT_I)
|
||||
#define MAX_ROBOTS_CONTROLLED 3
|
||||
#elif defined(DXX_BUILD_DESCENT_II)
|
||||
|
|
|
@ -25,6 +25,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#include "sounds.h"
|
||||
#include "hash.h"
|
||||
#include "inferno.h"
|
||||
#include "gr.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
@ -21,7 +21,9 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _SEGPOINTS_H
|
||||
#define _SEGPOINTS_H
|
||||
|
||||
#include "3d.h"
|
||||
#include "segment.h"
|
||||
|
||||
struct g3s_point;
|
||||
|
||||
extern g3s_point Segment_points[MAX_VERTICES];
|
||||
|
||||
|
|
|
@ -25,6 +25,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct vms_vector;
|
||||
|
||||
void free_light_table();
|
||||
void free_height_array();
|
||||
void load_terrain(const char *filename);
|
||||
|
|
|
@ -25,6 +25,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct grs_bitmap;
|
||||
|
||||
int texmerge_init(int num_cached_textures);
|
||||
grs_bitmap *texmerge_get_cached_bitmap(int tmap_bottom, int tmap_top);
|
||||
void texmerge_close();
|
||||
|
|
|
@ -20,6 +20,8 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
#ifndef _TITLES_H
|
||||
#define _TITLES_H
|
||||
|
||||
#include "pstypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -20,10 +20,15 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|||
|
||||
// Local include file for texture map library.
|
||||
|
||||
#include "maths.h"
|
||||
#include "pstypes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct g3ds_tmap;
|
||||
|
||||
extern int prevmod(int val,int modulus);
|
||||
extern int succmod(int val,int modulus);
|
||||
extern void texture_map_flat(g3ds_tmap *t,int color);
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#ifndef _CUSTOM_H
|
||||
#define _CUSTOM_H
|
||||
|
||||
#include "pstypes.h"
|
||||
#include "piggy.h"
|
||||
|
||||
/* from piggy.c */
|
||||
#define DBM_FLAG_LARGE 128 // Flags added onto the flags struct in b
|
||||
#define DBM_FLAG_ABM 64
|
||||
|
|
Loading…
Reference in New Issue