gzdoom-gles/src/common/models
Chernoskill 769d60a64f
Dynamic number of models per frame instead of a hard limit of four. (#1298)
* Changed model-related arrays to TArrays.

* Update models.cpp

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

* Edited skinSurfaceIDs access for one-dimensional TArray

* Edited skinSurfaceIDs access for one-dimensional TArray

* Edited skinSurfaceIDs access for one-dimensional TArray

* Changed model-related arrays to TArrays.

Also removed MAX_MODELS_PER_FRAME.

* Used TArray.Alloc to make TArrays have the correct size depending on the number of models. 

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. 

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]

* Update models.h

* Edited MAX_MODELS_MD3

* Update models_obj.cpp
2021-02-24 15:26:47 -05:00
..
model.cpp - made video base code game independent 2020-04-28 22:54:53 +02:00
model.h Dynamic number of models per frame instead of a hard limit of four. (#1298) 2021-02-24 15:26:47 -05:00
model_kvx.h - more 'override's. 2020-09-27 10:48:38 +02:00
model_md2.h
model_md3.h
model_obj.h
model_ue1.h - more 'override's. 2020-09-27 10:48:38 +02:00
modelrenderer.h - moved around some sky rendering code so that the game independent parts are grouped together. 2020-04-29 00:14:42 +02:00
models_md2.cpp - made video base code game independent 2020-04-28 22:54:53 +02:00
models_md3.cpp Dynamic number of models per frame instead of a hard limit of four. (#1298) 2021-02-24 15:26:47 -05:00
models_obj.cpp Dynamic number of models per frame instead of a hard limit of four. (#1298) 2021-02-24 15:26:47 -05:00
models_ue1.cpp Dynamic number of models per frame instead of a hard limit of four. (#1298) 2021-02-24 15:26:47 -05:00
models_voxel.cpp - made video base code game independent 2020-04-28 22:54:53 +02:00
tab_anorms.h
voxels.cpp - made video base code game independent 2020-04-28 22:54:53 +02:00
voxels.h - made video base code game independent 2020-04-28 22:54:53 +02:00