remove Bool type
This commit is contained in:
parent
b6851f8ff4
commit
029f983440
|
@ -29,8 +29,7 @@ type AttrType int
|
||||||
|
|
||||||
// List of all possible attribute types.
|
// List of all possible attribute types.
|
||||||
const (
|
const (
|
||||||
Bool AttrType = iota
|
Int AttrType = iota
|
||||||
Int
|
|
||||||
Float
|
Float
|
||||||
Vec2
|
Vec2
|
||||||
Vec3
|
Vec3
|
||||||
|
@ -49,7 +48,6 @@ const (
|
||||||
// Size returns the size of a type in bytes.
|
// Size returns the size of a type in bytes.
|
||||||
func (at AttrType) Size() int {
|
func (at AttrType) Size() int {
|
||||||
sizeOf := map[AttrType]int{
|
sizeOf := map[AttrType]int{
|
||||||
Bool: 1,
|
|
||||||
Int: 4,
|
Int: 4,
|
||||||
Float: 8,
|
Float: 8,
|
||||||
Vec2: 2 * 8,
|
Vec2: 2 * 8,
|
||||||
|
|
Loading…
Reference in New Issue