Sorted points in Triangle()

This commit is contained in:
n00b
2024-12-20 12:01:05 -05:00
parent 4c4c4d4952
commit a4e9fdd9fd
2 changed files with 5 additions and 3 deletions

View File

@@ -4447,8 +4447,8 @@ int main(int argc, char * argv[])
std::cin >> debug_opt;
if(debug_opt.compare("a")==0)
{
//rc_intern_dirChange("/home/n00b/Music/rcbasic_v400_linux64/examples/tile_demo");
rc_intern_dirChange("");
rc_intern_dirChange("/home/n00b/Downloads/Tile Scrolling");
//rc_intern_dirChange("");
rc_filename = "main.cbc";
}
else

View File

@@ -1676,6 +1676,8 @@ void rc_drawTriangle(double x1, double y1, double x2, double y2, double x3, doub
i.push_back(1);
i.push_back(2);
v.sort();
VideoDriver->draw2DVertexPrimitiveList(v.pointer(), 3, i.pointer(), 1);
}