mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
commoon: engine: Fix not including all dependencies for headers. (Just some used in ref)
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#ifndef BEAMDEF_H
|
||||
#define BEAMDEF_H
|
||||
|
||||
#include "xash3d_types.h"
|
||||
|
||||
#define FBEAM_STARTENTITY 0x00000001
|
||||
#define FBEAM_ENDENTITY 0x00000002
|
||||
#define FBEAM_FADEIN 0x00000004
|
||||
|
||||
@@ -16,6 +16,7 @@ GNU General Public License for more details.
|
||||
#define BSPFILE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "xash3d_types.h"
|
||||
|
||||
/*
|
||||
==============================================================================
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#ifndef CL_ENTITY_H
|
||||
#define CL_ENTITY_H
|
||||
|
||||
#include "const.h"
|
||||
|
||||
typedef struct efrag_s
|
||||
{
|
||||
struct mleaf_s *leaf;
|
||||
|
||||
@@ -1,4 +1,23 @@
|
||||
#pragma once
|
||||
/*
|
||||
com_image.h - image definitions common between client and server
|
||||
Copyright (C) 2007 Uncle Mike
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef COM_IMAGE_H
|
||||
#define COM_IMAGE_H
|
||||
|
||||
#include "xash3d_types.h"
|
||||
|
||||
/*
|
||||
========================================================================
|
||||
|
||||
@@ -130,3 +149,4 @@ typedef struct rgbdata_s
|
||||
size_t size; // for bounds checking
|
||||
} rgbdata_t;
|
||||
|
||||
#endif//COM_IMAGE_H
|
||||
|
||||
@@ -16,7 +16,7 @@ GNU General Public License for more details.
|
||||
#ifndef COM_MODEL_H
|
||||
#define COM_MODEL_H
|
||||
|
||||
#include "xash3d_types.h"
|
||||
#include "const.h"
|
||||
#include "bspfile.h" // we need some declarations from it
|
||||
|
||||
/*
|
||||
|
||||
@@ -723,8 +723,6 @@ enum
|
||||
typedef int func_t;
|
||||
typedef int string_t;
|
||||
|
||||
typedef unsigned short word;
|
||||
|
||||
#include "xash3d_types.h"
|
||||
|
||||
typedef struct
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#ifndef DLIGHT_H
|
||||
#define DLIGHT_H
|
||||
|
||||
#include "const.h"
|
||||
|
||||
typedef struct dlight_s
|
||||
{
|
||||
vec3_t origin;
|
||||
|
||||
@@ -16,6 +16,8 @@ GNU General Public License for more details.
|
||||
#ifndef LIGHTSTYLE_H
|
||||
#define LIGHTSTYLE_H
|
||||
|
||||
#include "xash3d_types.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char pattern[256];
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#ifndef PARTICLEDEF_H
|
||||
#define PARTICLEDEF_H
|
||||
|
||||
#include "xash3d_types.h"
|
||||
|
||||
typedef enum
|
||||
{
|
||||
pt_static,
|
||||
|
||||
@@ -17,22 +17,22 @@
|
||||
#define R_EFX_H
|
||||
|
||||
// particle_t
|
||||
#if !defined( PARTICLEDEFH )
|
||||
#if !defined( PARTICLEDEF_H )
|
||||
#include "particledef.h"
|
||||
#endif
|
||||
|
||||
// BEAM
|
||||
#if !defined( BEAMDEFH )
|
||||
#if !defined( BEAMDEF_H )
|
||||
#include "beamdef.h"
|
||||
#endif
|
||||
|
||||
// dlight_t
|
||||
#if !defined ( DLIGHTH )
|
||||
#if !defined ( DLIGHT_H )
|
||||
#include "dlight.h"
|
||||
#endif
|
||||
|
||||
// cl_entity_t
|
||||
#if !defined( CL_ENTITYH )
|
||||
#if !defined( CL_ENTITY_H )
|
||||
#include "cl_entity.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#ifndef REF_PARAMS_H
|
||||
#define REF_PARAMS_H
|
||||
|
||||
#include "xash3d_types.h"
|
||||
|
||||
typedef struct ref_params_s
|
||||
{
|
||||
// output
|
||||
|
||||
@@ -38,6 +38,7 @@ typedef byte rgb_t[3]; // unsigned byte colorpack
|
||||
typedef vec_t matrix3x4[3][4] MAYBE_ALIGNED( 16 );
|
||||
typedef vec_t matrix4x4[4][4] MAYBE_ALIGNED( 16 );
|
||||
typedef uint32_t poolhandle_t;
|
||||
typedef uint16_t word;
|
||||
typedef uint32_t dword;
|
||||
typedef char string[MAX_STRING];
|
||||
typedef off_t fs_offset_t;
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
#include "build.h"
|
||||
#include <stdint.h>
|
||||
#include "synctype.h"
|
||||
#include "xash3d_types.h"
|
||||
#include "com_model.h"
|
||||
|
||||
/*
|
||||
==============================================================================
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#define MAX_ENT_LEAFS_16 48
|
||||
|
||||
#include "progdefs.h"
|
||||
#include "const.h"
|
||||
|
||||
struct edict_s
|
||||
{
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#ifndef PROGDEFS_H
|
||||
#define PROGDEFS_H
|
||||
|
||||
#include "const.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
float time;
|
||||
|
||||
@@ -26,9 +26,9 @@ GNU General Public License for more details.
|
||||
#include "com_model.h"
|
||||
#include "studio.h"
|
||||
#include "r_efx.h"
|
||||
#include "com_image.h"
|
||||
#include "filesystem.h"
|
||||
#include "common/protocol.h"
|
||||
#include "cvardef.h"
|
||||
|
||||
// RefAPI changelog:
|
||||
// 1. Initial release
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "build.h"
|
||||
#include <stdint.h>
|
||||
#include "synctype.h"
|
||||
#include "xash3d_types.h"
|
||||
|
||||
/*
|
||||
==============================================================================
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#ifndef STUDIO_H
|
||||
#define STUDIO_H
|
||||
|
||||
#include "xash3d_types.h"
|
||||
|
||||
/*
|
||||
==============================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user