mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Rasterizer: const correctness
This commit is contained in:
@ -264,7 +264,8 @@ static void BuildBlock(s32 blockX, s32 blockY)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void DrawTriangleFrontFace(OutputVertexData* v0, OutputVertexData* v1, OutputVertexData* v2)
|
void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertexData* v1,
|
||||||
|
const OutputVertexData* v2)
|
||||||
{
|
{
|
||||||
INCSTAT(stats.thisFrame.numTrianglesDrawn);
|
INCSTAT(stats.thisFrame.numTrianglesDrawn);
|
||||||
|
|
||||||
|
@ -12,7 +12,8 @@ namespace Rasterizer
|
|||||||
{
|
{
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
void DrawTriangleFrontFace(OutputVertexData* v0, OutputVertexData* v1, OutputVertexData* v2);
|
void DrawTriangleFrontFace(const OutputVertexData* v0, const OutputVertexData* v1,
|
||||||
|
const OutputVertexData* v2);
|
||||||
|
|
||||||
void SetTevReg(int reg, int comp, s16 color);
|
void SetTevReg(int reg, int comp, s16 color);
|
||||||
|
|
||||||
@ -22,7 +23,7 @@ struct Slope
|
|||||||
float dfdy;
|
float dfdy;
|
||||||
float f0;
|
float f0;
|
||||||
|
|
||||||
float GetValue(float dx, float dy) { return f0 + (dfdx * dx) + (dfdy * dy); }
|
float GetValue(float dx, float dy) const { return f0 + (dfdx * dx) + (dfdy * dy); }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RasterBlockPixel
|
struct RasterBlockPixel
|
||||||
|
Reference in New Issue
Block a user