gwnavgeneration/raster/trianglerasterizer.h Source File
Go to the documentation of this file.
22 class GeneratorSystem;
24 class SingleStageRaster;
27 class TriangleRasterizer
31 TriangleRasterizer(GeneratorSystem* sys) : m_sys(sys), m_singleStageRaster(
nullptr){}
33 void Init(
KyFloat32 pixelSizeInMeters,
KyInt32 intPixelSize, SingleStageRaster* singleStageRaster);
35 void RasterizeTriangle(
const Triangle3i& triangle3i,
KyUInt32 navTagIdx);
37 KyFloat32 GetRasterPrecision()
const {
return m_rasterPrecision; }
40 void RasterizePoint(
const RasterPoint& M);
41 void RasterizeInterior();
42 void WriteLine(Coord min_x, Coord max_x, Coord y);
43 void WriteSinglePixelLine(Coord min_x, Coord max_x, PixelCoord py, Coord y);
44 void WriteDoublePixelLine(Coord min_x, Coord max_x, Coord y);
48 GeneratorSystem* m_sys;
51 SingleStageRaster* m_singleStageRaster;
52 RasterTriangle m_triangle;
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
Box2i CoordBox
A type that represents a bounding box in the integer 2D grid.
Definition: navmeshtypes.h:21
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
std::int32_t KyInt32
int32_t
Definition: types.h:24
float KyFloat32
float
Definition: types.h:32