Garux
d897de13d5
refactor scripts parsing
2021-10-07 18:58:00 +03:00
Garux
71c72527af
refactor tokenizing
2021-10-06 23:37:12 +03:00
Garux
9660fbb6f1
* unlimit MAX_IMAGES
2021-10-06 10:51:32 +03:00
Garux
44ced506e3
autopacker: use LoadBSPFilePartially
...
LoadBSPFilePartially: support RBSP
2021-10-05 13:44:30 +03:00
Garux
1fe4ab8bd8
remove #define NAME_MAX 255
...
check filename_inzip overflow
2021-10-04 23:06:16 +03:00
Garux
3960adf898
remove ExtractFilePath() ExtractFileBase() ExtractFileExtension()
2021-10-04 11:34:15 +03:00
Garux
b6d60fb17c
add and use path_extension_is()
2021-10-03 17:13:12 +03:00
Garux
a0e79e8ecd
refactor autopk3
...
unlimit list sizes
* -pk3, -repack: support multiple bsp files input by command line
2021-10-02 19:13:28 +03:00
Garux
efa324ebe6
remove unused stuff
2021-09-27 15:12:53 +03:00
Garux
02a3b9c026
use ostream_write( CopiedString )
2021-09-18 15:30:11 +03:00
Garux
b78513f9f8
refactor InitPaths()
...
get rid of MAX_OS_PATH
2021-09-17 19:50:36 +03:00
Garux
97ad9bf5c5
separate path manipulating functions
...
unlimit VFS_MAXDIRS
2021-09-15 08:07:05 +03:00
Garux
e1186dd734
subdivide files
2021-09-13 22:29:44 +03:00
Garux
5c5f698c28
use standard [[ noreturn ]] attribute
...
add ENSURE macro
2021-09-13 18:22:44 +03:00
Garux
160c1d33db
remove -texrange business (assuming it's not relevant for decades)
...
optimize -meta (shave off 1/3 in worst case)
2021-08-27 12:18:56 +03:00
Garux
1372ea440b
more move semantics
2021-08-15 15:15:30 +03:00
Garux
bb1931b745
* sort pk3s, so content of later (zzz) overrides earlier, like in radiant and engine
...
* fix strong performance penalty with large amount of files in pk3s
store pak file path once per pk3, not per each file inside
2021-08-13 03:20:07 +03:00
Garux
4beae3d362
* support entries with .shader extension in shaderlist.txt
...
vfsListShaderFiles (empty shaderlist = load all shaders, -pk3, -repack):
only list pk3 .shaders from scripts/ folder
support non scripts/ shaderPath (e.g. jka)
unlimit shader files count
case insensitive shaderlist entries, so duplicates aren't loaded twice
2021-08-12 11:23:59 +03:00
Garux
aa5de2fee9
wrap winding_next logic
...
prevent crash in AddWindingToConvexHull()
2021-08-11 18:18:38 +03:00
Garux
f492ab27eb
more c++ in q3map2
2021-08-10 22:41:43 +03:00
Garux
f49639c697
std::list<light_t> lights
2021-08-03 07:28:53 +03:00
Garux
c3041cc2f8
using winding_t = std::vector<Vector3>
2021-07-31 18:28:38 +03:00
Garux
dbfb22e273
using winding_accu_t = std::vector<DoubleVector3>;
2021-07-30 12:20:56 +03:00
Garux
89b7bcdf53
* read .map brush plane points and store brush planes for windings calculation in double precision (fixes cracks between brush faces)
2021-07-27 20:04:35 +03:00
Garux
44907db895
Add KTX and ETC1 texture support by @Triang3l
...
https://github.com/xonotic/netradiant/pull/1
https://gitlab.com/xonotic/netradiant/-/issues/5
This pull request adds support for Khronos Textures to NetRadiant and Q3Map2, with OpenGL ES 2.0 formats, Ericsson Texture Compression version 1, and BGR/BGRA.
The patent-free Ericsson Texture Compression format will be used in the next version of Warsow to significantly reduce VRAM usage on mobile GPUs and the integrated GPU of Intel Broadwell.
2021-07-18 16:18:49 +03:00
Garux
4697d7940c
fix new gcc build error: ‘N’ is not a constant expression, while using offsetof
2021-06-22 20:49:42 +03:00
Garux
6c00419653
fix spelling
2021-05-24 20:23:09 +03:00
Garux
2222100316
indent classes, align by spaces
2021-03-24 00:25:15 +03:00
Garux
1144be0881
add BasicVector3 uniform constructor
2021-03-11 19:14:07 +03:00
Garux
98f9023cdc
minor tweaks
2021-03-11 10:57:17 +03:00
Garux
52ef1c838a
make sure to do VectorNormalize in double
2021-03-08 15:36:46 +03:00
Garux
293fab0ffb
manage color-to-byte conversions
2021-03-05 13:37:56 +03:00
Garux
bee749118f
unify WindingExtendBounds logic
2021-03-05 06:15:48 +03:00
Garux
902fb46938
random tweaks
2021-03-04 16:11:00 +03:00
Garux
39f5a2d060
use MinMax functions instead of raw math
2021-03-03 07:01:28 +03:00
Garux
f9a424b6c8
more c++
2021-03-02 22:01:09 +03:00
Garux
9446aeca8e
fix introduced problems
2021-02-28 12:04:52 +03:00
Garux
9857bb955b
more c++ math
2021-02-26 01:10:51 +03:00
Garux
4ce944444d
rewrite q3map2 math in c++
2021-02-25 19:41:43 +03:00
Garux
ba497e4139
SafeOpenWrite, SafeOpenRead funcs use
2021-02-09 18:05:06 +03:00
Garux
92b2487875
fix string warnings
2021-02-08 01:33:36 +03:00
Garux
b9d5f091e0
use fold expression, forwarding reference
2021-01-29 05:12:20 +03:00
Garux
abc666ab7f
use std::uint32_t in md4
2021-01-28 05:11:59 +03:00
Garux
bdfd864670
refactor enums
...
credits for class BitFlags go to Jelvan <3
2021-01-25 01:33:56 +03:00
Garux
20b908e31b
remove excess typedef struct declarations
2021-01-23 19:26:50 +03:00
Garux
36b63e1d2c
turn entities array to std::vector<entity_t>
2021-01-23 15:39:42 +03:00
Garux
f3c26c791f
use safe strings more
2021-01-21 16:08:53 +03:00
Garux
7fc079c658
merge duplicated path_ functions
...
handle backslashes, which is out of convention, but safer, as practically paths may contain them in many spots
2021-01-21 08:53:34 +03:00
Garux
cbeccc7e3a
use safe string in GetIndexedShader
...
fix custom shader overflow check
2021-01-19 22:12:53 +03:00
Garux
9590d602d3
use String64 for shaderInfo_s::skyParmsImageBase
...
add variadic template operator to StringFixedSize for inline strings creation
2021-01-19 17:21:54 +03:00