mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 03:00:38 +00:00
Polymer tsectortype usage. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@5072 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
8cc2cd8585
commit
112652c5b9
1 changed files with 17 additions and 17 deletions
|
@ -1397,14 +1397,14 @@ static void polymer_drawsearchplane(_prplane *plane, GLubyte *oldcolor,
|
||||||
|
|
||||||
void polymer_drawmaskwall(int32_t damaskwallcnt)
|
void polymer_drawmaskwall(int32_t damaskwallcnt)
|
||||||
{
|
{
|
||||||
sectortype *sec;
|
tsectortype *sec;
|
||||||
walltype *wal;
|
walltype *wal;
|
||||||
_prwall *w;
|
_prwall *w;
|
||||||
GLubyte oldcolor[4];
|
GLubyte oldcolor[4];
|
||||||
|
|
||||||
if (pr_verbosity >= 3) OSD_Printf("PR : Masked wall %i...\n", damaskwallcnt);
|
if (pr_verbosity >= 3) OSD_Printf("PR : Masked wall %i...\n", damaskwallcnt);
|
||||||
|
|
||||||
sec = §or[sectorofwall(maskwall[damaskwallcnt])];
|
sec = (tsectortype *)§or[sectorofwall(maskwall[damaskwallcnt])];
|
||||||
wal = &wall[maskwall[damaskwallcnt]];
|
wal = &wall[maskwall[damaskwallcnt]];
|
||||||
w = prwalls[maskwall[damaskwallcnt]];
|
w = prwalls[maskwall[damaskwallcnt]];
|
||||||
|
|
||||||
|
@ -1426,7 +1426,7 @@ void polymer_drawsprite(int32_t snum)
|
||||||
_prsprite *s;
|
_prsprite *s;
|
||||||
|
|
||||||
tspritetype *const tspr = tspriteptr[snum];
|
tspritetype *const tspr = tspriteptr[snum];
|
||||||
const sectortype *sec;
|
const tsectortype *sec;
|
||||||
|
|
||||||
if (pr_verbosity >= 3) OSD_Printf("PR : Sprite %i...\n", snum);
|
if (pr_verbosity >= 3) OSD_Printf("PR : Sprite %i...\n", snum);
|
||||||
|
|
||||||
|
@ -1441,9 +1441,9 @@ void polymer_drawsprite(int32_t snum)
|
||||||
|
|
||||||
DO_TILE_ANIM(tspr->picnum, tspr->owner+32768);
|
DO_TILE_ANIM(tspr->picnum, tspr->owner+32768);
|
||||||
|
|
||||||
sec = §or[tspr->sectnum];
|
sec = (tsectortype *)§or[tspr->sectnum];
|
||||||
calc_and_apply_fog(tspr->picnum, fogpal_shade(sec, tspr->shade), sec->visibility,
|
calc_and_apply_fog(tspr->picnum, fogpal_shade(sec, tspr->shade), sec->visibility,
|
||||||
get_floor_fogpal(§or[tspr->sectnum]));
|
get_floor_fogpal((tsectortype *)§or[tspr->sectnum]));
|
||||||
|
|
||||||
if (usemodels && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].modelid >= 0 &&
|
if (usemodels && tile2model[Ptile2tile(tspr->picnum,tspr->pal)].modelid >= 0 &&
|
||||||
tile2model[Ptile2tile(tspr->picnum,tspr->pal)].framenum >= 0 &&
|
tile2model[Ptile2tile(tspr->picnum,tspr->pal)].framenum >= 0 &&
|
||||||
|
@ -1694,7 +1694,7 @@ int32_t polymer_havehighpalookup(int32_t basepalnum, int32_t palnum)
|
||||||
// CORE
|
// CORE
|
||||||
static void polymer_displayrooms(const int16_t dacursectnum)
|
static void polymer_displayrooms(const int16_t dacursectnum)
|
||||||
{
|
{
|
||||||
sectortype *sec;
|
tsectortype *sec;
|
||||||
int32_t i;
|
int32_t i;
|
||||||
int16_t bunchnum;
|
int16_t bunchnum;
|
||||||
int16_t ns;
|
int16_t ns;
|
||||||
|
@ -1752,7 +1752,7 @@ static void polymer_displayrooms(const int16_t dacursectnum)
|
||||||
|
|
||||||
while (front != back)
|
while (front != back)
|
||||||
{
|
{
|
||||||
sec = §or[sectorqueue[front]];
|
sec = (tsectortype *)§or[sectorqueue[front]];
|
||||||
|
|
||||||
polymer_pokesector(sectorqueue[front]);
|
polymer_pokesector(sectorqueue[front]);
|
||||||
polymer_drawsector(sectorqueue[front], FALSE);
|
polymer_drawsector(sectorqueue[front], FALSE);
|
||||||
|
@ -2298,12 +2298,12 @@ static void polymer_freeboard(void)
|
||||||
// SECTORS
|
// SECTORS
|
||||||
static int32_t polymer_initsector(int16_t sectnum)
|
static int32_t polymer_initsector(int16_t sectnum)
|
||||||
{
|
{
|
||||||
sectortype *sec;
|
tsectortype *sec;
|
||||||
_prsector* s;
|
_prsector* s;
|
||||||
|
|
||||||
if (pr_verbosity >= 2) OSD_Printf("PR : Initializing sector %i...\n", sectnum);
|
if (pr_verbosity >= 2) OSD_Printf("PR : Initializing sector %i...\n", sectnum);
|
||||||
|
|
||||||
sec = §or[sectnum];
|
sec = (tsectortype *)§or[sectnum];
|
||||||
s = (_prsector *)Xcalloc(1, sizeof(_prsector));
|
s = (_prsector *)Xcalloc(1, sizeof(_prsector));
|
||||||
|
|
||||||
s->verts = (GLdouble *)Xcalloc(sec->wallnum, sizeof(GLdouble) * 3);
|
s->verts = (GLdouble *)Xcalloc(sec->wallnum, sizeof(GLdouble) * 3);
|
||||||
|
@ -2337,7 +2337,7 @@ static int32_t polymer_initsector(int16_t sectnum)
|
||||||
static int32_t polymer_updatesector(int16_t sectnum)
|
static int32_t polymer_updatesector(int16_t sectnum)
|
||||||
{
|
{
|
||||||
_prsector* s;
|
_prsector* s;
|
||||||
sectortype *sec;
|
tsectortype *sec;
|
||||||
walltype *wal;
|
walltype *wal;
|
||||||
int32_t i, j;
|
int32_t i, j;
|
||||||
int32_t ceilz, florz;
|
int32_t ceilz, florz;
|
||||||
|
@ -2349,7 +2349,7 @@ static int32_t polymer_updatesector(int16_t sectnum)
|
||||||
GLfloat* curbuffer;
|
GLfloat* curbuffer;
|
||||||
|
|
||||||
s = prsectors[sectnum];
|
s = prsectors[sectnum];
|
||||||
sec = §or[sectnum];
|
sec = (tsectortype *)§or[sectnum];
|
||||||
|
|
||||||
secangcos = secangsin = 2;
|
secangcos = secangsin = 2;
|
||||||
|
|
||||||
|
@ -2635,13 +2635,13 @@ static int32_t polymer_buildfloor(int16_t sectnum)
|
||||||
{
|
{
|
||||||
// This function tesselates the floor/ceiling of a sector and stores the triangles in a display list.
|
// This function tesselates the floor/ceiling of a sector and stores the triangles in a display list.
|
||||||
_prsector* s;
|
_prsector* s;
|
||||||
sectortype *sec;
|
tsectortype *sec;
|
||||||
intptr_t i;
|
intptr_t i;
|
||||||
|
|
||||||
if (pr_verbosity >= 2) OSD_Printf("PR : Tesselating floor of sector %i...\n", sectnum);
|
if (pr_verbosity >= 2) OSD_Printf("PR : Tesselating floor of sector %i...\n", sectnum);
|
||||||
|
|
||||||
s = prsectors[sectnum];
|
s = prsectors[sectnum];
|
||||||
sec = §or[sectnum];
|
sec = (tsectortype *)§or[sectnum];
|
||||||
|
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
@ -2694,7 +2694,7 @@ static int32_t polymer_buildfloor(int16_t sectnum)
|
||||||
|
|
||||||
static void polymer_drawsector(int16_t sectnum, int32_t domasks)
|
static void polymer_drawsector(int16_t sectnum, int32_t domasks)
|
||||||
{
|
{
|
||||||
sectortype *sec;
|
tsectortype *sec;
|
||||||
_prsector* s;
|
_prsector* s;
|
||||||
GLubyte oldcolor[4];
|
GLubyte oldcolor[4];
|
||||||
int32_t draw;
|
int32_t draw;
|
||||||
|
@ -2702,7 +2702,7 @@ static void polymer_drawsector(int16_t sectnum, int32_t domasks)
|
||||||
|
|
||||||
if (pr_verbosity >= 3) OSD_Printf("PR : Drawing sector %i...\n", sectnum);
|
if (pr_verbosity >= 3) OSD_Printf("PR : Drawing sector %i...\n", sectnum);
|
||||||
|
|
||||||
sec = §or[sectnum];
|
sec = (tsectortype *)§or[sectnum];
|
||||||
s = prsectors[sectnum];
|
s = prsectors[sectnum];
|
||||||
|
|
||||||
queuedmask = FALSE;
|
queuedmask = FALSE;
|
||||||
|
@ -3240,7 +3240,7 @@ static void polymer_updatewall(int16_t wallnum)
|
||||||
|
|
||||||
static void polymer_drawwall(int16_t sectnum, int16_t wallnum)
|
static void polymer_drawwall(int16_t sectnum, int16_t wallnum)
|
||||||
{
|
{
|
||||||
sectortype *sec;
|
tsectortype *sec;
|
||||||
walltype *wal;
|
walltype *wal;
|
||||||
_prwall *w;
|
_prwall *w;
|
||||||
GLubyte oldcolor[4];
|
GLubyte oldcolor[4];
|
||||||
|
@ -3248,7 +3248,7 @@ static void polymer_drawwall(int16_t sectnum, int16_t wallnum)
|
||||||
|
|
||||||
if (pr_verbosity >= 3) OSD_Printf("PR : Drawing wall %i...\n", wallnum);
|
if (pr_verbosity >= 3) OSD_Printf("PR : Drawing wall %i...\n", wallnum);
|
||||||
|
|
||||||
sec = §or[sectnum];
|
sec = (tsectortype *)§or[sectnum];
|
||||||
wal = &wall[wallnum];
|
wal = &wall[wallnum];
|
||||||
w = prwalls[wallnum];
|
w = prwalls[wallnum];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue