vkdoom_m/src/r_data
Chernoskill fa2058004b The two TArrays of type FTextureID skinIDs and surfaceskinIDs no longer have any null elements. These elements will have a textureid (FTextureID.texnum) of 0.
Re-worded error messages which were unprecise or unfitting before (model index below 0 was not acknowledged at all, or grouped together with a "too many models" message).

modelIDs are given a default value of -1.

Important: A MODELDEF's FrameIndex lines can no longer refer to model indices that are beyond the number of models of that MODELDEF entry. There is in fact a check to avoid going beyond the number of an actor's models which would abort program operation at startup, but it never caught any such occurances.

surfaceSkinIDs was two-dimensional and is now a one-dimensional TArray as well, elements are accessed via [Row + Column * NumRows], in this case surfaceIndex + modelIndex * MD3_MAX_SURFACES]
Used TArray.Alloc to make TArrays have the correct size depending on the number of models.

Also removed MAX_MODELS_PER_FRAME.
Edited skinSurfaceIDs access for one-dimensional TArray

Added MD3_MODELS_MIN
To ensure compatibility with mods, all model-related TArrays (four in total) have a minimum size of 4, defined by MD3_MODELS_MIN.
2021-02-26 22:22:33 +01:00
..
a_dynlightdata.cpp - fixed compilation with GCC 5 and newer 2019-07-07 11:51:34 +03:00
colormaps.cpp - major dependency reduction of the texture system. 2020-04-11 20:20:37 +02:00
colormaps.h - added a flash component to the colormap shader. 2020-06-07 09:16:56 +02:00
gldefs.cpp - made some changes so that material definitions can properly check automatic layers when determining their material type. 2020-06-03 21:16:36 +02:00
models.cpp The two TArrays of type FTextureID skinIDs and surfaceskinIDs no longer have any null elements. These elements will have a textureid (FTextureID.texnum) of 0. 2021-02-26 22:22:33 +01:00
models.h - moved model code to 'common'. 2020-04-27 20:50:46 +02:00
portalgroups.cpp - copied a few more map information CCMDs to g_ccmd. 2019-01-31 03:03:56 +01:00
r_canvastexture.cpp - moved the texture name to FGameTexture. 2020-04-19 10:57:53 +02:00
r_canvastexture.h - fixed compile bugs 2018-12-12 01:27:04 +01:00
r_interpolate.cpp - split the serializer in two to keep the Doom specific parts out of the main file. 2020-04-11 20:20:53 +02:00
r_interpolate.h - split up the OnDestroy method of interpolations. 2019-02-05 18:34:02 +01:00
r_sections.cpp - fixed a few issues pointed out by the assert in the TArray [] operator. 2020-04-11 14:00:10 +02:00
r_sections.h - added missing range check to section code. 2020-05-25 19:20:51 +02:00
r_translate.cpp Fixed extra player translations not working in Heretic with predefined color sets 2020-09-22 18:34:06 +02:00
r_translate.h - use translation slot 0 for reserved content, like font translations. 2020-04-11 20:20:39 +02:00
r_vanillatrans.cpp - moved file system implementation to 'common'. 2020-04-11 14:00:20 +02:00
r_vanillatrans.h - oops, missed this one 2020-01-01 08:12:31 -05:00
sprites.cpp - moved model code to 'common'. 2020-04-27 20:50:46 +02:00
sprites.h - Added +SPRITEFLIP which reverses a sprite's left-rightness. 2017-05-03 21:13:31 +02:00
v_palette.cpp - removed useless x86.h #include's 2021-02-06 15:01:08 +02:00
v_palette.h - cleanup of 2D code. 2020-04-11 20:20:58 +02:00
voxeldef.cpp - split voxels.cpp into a backend and a game dependent part. 2020-04-27 19:46:27 +02:00