Skip to content

Commit

Permalink
Update hardware polygon AA edge code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Sanderson committed Apr 23, 2024
1 parent f48aa0a commit 7c6517e
Show file tree
Hide file tree
Showing 4 changed files with 718 additions and 432 deletions.
4 changes: 3 additions & 1 deletion include/nme/QuickVec.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ class QuickVec
void erase(size_t inFirst,size_t inLen)
{
if (inFirst>mSize || inFirst<0)
return;
{
throw std::runtime_error("bad erase");
}
if (inFirst+inLen>=mSize || inLen<0)
resize(inFirst);
else
Expand Down
2 changes: 1 addition & 1 deletion project/include/Hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class HardwareData


void NmeClipOutline(Vertices &ioOutline,QuickVec<int> &ioSubPolys, WindingRule inWinding);
void ConvertOutlineToTriangles(Vertices &ioOutline,const QuickVec<int> &inSubPolys,WindingRule inWinding);
bool ConvertOutlineToTriangles(Vertices &ioOutline,const QuickVec<int> &inSubPolys,WindingRule inWinding);

class HardwareContext : public Object
{
Expand Down
Loading

0 comments on commit 7c6517e

Please sign in to comment.