build/api-examples/Triangle.cpp¶
Complete program from the Triangle API reference. Save it at the path shown above and use the build command in the reference page.
Source files · Download Triangle.cpp
#include "raster3d.hpp"
using namespace gaspardos::graphics;
int main()
{
Triangle value(0, 1, 2, 0x00ffffff);
return value.a == 0 ? 0 : 1;
}