- 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:
parent
5a761dd3c3
commit
e19c8eba62
6 changed files with 56 additions and 78 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue