使用新的iFloat替代原先的ifloat_t
This commit is contained in:
@@ -21,10 +21,24 @@ public:
|
||||
public:
|
||||
typedef std::function<void(const std::pair<int32_t, int32_t>& pos, const fVector3& percent)> DrawTriangleCallback;
|
||||
|
||||
struct DebugParam
|
||||
{
|
||||
bool debug;
|
||||
const char* szOutputFileName;
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
|
||||
FILE* fpOutput;
|
||||
int32_t tile_id;
|
||||
int32_t coarse_id;
|
||||
int32_t fine_id;
|
||||
int32_t edge_id;
|
||||
};
|
||||
|
||||
//Larrabee algorithm
|
||||
static void drawTriangleLarrabee(int32_t canvasWidth, int32_t canvasHeight,
|
||||
const fVector2& v0, const fVector2& v1, const fVector2& v2,
|
||||
DrawTriangleCallback callback, bool ccw=true);
|
||||
DrawTriangleCallback callback, bool ccw=true, const DebugParam* debugParam=nullptr);
|
||||
|
||||
//Scaleline algorithm
|
||||
static void drawTriangleScanline(int32_t canvasWidth, int32_t canvasHeight,
|
||||
|
||||
Reference in New Issue
Block a user