mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Optimization
This commit is contained in:
parent
38d343f3e7
commit
4e4cd85a35
@ -166,7 +166,7 @@ func (context *Context) DrawTextureParts(
|
||||
C.glEnableClientState(C.GL_TEXTURE_COORD_ARRAY)
|
||||
C.glEnableVertexAttribArray(C.GLuint(vertexAttrLocation))
|
||||
C.glEnableVertexAttribArray(C.GLuint(textureAttrLocation))
|
||||
// TODO: Refactoring
|
||||
// TODO: Optimization
|
||||
for _, part := range parts {
|
||||
x1 := float32(part.LocationX)
|
||||
x2 := float32(part.LocationX + part.Source.Width)
|
||||
|
Loading…
Reference in New Issue
Block a user