Commit graph

84 commits

Author SHA1 Message Date
smallmodel
b463c905cf
Free up unused images
This fixes #93 where the game would hit `MAX_DRAWIMAGES` after loading a few maps
2024-08-07 21:11:16 +02:00
smallmodel
7b59f07181
Allow precaching image manually with r_precacheimages 2024-08-07 20:01:38 +02:00
smallmodel
c13f9dc9a8
Increase MAX_IMAGE_ANIMATIONS
This fixes emitters not playing correctly
2024-07-28 19:12:08 +02:00
smallmodel
64626a767c
Fixes entities not being rendered after number 1023
This fixes #310 where some static models would not be rendered, making it look like there are invisible walls.
2024-06-21 21:48:55 +02:00
smallmodel
28c6e3b398
Properly swap terrain patches for rendering on big-endian architectures 2024-06-08 12:48:36 +02:00
smallmodel
0b16d599d5
Added UseCount for image_t 2024-02-12 22:11:15 +01:00
smallmodel
d5be69239a
Added GL 1.3 functions 2024-02-12 20:18:52 +01:00
smallmodel
5aa70d91f3
Fixed patch subdivisions 2024-02-07 23:44:59 +01:00
smallmodel
84791c42bc
Implemented RB_CalcSunReflectionTexCoords 2024-02-06 22:23:26 +01:00
smallmodel
e032a1a627
Implemented all tcMod values 2024-02-06 22:16:20 +01:00
smallmodel
8bd30ffb22
Added rate tmod variable 2024-02-06 19:59:14 +01:00
smallmodel
fbf67fccc3
Added TMOD enum values from AA 1.11 2024-02-06 19:55:21 +01:00
smallmodel
b848ee0fac
Added rotateStart and rotateCoef for rotate tcMod 2024-02-06 19:48:55 +01:00
smallmodel
9c8ca98e68
Added anisotropic filtering 2024-01-01 14:25:02 +01:00
smallmodel
ea1b411cc0
Forward-declare skelHeaderGame_s and skelAnimFrame_s to omit some warnings 2023-11-14 01:02:27 +01:00
smallmodel
0bbf39660e
Added R_GetShaderName and R_GetModelName 2023-09-06 20:31:28 +02:00
smallmodel
6d2d35e82d
Fixed compile errors on newer versions of clang 2023-09-05 19:39:57 +02:00
smallmodel
66bde85807
Added GLS_COLOR_MASK and GLS_FOG_BITS 2023-08-28 19:45:40 +02:00
smallmodel
08363511a7
farclip must be an integer 2023-08-28 18:36:03 +02:00
smallmodel
24ea958748
Added R_ClearRealDlights() declaration 2023-08-28 17:45:11 +02:00
smallmodel
9315cfa488
Added mohaas/mohaab variables 2023-08-28 17:35:54 +02:00
smallmodel
5b5951483a
Added GetLodCutoff() and GetToolLodCutoff() 2023-08-28 02:26:36 +02:00
smallmodel
194d53569f
Added foliage AFunc 2023-08-28 00:51:43 +02:00
smallmodel
5e8b54be7e
Added new cvars from mohaas/mohaab 2023-08-27 23:24:06 +02:00
smallmodel
bb1326860b
Added normalmap fields 2023-08-27 23:18:21 +02:00
smallmodel
30d9483504
Decreased SHADERNUM and STATICMODEL shift values
When the number of shaders reached >1023, some surfaces started to be have random shaders started on them
The number of sorted shaders in a single game can now be up to 2048
2023-08-27 22:17:16 +02:00
smallmodel
c1ee0332e3
Fixed parameter of Draw_StretchPic2 2023-08-16 00:45:26 +02:00
smallmodel
0fea47bb69
Added Draw_StretchPic2 2023-08-15 22:44:37 +02:00
smallmodel
cf61471b2d
Added MAX_REAL_LIGHTS 2023-07-24 20:14:16 +02:00
smallmodel
d6952b8915
Implemented RB_CalcAlphaFromHeightFade 2023-07-23 18:43:35 +02:00
smallmodel
22fdf36cc6
Added reallight functions, unimplemented 2023-07-18 21:19:16 +02:00
smallmodel
2866bfdd04
Fix for DrawStretchRaw and const params 2023-07-17 20:44:09 +02:00
smallmodel
52f60e647d
Implemented R_MarkFragmentsForInlineModel and R_BoxSurfacesForBModel_r 2023-07-17 20:09:00 +02:00
smallmodel
69c2ea4614
Using font system from SH/BT to support different code pages 2023-07-17 00:24:04 +02:00
smallmodel
bc249844bf
Added GLS_COLOR_NOMASK 2023-07-09 19:39:00 +02:00
smallmodel
e8ecd1ca9e
Implemented R_RefreshImageFile 2023-07-09 18:15:04 +02:00
smallmodel
f4790a0e50
Added R_CountTikiLodTris (unimplemented) 2023-07-09 15:13:24 +02:00
smallmodel
981610b13f
Declared R_DrawFloatingString 2023-07-09 14:37:57 +02:00
pryon
ca468b9407
Implement RB_SurfaceMarkFragment (#47)
Looks good
Btw it won't be possible to make a common function, because like others `RB_Surface*`, both functions use a different struct (even if some of the fields have the same name between structures)
2023-07-01 20:51:14 +02:00
OM
2506625e59 Added **RB_CalcEnvironmentTexCoords2** (not really implemented) 2023-05-30 01:06:52 +02:00
OM
629880e5ca Added **AGEN_TIKI_DIST_FADE**, **AGEN_ONE_MINUS_TIKI_DIST_FADE** and **AGEN_HEIGHT_FADE** 2023-05-29 15:25:54 +02:00
OM
eeae4c7da3 Added **animMapOnce** and **animMapPhase** 2023-05-29 13:49:46 +02:00
OM
7536301d2e Using qgl functions 2023-05-28 22:55:29 +02:00
OM
7b79877516 made renderer (original quake III) work with SDL 2023-05-27 22:23:03 +02:00
OM
f3be59f64d update 2023-05-26 23:32:27 +02:00
OM
c4aca55b1a Minor fixes 2023-05-22 02:38:43 +02:00
OM
2ff1071115 Export *R_PrintInfoWorldtris* 2023-05-21 02:43:07 +02:00
OM
7761cbd74c Implemented *RB_SetupStaticModelGridLighting* and *RB_Static_BuildDLights* 2023-05-21 02:40:44 +02:00
OM
bea35d28fc Added RefreshShaderNoMip 2023-05-21 02:05:06 +02:00
OM
d7c6cc0157 Removed scratchimage array 2023-05-20 19:33:16 +02:00