mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 15:04:28 +01:00
ebiten: remove 'experimental' from the shader APIs
Now the Kage shaders are used for the screen and will be used for ColorM. Updatse #2046 Updates #2171
This commit is contained in:
parent
cff64894cc
commit
9d06875243
8
image.go
8
image.go
@ -402,8 +402,6 @@ func (i *Image) DrawTriangles(vertices []Vertex, indices []uint16, img *Image, o
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DrawTrianglesShaderOptions represents options for DrawTrianglesShader.
|
// DrawTrianglesShaderOptions represents options for DrawTrianglesShader.
|
||||||
//
|
|
||||||
// This API is experimental.
|
|
||||||
type DrawTrianglesShaderOptions struct {
|
type DrawTrianglesShaderOptions struct {
|
||||||
// CompositeMode is a composite mode to draw.
|
// CompositeMode is a composite mode to draw.
|
||||||
// The default (zero) value is regular alpha blending.
|
// The default (zero) value is regular alpha blending.
|
||||||
@ -451,8 +449,6 @@ func init() {
|
|||||||
// When a specified image is non-nil and is disposed, DrawTrianglesShader panics.
|
// When a specified image is non-nil and is disposed, DrawTrianglesShader panics.
|
||||||
//
|
//
|
||||||
// When the image i is disposed, DrawTrianglesShader does nothing.
|
// When the image i is disposed, DrawTrianglesShader does nothing.
|
||||||
//
|
|
||||||
// This API is experimental.
|
|
||||||
func (i *Image) DrawTrianglesShader(vertices []Vertex, indices []uint16, shader *Shader, options *DrawTrianglesShaderOptions) {
|
func (i *Image) DrawTrianglesShader(vertices []Vertex, indices []uint16, shader *Shader, options *DrawTrianglesShaderOptions) {
|
||||||
i.copyCheck()
|
i.copyCheck()
|
||||||
|
|
||||||
@ -540,8 +536,6 @@ func (i *Image) DrawTrianglesShader(vertices []Vertex, indices []uint16, shader
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DrawRectShaderOptions represents options for DrawRectShader.
|
// DrawRectShaderOptions represents options for DrawRectShader.
|
||||||
//
|
|
||||||
// This API is experimental.
|
|
||||||
type DrawRectShaderOptions struct {
|
type DrawRectShaderOptions struct {
|
||||||
// GeoM is a geometry matrix to draw.
|
// GeoM is a geometry matrix to draw.
|
||||||
// The default (zero) value is identity, which draws the rectangle at (0, 0).
|
// The default (zero) value is identity, which draws the rectangle at (0, 0).
|
||||||
@ -583,8 +577,6 @@ func init() {
|
|||||||
// When one of the specified image is non-nil and is disposed, DrawRectShader panics.
|
// When one of the specified image is non-nil and is disposed, DrawRectShader panics.
|
||||||
//
|
//
|
||||||
// When the image i is disposed, DrawRectShader does nothing.
|
// When the image i is disposed, DrawRectShader does nothing.
|
||||||
//
|
|
||||||
// This API is experimental.
|
|
||||||
func (i *Image) DrawRectShader(width, height int, shader *Shader, options *DrawRectShaderOptions) {
|
func (i *Image) DrawRectShader(width, height int, shader *Shader, options *DrawRectShaderOptions) {
|
||||||
i.copyCheck()
|
i.copyCheck()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user