This repository was archived by the owner on Mar 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStdH.h
More file actions
41 lines (30 loc) · 1.33 KB
/
StdH.h
File metadata and controls
41 lines (30 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Copyright (c) 2002-2012 Croteam Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as published by
the Free Software Foundation
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.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
// [Cecil] Include the core library and patches
#include <CoreLib/Core.h>
#include <EnginePatches/Patches.h>
#include <Engine/Graphics/Shader.h>
// [Cecil] SKA models aren't usable prior to 1.07
#if SE1_VER < SE1_107
#error Shaders cannot be built for Serious Engine versions before 1.07!
#endif
// [Cecil] Common includes
#include "Common.h"
#if _PATCHCONFIG_ENGINEPATCHES && _PATCHCONFIG_FIX_SKA
// [Cecil] Replace engine methods with patches
#include <EnginePatches/Patches/Ska.h>
// [Cecil] TODO: Make SKA patches work in Debug
#ifdef NDEBUG
#define shaDoFogPass P_shaDoFogPass
#define shaSetTextureWrapping P_shaSetTextureWrapping
#endif
#endif // _PATCHCONFIG_ENGINEPATCHES