mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
graphics: Remove indexBufferLines
This commit is contained in:
parent
d6bfa72c5c
commit
ba6d10dec0
@ -21,9 +21,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type openGLState struct {
|
type openGLState struct {
|
||||||
indexBufferLines opengl.Buffer
|
indexBufferQuads opengl.Buffer
|
||||||
indexBufferQuads opengl.Buffer
|
programTexture opengl.Program
|
||||||
programTexture opengl.Program
|
|
||||||
lastProgram opengl.Program
|
lastProgram opengl.Program
|
||||||
lastProjectionMatrix []float32
|
lastProjectionMatrix []float32
|
||||||
lastModelviewMatrix []float32
|
lastModelviewMatrix []float32
|
||||||
@ -89,12 +89,6 @@ func (s *openGLState) initialize(c *opengl.Context) error {
|
|||||||
}
|
}
|
||||||
s.indexBufferQuads = c.NewBuffer(c.ElementArrayBuffer, indices, c.StaticDraw)
|
s.indexBufferQuads = c.NewBuffer(c.ElementArrayBuffer, indices, c.StaticDraw)
|
||||||
|
|
||||||
indices = make([]uint16, indicesNum)
|
|
||||||
for i := 0; i < len(indices); i++ {
|
|
||||||
indices[i] = uint16(i)
|
|
||||||
}
|
|
||||||
s.indexBufferLines = c.NewBuffer(c.ElementArrayBuffer, indices, c.StaticDraw)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user