types

package
v0.0.0-...-124f97e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownType = errors.New("unknown data type")

ErrUnknownType is returend when an illegal GL type name is used

Functions

This section is empty.

Types

type Type

type Type uint32

Type holds OpenGL type constants

const (
	Bool Type
	Int8
	UInt8
	Int16
	UInt16
	Int32
	UInt32
	Float
	Vec2f
	Vec3f
	Vec4f
	Mat3f
	Mat4f
	Double
	Texture2D
)

GL Type Constants

func TypeFromString

func TypeFromString(name string) (Type, error)

TypeFromString returns the GL identifier & size of a data type name

func (Type) Integer

func (t Type) Integer() bool

Integer returns the if the type is an integer type

func (Type) Size

func (t Type) Size() int

Size returns the byte size of the GL type

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL