Commit graph

136 commits

Author SHA1 Message Date
Denis Pauk
e54c635c21 Support Quake2 ReRelease textures 2023-08-13 15:30:01 +03:00
Denis Pauk
dc678793ea Rework: Add nolerp filtering by * 2023-08-13 15:20:26 +03:00
Denis Pauk
b31e174966 Update shared.c
030af432f7
2023-07-17 00:50:52 +03:00
Denis Pauk
8d0f6aadb1 Apply additional fix for sprites/frames count 2023-07-16 23:58:45 +03:00
Denis Pauk
6291bcb84c
Add 32 bit colors in DrawStretchRaw (#45)
Sync with 146e5615af
2023-07-16 23:24:02 +03:00
David Carlier
2df43a26d5 sync with yquake2 2023-06-18 12:47:06 +03:00
David CARLIER
81afaac7bc micro optimisations proposal 2023-06-10 20:33:36 +03:00
David CARLIER
8ba435d831 fix header validation with unitialised var 2023-06-01 21:44:13 +01:00
Denis Pauk
57a1efa727 Fix sprites/skins load overflow 2023-05-24 23:28:17 +03:00
Denis Pauk
bd4c07f6ea fix heretic2 like sprite path 2023-05-24 00:27:53 +03:00
Denis Pauk
b3e90ada4f Reuse vk_window and sync stb_image
5f03705c5d
2023-05-14 15:27:02 +03:00
Yamagi
d66959e15e Chance render API bump to version 6, make renderer high dpi aware.
This ports the high dpi awareness stuff from the GL3 renderer to the
Vulkan renderer. The approach is the same: Implement a new function
`SDL_Vulkan_GetDrawableSize()` and hook it into the extended renderer
API, the client uses to determine the actual drawable size which is
communicated back into the renderer. Like GL3 Vulkan has a second
representation of the drawable size in the `vid` struct, overwrite
that with the actual drawable size.

Note: Starting with this commit an up to date client which implements
renderer API version 6 is needed. Older clients won't load the renderer.
2023-05-14 09:49:25 +02:00
Denis Pauk
bcd0cd9e56 Version bump to 1.0.5 2023-04-08 18:26:01 +03:00
Denis Pauk
192ca4d5fd vk_model: sync code style with gl1_model 2023-03-26 00:44:27 +02:00
Daniel Gibson
ca801b6445 Fix crash in DDays "wake" map, #978
the HunkAlloc size calculated in calTexinfoAndFacesSize() was too
small because that map has a *massive* water poly.
Unfortunately it's not feasible to calculate the correct size
(it depends on the size of the poly, for which I'd need the vertex
coordinates, but to get them I'd have to load them first, which requires
the allocation...), but allocating 5MB extra (instead of 1) made it work

c2d80c64ee
2023-03-26 00:40:16 +02:00
David CARLIER
3950773186 Mod_LoadFlexModel fix uninit var 2023-02-24 20:48:14 +02:00
Denis Pauk
c6ce695406 Add dkm models support (daikatana)
Based on:
 * [TrenchBroom](https://github.com/TrenchBroom/TrenchBroom/blob/master/common/src/IO/DkmParser.cpp)
 * [dkm2md2](http://charles.hollemeersch.net/daikatana-tools/)
2023-02-17 23:57:00 +02:00
David Carlier
40af78f13a silencing few static analyzers warnings. 2023-01-29 09:26:23 +00:00
Denis Pauk
bc7cec0e14 update docs 2023-01-28 23:22:35 +02:00
Denis Pauk
f985309ad9
Merge pull request #29 from yquake2/mdl_models
MDL/FM models support
2023-01-23 01:12:17 +02:00
Denis Pauk
e20dd0a717 Add fm/heretic2 model support
Save additional list of meshes between dmdl_t and list of skins.

https://sourceforge.net/p/quark/code/HEAD/tree/runtime/trunk/plugins/ie_fm_import.py
2023-01-23 01:08:09 +02:00
Denis Pauk
175454e302 Add Quake mdl format support
http://tfc.duke.free.fr/coding/mdl-specs-en.html
2023-01-23 00:48:56 +02:00
Denis Pauk
127de0b1e0 rename vk_polyblend to r_polyblend 2023-01-23 00:27:29 +02:00
Denis Pauk
4bcaa90af7 Share R_CullBox and R_SetFrustum
0cd2eed28b
2023-01-22 00:30:47 +02:00
Denis Pauk
4c6bc1a14c Share R_MarkLights
32ab1e1815
2023-01-22 00:21:00 +02:00
Denis Pauk
f9ae8da233 Share R_AreaVisible
d326b1be51
2023-01-22 00:10:34 +02:00
Denis Pauk
518ada7ea6 Share R_TextureAnimation
c17210b34a
2023-01-22 00:05:14 +02:00
Denis Pauk
de9b099995 Share Mod_PointInLeaf
42bfb2014c
2023-01-21 23:54:57 +02:00
Denis Pauk
659a5c489a Share Mod_Load* functions
442fe10f27
2023-01-21 23:45:49 +02:00
Denis Pauk
6c3c2f3ec2 Share mnode_t and mleaf_t struct between renders.
4463e1fcd7
2023-01-21 23:24:51 +02:00
David Carlier
0f6d05ed9b Using VK_debug_report extension if available. 2023-01-15 18:52:04 +02:00
Denis Pauk
495a40dffd support custom separator inside filter 2023-01-10 00:31:36 +02:00
Denis Pauk
28ed516c34 Version bump to 1.0.4 2023-01-02 17:18:39 +02:00
Denis Pauk
8b6de3a4c1 Fix m32 load 2022-12-31 16:29:52 +02:00
Denis Pauk
879808af8c
Merge pull request #36 from yquake2/shared_images
Reuse image load with other renders
2022-12-15 23:04:56 +02:00
Denis Pauk
a234f687a4 Share SURF_* values between renders
Reuse DRAWSKY value in soft render instead unused
DRAWSKYBOX and SURF_FLOW.

Move mipadjust calculation to usage place in soft render.
2022-12-14 22:09:15 +02:00
Denis Pauk
55330be2ae Image: Share Mod_ReLoadSkins 2022-12-14 22:09:15 +02:00
Denis Pauk
e753629e2d Image: show missed images with r_validation 2022-12-14 22:09:13 +02:00
Denis Pauk
d8e77a5e82 Image: Check skin image before use 2022-12-14 22:07:42 +02:00
Denis Pauk
e9f0826582 Image: Share Draw_FindPic 2022-12-14 22:07:42 +02:00
Denis Pauk
d382472026 Image: Share GetTexImage 2022-12-14 22:07:42 +02:00
Denis Pauk
20360c5ad6 Image: Share loadSky textures
Add support of `r_palettedtextures` to all renders.
2022-12-14 22:07:40 +02:00
Denis Pauk
17fb10d683 Image: Share LoadImage 2022-12-14 22:05:30 +02:00
Denis Pauk
b434562325 Image: Share Hicolor 2022-12-14 22:05:30 +02:00
Denis Pauk
ac2311f873 Image: Add M32 support functions
https://github.com/TTimo/GtkRadiant/blob/master/plugins/imagem8/m32.h
2022-12-14 22:05:30 +02:00
Denis Pauk
94fc74ca9d Image: Share M8 2022-12-14 22:05:30 +02:00
Denis Pauk
1732f4c6fe Image: Share code for load Wal 2022-12-14 22:05:30 +02:00
Denis Pauk
fa2794ef75 Image: Share code for add file extension 2022-12-14 22:05:30 +02:00
Denis Pauk
d6b350572a Images: Get rid of custom Draw_GetPalette and move to pcx.c 2022-12-14 22:05:30 +02:00
Denis Pauk
3da1dd3a8d
Merge pull request #37 from devnexen/fix_last_commit_on_validation
r_validation CVar to take in account only when positive.
2022-12-14 21:59:57 +02:00