mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
Remove the first argument of FillFramebuffer
This commit is contained in:
parent
3e376cae18
commit
2ec8c39cdd
@ -102,7 +102,7 @@ func (f *Framebuffer) Fill(c *opengl.Context, r, g, b, a float64) error {
|
||||
if err := f.setAsViewport(c); err != nil {
|
||||
return err
|
||||
}
|
||||
return c.FillFramebuffer(f.native, r, g, b, a)
|
||||
return c.FillFramebuffer(r, g, b, a)
|
||||
}
|
||||
|
||||
func (f *Framebuffer) DrawTexture(c *opengl.Context, t *Texture, quads TextureQuads, geo, clr Matrix) error {
|
||||
|
@ -121,7 +121,7 @@ func (c *Context) SetViewport(f Framebuffer, width, height int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Context) FillFramebuffer(f Framebuffer, r, g, b, a float64) error {
|
||||
func (c *Context) FillFramebuffer(r, g, b, a float64) error {
|
||||
gl.ClearColor(gl.GLclampf(r), gl.GLclampf(g), gl.GLclampf(b), gl.GLclampf(a))
|
||||
gl.Clear(gl.COLOR_BUFFER_BIT)
|
||||
return nil
|
||||
|
@ -165,7 +165,7 @@ func (c *Context) SetViewport(f Framebuffer, width, height int) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Context) FillFramebuffer(f Framebuffer, r, g, b, a float64) error {
|
||||
func (c *Context) FillFramebuffer(r, g, b, a float64) error {
|
||||
// TODO: Use f?
|
||||
gl := c.gl
|
||||
gl.ClearColor(float32(r), float32(g), float32(b), float32(a))
|
||||
|
Loading…
Reference in New Issue
Block a user