opengl: Remove 'normalize' argument from VertexAttribPointer

This commit is contained in:
Hajime Hoshi
2017-12-03 19:21:59 +09:00
parent 2e1e4adb84
commit eeea25f202
5 changed files with 32 additions and 35 deletions

View File

@@ -14,12 +14,14 @@
package opengl
type Filter int
type ShaderType int
type BufferType int
type BufferUsage int
type Mode int
type operation int
type (
Filter int
ShaderType int
BufferType int
BufferUsage int
Mode int
operation int
)
type CompositeMode int
@@ -69,7 +71,7 @@ func operations(mode CompositeMode) (src operation, dst operation) {
case CompositeModeLighter:
return one, one
default:
panic("not reach")
panic("not reached")
}
}
@@ -82,6 +84,6 @@ func (d DataType) SizeInBytes() int {
case Float:
return 4
default:
panic("not reach")
panic("not reached")
}
}