Commit graph

4517 commits

Author SHA1 Message Date
Denis Pauk
17603050b6 game: Add fields used in misc_flare
Based on [ED_LoadColor](https://github.com/id-Software/quake2-rerelease-dll).
2024-10-26 23:37:54 +03:00
Denis Pauk
4f1e668eb7 game: support of item_invisibility 2024-10-26 23:37:54 +03:00
Jaime Moreira
d9de3ea0df vk: Support for the SDL 3.1.3 Preview release
https://github.com/yquake2/ref_vk/pull/51
https://github.com/yquake2/yquake2/issues/1156
2024-10-26 23:37:53 +03:00
Denis Pauk
e905ae1e09 Merge remote-tracking branch 'yquake2/master' 2024-10-26 23:37:15 +03:00
Daniel Gibson
07ee830712 SDL3 return value fixes in gl1_sdl.c and gl3_sdl.c
and removed unused code from glimp_sdl3.c
2024-10-26 17:57:58 +02:00
Yamagi
b74d1a5247 Fix window flag handling with SDL3.
These are two problems breaking the window flags for renderers which
don't use OpenGL or enforce their own flags:

* In SDL 3 the window flags were increased from 32 bit to 64 bit. SDL
  3.1.3 introduced a new type SDL_WindowFlags for them. Use it to
  represent the window flags. This is currently a noop, becaue SDL 3
  doesn't have any flags above 32 bit yet. This might require another
  breakage of the renderer API in the future, because currently
  renderers pass a 32 bit flags thing to the client.
* `SDL_SetNumberProperty()` got a new type
  `SDL_PROP_WINDOW_CREATE_FLAGS_NUMBER` to represent the flags. It must
  be used, otherwise strange things happen.

Closes #1156.
2024-10-26 17:28:31 +02:00
Yamagi
c719a18d54
Merge pull request #1157 from BjossiAlfreds/menu-input-ext
Clipboard and in-line editing for menu input fields
2024-10-26 16:11:10 +02:00
Yamagi
b134bb1770
Merge pull request #1154 from 0lvin/sdl2_soft_fix
soft: fix texture lock
2024-10-26 16:03:16 +02:00
BjossiAlfreds
993365cc6d END key jumps between start and end of current input string 2024-10-18 11:34:22 +00:00
BjossiAlfreds
c49a703467 Reset field cursor position when it leaves focus 2024-10-18 10:56:48 +00:00
BjossiAlfreds
b26be3ff5d CTRL+l,c,x,v shortcuts for menu input fields 2024-10-16 14:02:48 +00:00
BjossiAlfreds
8d5d86cbaf Q_strisnum shared helper function 2024-10-16 13:54:38 +00:00
BjossiAlfreds
aae0524687 Left/right arrow nav in menu fields 2024-10-16 02:00:53 +00:00
Denis Pauk
15a5f65fdf game: rename Quake Fish to rotfish 2024-10-09 23:59:45 +03:00
Denis Pauk
14db96211b soft: fix texture lock
Regression is introduced in 39d2c7dbb4
as sdl3 has changed logic of SDL_LockTexture function call.
2024-10-07 23:07:12 +03:00
Denis Pauk
091b3898c9 game: update entity.dat with models required for ssdocks heretic 2 map 2024-10-07 00:01:20 +03:00
Denis Pauk
8c233f78c3 Merge remote-tracking branch 'yquake2/master' 2024-10-06 22:35:23 +03:00
Yamagi
6408cc7099 Fix SDL3 build after merging sdl3-current into master.
One function call wasn't renamed, the missing function prevented the
build. Patch submitted by @protocultor in a comment to #1153.
2024-10-06 21:35:01 +02:00
erysdren
e8eb810c01 SDL3: Fix inconsistent name for deleting GL context 2024-10-06 10:20:00 +02:00
erysdren
39d2c7dbb4 Bump to SDL3 gitrev 8db3b47 2024-10-06 10:19:59 +02:00
erysdren
219b1b93fb Bump to SDL3 gitrev f6fc5e2 2024-10-06 10:19:59 +02:00
erysdren
2c212ae0b2 SDL3: Moved SDL_StartTextInput() to glimp_sdl3.c 2024-10-06 10:19:59 +02:00
erysdren
5ace09caac Partial fixes for SDL3 2024-10-06 10:19:55 +02:00
Yamagi
667ddafd83
Merge pull request #1152 from protocultor/gles1_addendum
Improvements for GL1/GLES1
2024-10-06 10:16:24 +02:00
Denis Pauk
ea6b135631 game: update entity.dat from fgd files
Based on:
 * https://github.com/TrenchBroom/TrenchBroom/blob/master/app/resources/games/Heretic2/heretic2.fgd
 * https://github.com/TrenchBroom/TrenchBroom/blob/master/app/resources/games/Kingpin/kingpin.fgd
 * https://github.com/TrenchBroom/TrenchBroom/blob/master/app/resources/games/Quake2/Quake2.fgd
2024-10-06 01:23:15 +03:00
Denis Pauk
4196a6104a game: use semicolon as model path separation
Use semicolon in model path for separation models for entity class
with several models, e.g.: head, body, legs.
2024-10-01 12:10:00 +03:00
Denis Pauk
711d07561c game: Add remaster repository entities 2024-09-30 00:24:54 +03:00
Denis Pauk
fa1132e247 game: initial known entities definitions
Add initial version without description and model path for now,
based on QUAKED comment get by grep code.
need to parse fgd files for add real definition and models or
check in code what model used.
2024-09-29 19:03:46 +03:00
Denis Pauk
473a4f3adc game: use dynamic definitions as defaults 2024-09-29 11:35:16 +03:00
Denis Pauk
d443fdc092 game: Add support of target_gravity, target_soundfx 2024-09-29 11:27:34 +03:00
Jaime Moreira
dbba5b5fd5 GL1: force vid_restart when changing stereo mode
Avoids spam to console
2024-09-29 00:07:59 -03:00
Jaime Moreira
45a84389db Removed unused parameter in 3 functions 2024-09-25 17:07:11 -03:00
Jaime Moreira
f2ea0b51b5 gl1_discardfb functionality expanded
Now also available in GL1. Includes a call to glClear at the beginning
of each frame, pointing to the same buffers that are discarded at the
end. When value is 1, operates over color, depth and stencil buffers.
When it's 2, only does depth and stencil, ignoring color. These
changes provide a performance improvement on mobile/embedded.
2024-09-24 16:33:39 -03:00
Denis Pauk
660412a525 cmake: update for minimal build
Fixes #28
2024-09-22 22:14:11 +03:00
Denis Pauk
98baf8223b model: replace ctc by md2 models on load
Temporary fix for ctc model load.
2024-09-22 14:53:06 +03:00
Denis Pauk
8d3d318b95 Update ReadMe 2024-09-22 14:49:28 +03:00
Denis Pauk
5bcb204623 models: support Anachronox 14 version 2024-09-22 13:32:12 +03:00
Denis Pauk
9566ef12c4 Version bump 8.42RR9
- vk: fixed vulkan call groups,
- game: Add ReRelease translated messages (English only)
- game: Add Heretic 2 translated message (checked with English only)
- game: Anachronox support load entitities decription file,
- game: Daikatana support load entitities decription file,
- game: SiN show entities with defined models,
- renders: Partial support of MDA models (Anachronox),
- renders: improved colors of particles,
- renders: Fix pcx load code,
- renders: Fix maps with 32k+ faces.
2024-09-22 11:05:54 +03:00
Denis Pauk
36011a51c4 game: fix load of Anachronox levant2 map
Fields planenum, side, firstedge, numedges has made unsigned.
2024-09-22 01:09:48 +03:00
Denis Pauk
ecb53ba29f Merge remote-tracking branch 'yquake2/master' 2024-09-21 17:00:20 +03:00
Denis Pauk
831f51d070 models: fix mda skin parh search 2024-09-21 16:59:22 +03:00
Yamagi
9278772868 Mark g_swap_speed as CVAR_ARCHIVE. 2024-09-21 09:54:35 +02:00
Denis Pauk
b9286a8d1d game: load SiN models prodided as model field 2024-09-21 01:44:11 +03:00
Jaime Moreira
e21479cbd2 Stereo 3D modes (gl1_stereo) allowed in GLES1
Availability of each mode depends on GPU support
2024-09-20 18:29:21 -03:00
Jaime Moreira
676e05ad1f Fixed GL1 stencil shadow when gl1_stereo = 3 to 5
Disabling stencil for shadowing in these stereo modes,
otherwise entities appear behind solid walls.
2024-09-20 16:56:58 -03:00
Denis Pauk
718202f84e game: load daikatana entities types list 2024-09-18 01:25:06 +03:00
Denis Pauk
081050ad18 Merge remote-tracking branch 'yquake2/master' 2024-09-17 23:12:54 +03:00
Denis Pauk
105b019130 models: check mda before md2 on load 2024-09-16 00:27:15 +03:00
Yamagi
7b013d5009
Merge pull request #1151 from amalchuk/feature/fix-broken-links
Fix broken links in the documentation
2024-09-15 22:12:31 +02:00
Denis Pauk
6ba618fc42 models: partial support mda file parse 2024-09-15 19:07:53 +03:00