Remove the first argument of FillFramebuffer

This commit is contained in:
Hajime Hoshi 2015-01-15 23:42:08 +09:00
parent 3e376cae18
commit 2ec8c39cdd
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -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

View File

@ -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))