mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
softgpu: Cleanup DrawPoint a bit.
Mostly in DrawSinglePixel() now.
This commit is contained in:
parent
8f5fc4f079
commit
4bb6a77519
1 changed files with 10 additions and 7 deletions
|
@ -1146,7 +1146,16 @@ void DrawTriangle(const VertexData& v0, const VertexData& v1, const VertexData&
|
|||
GlobalThreadPool::Loop(std::bind(&DrawTriangleSlice<false>, v0, v1, v2, minX, minY, maxX, maxY, placeholder::_1, placeholder::_2), 0, range);
|
||||
}
|
||||
|
||||
void DrawPixel(ScreenCoords pos, Vec3<int> prim_color_rgb, int prim_color_a, Vec3<int> sec_color, float s, float t) {
|
||||
void DrawPoint(const VertexData &v0)
|
||||
{
|
||||
ScreenCoords pos = v0.screenpos;
|
||||
Vec3<int> prim_color_rgb = v0.color0.rgb();
|
||||
int prim_color_a = v0.color0.a();
|
||||
Vec3<int> sec_color = v0.color1;
|
||||
// TODO: UVGenMode?
|
||||
float s = v0.texturecoords.s();
|
||||
float t = v0.texturecoords.t();
|
||||
|
||||
ScreenCoords scissorTL(TransformUnit::DrawingToScreen(DrawingCoords(gstate.getScissorX1(), gstate.getScissorY1(), 0)));
|
||||
ScreenCoords scissorBR(TransformUnit::DrawingToScreen(DrawingCoords(gstate.getScissorX2(), gstate.getScissorY2(), 0)));
|
||||
|
||||
|
@ -1216,12 +1225,6 @@ void DrawPixel(ScreenCoords pos, Vec3<int> prim_color_rgb, int prim_color_a, Vec
|
|||
}
|
||||
}
|
||||
|
||||
void DrawPoint(const VertexData &v0)
|
||||
{
|
||||
// TODO: UVGenMode?
|
||||
DrawPixel(v0.screenpos, v0.color0.rgb(), v0.color0.a(), v0.color1, v0.texturecoords.s(), v0.texturecoords.t());
|
||||
}
|
||||
|
||||
void DrawLine(const VertexData &v0, const VertexData &v1)
|
||||
{
|
||||
// TODO: Use a proper line drawing algorithm that handles fractional endpoints correctly.
|
||||
|
|
Loading…
Add table
Reference in a new issue