mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 12:08:58 +01:00
vector: update comments
This commit is contained in:
parent
9e6a1d7ad1
commit
436bfdb06b
@ -369,7 +369,7 @@ func (p *Path) Close() {
|
|||||||
//
|
//
|
||||||
// The returned vertice's SrcX and SrcY are 0, and ColorR, ColorG, ColorB, and ColorA are 1.
|
// The returned vertice's SrcX and SrcY are 0, and ColorR, ColorG, ColorB, and ColorA are 1.
|
||||||
//
|
//
|
||||||
// The returned values are intended to be passed to DrawTriangles or DrawTrianglesShader with EvenOdd fill mode
|
// The returned values are intended to be passed to DrawTriangles or DrawTrianglesShader with the EvenOdd fill mode
|
||||||
// in order to render a complex polygon like a concave polygon, a polygon with holes, or a self-intersecting polygon.
|
// in order to render a complex polygon like a concave polygon, a polygon with holes, or a self-intersecting polygon.
|
||||||
//
|
//
|
||||||
// The returned vertices and indices should be rendered with a solid (non-transparent) color with the default Blend (source-over).
|
// The returned vertices and indices should be rendered with a solid (non-transparent) color with the default Blend (source-over).
|
||||||
@ -452,8 +452,8 @@ type StrokeOptions struct {
|
|||||||
//
|
//
|
||||||
// The returned vertice's SrcX and SrcY are 0, and ColorR, ColorG, ColorB, and ColorA are 1.
|
// The returned vertice's SrcX and SrcY are 0, and ColorR, ColorG, ColorB, and ColorA are 1.
|
||||||
//
|
//
|
||||||
// The returned values are intended to be passed to DrawTriangles or DrawTrianglesShader with a solid (non-transparent) color.
|
// The returned values are intended to be passed to DrawTriangles or DrawTrianglesShader with a solid (non-transparent) color
|
||||||
// The fill mode doesn't have to be the EvenOdd fill mode.
|
// with the FillAll fill mode (not the EvenOdd fill mode).
|
||||||
func (p *Path) AppendVerticesAndIndicesForStroke(vertices []ebiten.Vertex, indices []uint16, op *StrokeOptions) ([]ebiten.Vertex, []uint16) {
|
func (p *Path) AppendVerticesAndIndicesForStroke(vertices []ebiten.Vertex, indices []uint16, op *StrokeOptions) ([]ebiten.Vertex, []uint16) {
|
||||||
if op == nil {
|
if op == nil {
|
||||||
return vertices, indices
|
return vertices, indices
|
||||||
|
Loading…
Reference in New Issue
Block a user