Skip to content

Commit e5aa5aa

Browse files
committed
implement shaders rewrites and dx9 shader compilation script
- "build dx9 shaders.bat" compiles the .fx files and populates the bytecode into headers - include xxd and sed from w64devkit - rewrite weather, fog, and particle shaders - include d3d9 debug info in debug builds
1 parent 1af2f98 commit e5aa5aa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2535
-365
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Project_Cartographer.vcxproj.user
1111
*.log
1212
*.idb
1313
*.java
14-
!xlive/libprotobuf.lib
15-
!xlive/libMinHook.x86.lib
1614
*.suo
1715
*.opendb
1816
*.db
@@ -30,6 +28,7 @@ xliveless.v12.suo
3028
*.opensdf
3129
*.user
3230
*.ipch
31+
*.pso
3332
version_git.h
3433

3534
JSON/
File renamed without changes.
+302
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,302 @@
1+
MinGW-w64 runtime licensing
2+
***************************
3+
4+
This program or library was built using MinGW-w64 and statically
5+
linked against the MinGW-w64 runtime. Some parts of the runtime
6+
are under licenses which require that the copyright and license
7+
notices are included when distributing the code in binary form.
8+
These notices are listed below.
9+
10+
11+
========================
12+
Overall copyright notice
13+
========================
14+
15+
Copyright (c) 2009, 2010, 2011, 2012, 2013 by the mingw-w64 project
16+
17+
This license has been certified as open source. It has also been designated
18+
as GPL compatible by the Free Software Foundation (FSF).
19+
20+
Redistribution and use in source and binary forms, with or without
21+
modification, are permitted provided that the following conditions are met:
22+
23+
1. Redistributions in source code must retain the accompanying copyright
24+
notice, this list of conditions, and the following disclaimer.
25+
2. Redistributions in binary form must reproduce the accompanying
26+
copyright notice, this list of conditions, and the following disclaimer
27+
in the documentation and/or other materials provided with the
28+
distribution.
29+
3. Names of the copyright holders must not be used to endorse or promote
30+
products derived from this software without prior written permission
31+
from the copyright holders.
32+
4. The right to distribute this software or to use it for any purpose does
33+
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
34+
the copyright holders. Use of them is covered by separate agreement
35+
with the copyright holders.
36+
5. If any files are modified, you must cause the modified files to carry
37+
prominent notices stating that you changed the files and the date of
38+
any change.
39+
40+
Disclaimer
41+
42+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
43+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
44+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
45+
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
46+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
48+
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
49+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
50+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
51+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
52+
53+
========================================
54+
getopt, getopt_long, and getop_long_only
55+
========================================
56+
57+
Copyright (c) 2002 Todd C. Miller <[email protected]>
58+
59+
Permission to use, copy, modify, and distribute this software for any
60+
purpose with or without fee is hereby granted, provided that the above
61+
copyright notice and this permission notice appear in all copies.
62+
63+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
64+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
65+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
66+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
67+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
68+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
69+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
70+
71+
Sponsored in part by the Defense Advanced Research Projects
72+
Agency (DARPA) and Air Force Research Laboratory, Air Force
73+
Materiel Command, USAF, under agreement number F39502-99-1-0512.
74+
75+
* * * * * * *
76+
77+
Copyright (c) 2000 The NetBSD Foundation, Inc.
78+
All rights reserved.
79+
80+
This code is derived from software contributed to The NetBSD Foundation
81+
by Dieter Baron and Thomas Klausner.
82+
83+
Redistribution and use in source and binary forms, with or without
84+
modification, are permitted provided that the following conditions
85+
are met:
86+
1. Redistributions of source code must retain the above copyright
87+
notice, this list of conditions and the following disclaimer.
88+
2. Redistributions in binary form must reproduce the above copyright
89+
notice, this list of conditions and the following disclaimer in the
90+
documentation and/or other materials provided with the distribution.
91+
92+
THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
93+
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
94+
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
95+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
96+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
97+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
98+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
99+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
100+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
101+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
102+
POSSIBILITY OF SUCH DAMAGE.
103+
104+
105+
===============================================================
106+
gdtoa: Converting between IEEE floating point numbers and ASCII
107+
===============================================================
108+
109+
The author of this software is David M. Gay.
110+
111+
Copyright (C) 1997, 1998, 1999, 2000, 2001 by Lucent Technologies
112+
All Rights Reserved
113+
114+
Permission to use, copy, modify, and distribute this software and
115+
its documentation for any purpose and without fee is hereby
116+
granted, provided that the above copyright notice appear in all
117+
copies and that both that the copyright notice and this
118+
permission notice and warranty disclaimer appear in supporting
119+
documentation, and that the name of Lucent or any of its entities
120+
not be used in advertising or publicity pertaining to
121+
distribution of the software without specific, written prior
122+
permission.
123+
124+
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
125+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
126+
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
127+
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
128+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
129+
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
130+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
131+
THIS SOFTWARE.
132+
133+
* * * * * * *
134+
135+
The author of this software is David M. Gay.
136+
137+
Copyright (C) 2005 by David M. Gay
138+
All Rights Reserved
139+
140+
Permission to use, copy, modify, and distribute this software and its
141+
documentation for any purpose and without fee is hereby granted,
142+
provided that the above copyright notice appear in all copies and that
143+
both that the copyright notice and this permission notice and warranty
144+
disclaimer appear in supporting documentation, and that the name of
145+
the author or any of his current or former employers not be used in
146+
advertising or publicity pertaining to distribution of the software
147+
without specific, written prior permission.
148+
149+
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
150+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
151+
NO EVENT SHALL THE AUTHOR OR ANY OF HIS CURRENT OR FORMER EMPLOYERS BE
152+
LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
153+
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
154+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
155+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
156+
SOFTWARE.
157+
158+
* * * * * * *
159+
160+
The author of this software is David M. Gay.
161+
162+
Copyright (C) 2004 by David M. Gay.
163+
All Rights Reserved
164+
Based on material in the rest of /netlib/fp/gdota.tar.gz,
165+
which is copyright (C) 1998, 2000 by Lucent Technologies.
166+
167+
Permission to use, copy, modify, and distribute this software and
168+
its documentation for any purpose and without fee is hereby
169+
granted, provided that the above copyright notice appear in all
170+
copies and that both that the copyright notice and this
171+
permission notice and warranty disclaimer appear in supporting
172+
documentation, and that the name of Lucent or any of its entities
173+
not be used in advertising or publicity pertaining to
174+
distribution of the software without specific, written prior
175+
permission.
176+
177+
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
178+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
179+
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
180+
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
181+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
182+
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
183+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
184+
THIS SOFTWARE.
185+
186+
187+
=========================
188+
Parts of the math library
189+
=========================
190+
191+
Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
192+
193+
Developed at SunSoft, a Sun Microsystems, Inc. business.
194+
Permission to use, copy, modify, and distribute this
195+
software is freely granted, provided that this notice
196+
is preserved.
197+
198+
* * * * * * *
199+
200+
Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
201+
202+
Developed at SunPro, a Sun Microsystems, Inc. business.
203+
Permission to use, copy, modify, and distribute this
204+
software is freely granted, provided that this notice
205+
is preserved.
206+
207+
* * * * * * *
208+
209+
FIXME: Cephes math lib
210+
Copyright (C) 1984-1998 Stephen L. Moshier
211+
212+
It sounds vague, but as to be found at
213+
<http://lists.debian.org/debian-legal/2004/12/msg00295.html>, it gives an
214+
impression that the author could be willing to give an explicit
215+
permission to distribute those files e.g. under a BSD style license. So
216+
probably there is no problem here, although it could be good to get a
217+
permission from the author and then add a license into the Cephes files
218+
in MinGW runtime. At least on follow-up it is marked that debian sees the
219+
version a-like BSD one. As MinGW.org (where those cephes parts are coming
220+
from) distributes them now over 6 years, it should be fine.
221+
222+
===================================
223+
Headers and IDLs imported from Wine
224+
===================================
225+
226+
Some header and IDL files were imported from the Wine project. These files
227+
are prominent maked in source. Their copyright belongs to contributors and
228+
they are distributed under LGPL license.
229+
230+
Disclaimer
231+
232+
This library is free software; you can redistribute it and/or
233+
modify it under the terms of the GNU Lesser General Public
234+
License as published by the Free Software Foundation; either
235+
version 2.1 of the License, or (at your option) any later version.
236+
237+
This library is distributed in the hope that it will be useful,
238+
but WITHOUT ANY WARRANTY; without even the implied warranty of
239+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
240+
Lesser General Public License for more details.
241+
242+
===========
243+
winpthreads
244+
===========
245+
246+
Copyright (c) 2011 mingw-w64 project
247+
248+
Permission is hereby granted, free of charge, to any person obtaining a
249+
copy of this software and associated documentation files (the "Software"),
250+
to deal in the Software without restriction, including without limitation
251+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
252+
and/or sell copies of the Software, and to permit persons to whom the
253+
Software is furnished to do so, subject to the following conditions:
254+
255+
The above copyright notice and this permission notice shall be included in
256+
all copies or substantial portions of the Software.
257+
258+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
259+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
260+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
261+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
262+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
263+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
264+
DEALINGS IN THE SOFTWARE.
265+
266+
267+
/*
268+
* Parts of this library are derived by:
269+
*
270+
* Posix Threads library for Microsoft Windows
271+
*
272+
* Use at own risk, there is no implied warranty to this code.
273+
* It uses undocumented features of Microsoft Windows that can change
274+
* at any time in the future.
275+
*
276+
* (C) 2010 Lockless Inc.
277+
* All rights reserved.
278+
*
279+
* Redistribution and use in source and binary forms, with or without modification,
280+
* are permitted provided that the following conditions are met:
281+
*
282+
*
283+
* * Redistributions of source code must retain the above copyright notice,
284+
* this list of conditions and the following disclaimer.
285+
* * Redistributions in binary form must reproduce the above copyright notice,
286+
* this list of conditions and the following disclaimer in the documentation
287+
* and/or other materials provided with the distribution.
288+
* * Neither the name of Lockless Inc. nor the names of its contributors may be
289+
* used to endorse or promote products derived from this software without
290+
* specific prior written permission.
291+
*
292+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AN
293+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
294+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
295+
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
296+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
297+
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
298+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
299+
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
300+
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
301+
* OF THE POSSIBILITY OF SUCH DAMAGE.
302+
*/

0 commit comments

Comments
 (0)