mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 02:01:31 +00:00
- Capitalise vec2_t
y
variable.
This commit is contained in:
parent
3c9cd926ba
commit
118ceb18ca
46 changed files with 352 additions and 352 deletions
|
@ -324,7 +324,7 @@ void drawlinergb(int32_t x1, int32_t y1, int32_t x2, int32_t y2, PalEntry p)
|
|||
twod->AddThickLine(x1 / 4096, y1 / 4096, x2 / 4096, y2 / 4096, am_linethickness, p, uint8_t(am_linealpha * 255));
|
||||
} else {
|
||||
// Use more efficient thin line drawing routine.
|
||||
twod->AddLine(x1 / 4096.f, y1 / 4096.f, x2 / 4096.f, y2 / 4096.f, windowxy1.X, windowxy1.y, windowxy2.X, windowxy2.y, p, uint8_t(am_linealpha * 255));
|
||||
twod->AddLine(x1 / 4096.f, y1 / 4096.f, x2 / 4096.f, y2 / 4096.f, windowxy1.X, windowxy1.Y, windowxy2.X, windowxy2.Y, p, uint8_t(am_linealpha * 255));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -601,7 +601,7 @@ void renderDrawMapView(int cposx, int cposy, int czoom, int cang)
|
|||
}
|
||||
|
||||
twod->AddPoly(tileGetTexture(picnum, true), vertices.Data(), vertices.Size(), (unsigned*)indices->Data(), indices->Size(), translation, light,
|
||||
LegacyRenderStyles[STYLE_Translucent], windowxy1.X, windowxy1.y, windowxy2.X + 1, windowxy2.y + 1);
|
||||
LegacyRenderStyles[STYLE_Translucent], windowxy1.X, windowxy1.Y, windowxy2.X + 1, windowxy2.Y + 1);
|
||||
}
|
||||
}
|
||||
qsort(floorsprites.Data(), floorsprites.Size(), sizeof(spritetype*), [](const void* a, const void* b)
|
||||
|
@ -622,7 +622,7 @@ void renderDrawMapView(int cposx, int cposy, int czoom, int cang)
|
|||
for (unsigned j = 0; j < 4; j++)
|
||||
{
|
||||
int ox = pp[j].X - cposx;
|
||||
int oy = pp[j].y - cposy;
|
||||
int oy = pp[j].Y - cposy;
|
||||
int x1 = DMulScale(ox, xvect, -oy, yvect, 16) + (width << 11);
|
||||
int y1 = DMulScale(oy, xvect, ox, yvect, 16) + (height << 11);
|
||||
vertices[j] = { x1 / 4096.f, y1 / 4096.f, j == 1 || j == 2 ? 1.f : 0.f, j == 2 || j == 3 ? 1.f : 0.f };
|
||||
|
@ -646,7 +646,7 @@ void renderDrawMapView(int cposx, int cposy, int czoom, int cang)
|
|||
gotpic.Set(picnum);
|
||||
const static unsigned indices[] = { 0, 1, 2, 0, 2, 3 };
|
||||
twod->AddPoly(tileGetTexture(picnum, true), vertices.Data(), vertices.Size(), indices, 6, translation, color, rs,
|
||||
windowxy1.X, windowxy1.y, windowxy2.X + 1, windowxy2.y + 1);
|
||||
windowxy1.X, windowxy1.Y, windowxy2.X + 1, windowxy2.Y + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue