Commit graph

177 commits

Author SHA1 Message Date
Timothee 'TTimo' Besset
c9fce466d1 Upgrade Windows project files to 2019 2022-11-24 18:19:08 -06:00
Thomas Debesse
8aeff6b09a Do not do using namespace std to avoid type conflict
The STL now defines `std::byte` so doing `using namespace std`
will conflict will custom definition of `byte`, which this
legacy code is full of.

It looks like NetRadiant went the route of making explicit
usage of `std::` prefixed types and did not renamed the
custom definition of byte, so doing the same reduces diff
noise between the two trees.

This also makes the code future proof if the STL decides
to define some other types with common name.

This patches replaces all usages of `map`, `pair` and
`vector` with `std::map`, `std::pair` and `std::vector`
and remove the `using namespace std` line in `stl_check.h`.

```
libs/mathlib.h:132:44: error: reference to ‘byte’ is ambiguous
  132 | void NormalToLatLong( const vec3_t normal, byte bytes[2] );
      |                                            ^~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:61,
                 from /usr/include/c++/11/bits/char_traits.h:39,
                 from /usr/include/c++/11/ios:40,
                 from /usr/include/c++/11/ostream:38,
                 from /usr/include/c++/11/iostream:39,
                 from libs/missing.h:76,
                 from radiant/qe3.h:40,
                 from radiant/stdafx.h:39,
                 from radiant/bp_dlg.cpp:28:
/usr/include/c++/11/bits/cpp_type_traits.h:404:30: note: candidates are: ‘enum class std::byte’
  404 |   enum class byte : unsigned char;
      |                              ^~~~
```
2022-07-14 17:18:51 +02:00
Jay Dolan
fcf9d433b1 Introduce idTech2 material filters for Quake2 and Quetoo, introduce sky filter as well. 2020-11-10 12:29:07 -05:00
Jay Dolan
0f6034a0af Hurr empty the texture dropdown like the Q3 surface inspector does. 2018-03-18 15:11:17 -04:00
Jay Dolan
54f4d2b1f5 Use the configured texture scale as default for SnapToGrid. 2018-03-16 15:12:30 -04:00
Jay Dolan
3b8e83fb80 Set increments on the surface inspector step spinners. This makes these far more useful. 2018-03-16 15:12:03 -04:00
Jay Dolan
36bd918baf Copy the Q3 surface inspector's increments setup, and improve it to set increments on the step spinners. 2018-03-16 15:11:22 -04:00
Jay Dolan
90967079d7 Fix copypasta bug in idtech2 surface in spector scale increments 2018-03-16 14:57:32 -04:00
Jay Dolan
a2082a31bc Provide better defaults for increments. 2018-03-16 14:26:37 -04:00
Jay Dolan
2daf5a71eb Fix debug copy-pasta. 2018-03-16 14:26:08 -04:00
Jay Dolan
f1e2b7862b #TTimo/GtkRadiant/issues/608 Populate the texture name if only one texture is used in faces list. 2018-03-16 13:34:47 -04:00
Jay Dolan
8a4815d63b Remove unnecessary cast in PicoLoadFunc 2018-02-02 07:14:31 -05:00
Jay Dolan
c655d234d5 Fix OS X compile error for pico function prototype. 2018-02-01 12:01:50 -05:00
Timothee "TTimo" Besset
a2bdc7ca43
Merge pull request #563 from illwieckz/emptydir
do not list empty shader/texture directories
2018-01-27 14:24:08 -06:00
Timothee Besset
4ace24c00a remove QL encryption, add Q1Pack 2018-01-21 15:41:45 -06:00
Timothee "TTimo" Besset
c92429820b
Merge pull request #533 from illwieckz/pk3dir
pk3dir support (+pk4dir/dpkdir support)
2018-01-21 15:08:15 -06:00
Timothee Besset
08b44c433d Disable the deprecated functions warning 2018-01-21 14:59:29 -06:00
Timothee Besset
e08d6b6429 Visual Studio 2017. Fixed q3map2_urt 64 bit compilation also. 2018-01-21 14:47:06 -06:00
Thomas Debesse
ba300b1751 [radiant] allow to load pk4/dpk vfs in addition to pk3 vfs
- load also pk4/pk4dir and dpk/dpkdir
- dpk/dpkdir are not versionned yet
2018-01-07 21:09:52 +01:00
Thomas Debesse
721da8cdb1 [radiant] pk3dir support
- load every pk3dir as VFS
- increase VFS_MAXDIR
2018-01-07 21:09:52 +01:00
Thomas Debesse
e9e095b4c6 empty shader dir checking: some useful comments 2017-09-02 05:09:18 +02:00
Thomas Debesse
a9583eb1e6 also check against shader script file name when looking for non-empty shader dir
Greeting Pan
2017-09-02 04:42:39 +02:00
Thomas Debesse
c832a55910 avoid “unused” warning because usage is in debug code only 2017-09-02 04:38:00 +02:00
Thomas Debesse
e179e2b4a4 more strict shader dir checking 2017-09-02 04:38:00 +02:00
Thomas Debesse
41ed9c2ce5 do not list empty shader dir 2017-09-02 04:37:58 +02:00
Thomas Debesse
a3773852a4 preproc: add a FreeBSD condition everytime there is Linux or MacOS 2017-08-30 14:20:01 +00:00
Pan7
5f7efeecc8 Fix warning using floating point absolute value function fabs 2017-08-20 00:11:53 +02:00
Pan7
902e311149 Fix Surface Inspector texture name 2017-08-10 21:42:09 +02:00
Timothee "TTimo" Besset
da829ed928 Merge pull request #520 from Pan7/fixPCrash
Fix crash with too many patch planes
2017-08-05 11:28:09 -05:00
Pan7
e994140c51 Fix warning comparison of unsigned expression < 0 is always false 2017-07-09 16:53:05 +02:00
Pan7
d5d59441db Fix crash with too many patch planes 2017-07-03 16:32:05 +02:00
Pan7
1f40723a78 Replace deprecated gtk_menu_append 2017-05-16 12:25:41 +02:00
Pan7
31c24a875f Make menus more consistent with ellipses 2017-05-10 23:26:29 +02:00
TTimo
e4a1a3c850 Merge branch 'InvalidMiscModelFix' of https://github.com/Mateos81/GtkRadiant into Mateos81-InvalidMiscModelFix 2017-05-07 16:11:11 -05:00
Christophe Mateos
fba3bd3f4d Merge remote-tracking branch 'refs/remotes/TTimo/master' into InvalidMiscModelFix
# Conflicts:
#	plugins/entity/entity_entitymodel.h
2017-05-04 21:27:04 +02:00
Timothee "TTimo" Besset
0f345cf728 Merge pull request #474 from Pan7/FixAbsWarn
Fix abs warning
2017-04-28 07:16:05 -05:00
Pan7
a7f7a59422 Fix abs warning 2017-04-28 13:59:41 +02:00
Pan7
3f87271ea6 Fix extraneous parentheses warning 2017-04-27 21:03:13 +02:00
Pan7
0402765f7b Replace deprecated gtk combo 2017-04-24 16:32:26 +02:00
Timothee "TTimo" Besset
0a965b80d6 Merge pull request #447 from Pan7/plugwidget
Add plugin parent widget
2017-04-22 12:50:28 -05:00
Timothee Besset
0a03a455c3 fix win32 msvc build - this should be tested more often, really 2017-04-16 21:28:07 -05:00
Timothee Besset
3de5e43b8f Merge branch 'surfmainwin' of git://github.com/Pan7/GtkRadiant into Pan7-surfmainwin 2017-04-15 13:17:56 -05:00
Pan7
c34edd31b9 Add plugin parent widget 2017-04-04 22:54:03 +02:00
Pan7
cc75513546 Main app window for surface plugins 2017-03-31 13:56:34 +02:00
Pan7
aeaa370f09 Left align for the text of Labels 2017-03-28 09:29:11 +02:00
Pan7
e9aa6a836f More Dialog improvements 2017-03-26 17:09:18 +02:00
Pan7
c2e44c532a Dialog improvements 2017-03-23 09:37:50 +01:00
Pan7
626c2ef7cd More gtk i81n 2017-03-16 12:40:56 +01:00
Pan7
bdb1c3abaa Replacing deprecated GTK functions 2017-03-15 11:58:36 +01:00
Timothee "TTimo" Besset
044c0b6156 Merge pull request #430 from Pan7/axialcrash
Fix axial button click crash
2017-03-12 12:43:03 -05:00