From /dev/humancontroller:
to further reduce confusion, rename constants like MAX_ENTITIES to MAX_REFENTITIES
This commit is contained in:
1 parent
bc4ca164e0
commit
037565293f
5 files changed
+16
-15
No files matched your search
@@ -835,8 +835,8 @@ the bits are allocated as follows:
|
||||
17-30 : sorted shader index
|
||||
*/
|
||||
#define QSORT_FOGNUM_SHIFT 2
|
||||
#define QSORT_ENTITYNUM_SHIFT 7
|
||||
#define QSORT_SHADERNUM_SHIFT (QSORT_ENTITYNUM_SHIFT+ENTITYNUM_BITS)
|
||||
#define QSORT_REFENTITYNUM_SHIFT 7
|
||||
#define QSORT_SHADERNUM_SHIFT (QSORT_REFENTITYNUM_SHIFT+REFENTITYNUM_BITS)
|
||||
#if (QSORT_SHADERNUM_SHIFT+SHADERNUM_BITS) > 32
|
||||
#error "Need to update sorting, too many bits."
|
||||
#endif
|
||||
@@ -953,7 +953,7 @@ typedef struct {
|
||||
trRefEntity_t *currentEntity;
|
||||
trRefEntity_t worldEntity; // point currentEntity at this when rendering world
|
||||
int currentEntityNum;
|
||||
int shiftedEntityNum; // currentEntityNum << QSORT_ENTITYNUM_SHIFT
|
||||
int shiftedEntityNum; // currentEntityNum << QSORT_REFENTITYNUM_SHIFT
|
||||
model_t *currentModel;
|
||||
|
||||
viewParms_t viewParms;
|
||||
@@ -1704,7 +1704,7 @@ typedef enum {
|
||||
typedef struct {
|
||||
drawSurf_t drawSurfs[MAX_DRAWSURFS];
|
||||
dlight_t dlights[MAX_DLIGHTS];
|
||||
trRefEntity_t entities[MAX_ENTITIES];
|
||||
trRefEntity_t entities[MAX_REFENTITIES];
|
||||
srfPoly_t *polys;//[MAX_POLYS];
|
||||
polyVert_t *polyVerts;//[MAX_POLYVERTS];
|
||||
renderCommandList_t commands;
|
||||
|
||||
Reference in new issue
Block a user