- Moved the pixel shaders' color information out of the constant registers
and into the vertex data. - Added functions for doing line drawing with Direct3D, including a new pair of functions to do batched line drawing so that the map can actually be drawn faster in hardware than in software (instead of an order of magnitude slower). SVN r663 (trunk)
This commit is contained in:
parent
5d9d2a9088
commit
5cbb2bd472
9 changed files with 401 additions and 263 deletions
|
|
@ -558,17 +558,20 @@ void D_Display ()
|
|||
R_DetailDouble (); // [RH] Apply detail mode expansion
|
||||
// [RH] Let cameras draw onto textures that were visible this frame.
|
||||
FCanvasTextureInfo::UpdateAll ();
|
||||
if (automapactive)
|
||||
{
|
||||
AM_Drawer ();
|
||||
}
|
||||
if ((hw2d = screen->Begin2D(true)))
|
||||
if ((hw2d = screen->Begin2D(viewactive)))
|
||||
{
|
||||
// Redraw everything every frame when using 2D accel
|
||||
SB_state = screen->GetPageCount();
|
||||
BorderNeedRefresh = screen->GetPageCount();
|
||||
}
|
||||
R_RefreshViewBorder ();
|
||||
if (automapactive)
|
||||
{
|
||||
AM_Drawer ();
|
||||
}
|
||||
if (!automapactive || viewactive)
|
||||
{
|
||||
R_RefreshViewBorder ();
|
||||
}
|
||||
if (realviewheight == SCREENHEIGHT && viewactive)
|
||||
{
|
||||
StatusBar->Draw (DrawFSHUD ? HUD_Fullscreen : HUD_None);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue