- Switch sprite drawing to use the interesting draw segments list

- Stop adding 3D floor "fake" draw segments to the interesting segments list
- Rename InterestingSegments list to TranslucentSegments
This commit is contained in:
Magnus Norddahl 2017-07-01 23:55:41 +02:00
commit e19c8eba62
6 changed files with 56 additions and 78 deletions

View file

@ -63,15 +63,15 @@ namespace swrenderer
StartIndices.Clear();
StartIndices.Push(0);
InterestingSegments.Clear();
StartInterestingIndices.Clear();
StartInterestingIndices.Push(0);
TranslucentSegments.Clear();
StartTranslucentIndices.Clear();
StartTranslucentIndices.Push(0);
}
void DrawSegmentList::PushPortal()
{
StartIndices.Push(Segments.Size());
StartInterestingIndices.Push(InterestingSegments.Size());
StartTranslucentIndices.Push(TranslucentSegments.Size());
}
void DrawSegmentList::PopPortal()
@ -79,8 +79,8 @@ namespace swrenderer
Segments.Resize(StartIndices.Last());
StartIndices.Pop();
InterestingSegments.Resize(StartInterestingIndices.Last());
StartInterestingIndices.Pop();
TranslucentSegments.Resize(StartTranslucentIndices.Last());
StartTranslucentIndices.Pop();
}
void DrawSegmentList::Push(DrawSegment *segment)
@ -88,9 +88,9 @@ namespace swrenderer
Segments.Push(segment);
}
void DrawSegmentList::PushInteresting(DrawSegment *segment)
void DrawSegmentList::PushTranslucent(DrawSegment *segment)
{
InterestingSegments.Push(segment);
TranslucentSegments.Push(segment);
}
void DrawSegmentList::BuildSegmentGroups()