gli

package
v0.0.0-...-eb6d389 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MIT, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SyncAlreadySignaled    = iSyncResult{raw.SyncAlreadySignaled}
	SyncTimeoutExpired     = iSyncResult{raw.SyncTimeoutExpired}
	SyncConditionSatisfied = iSyncResult{raw.SyncConditionSatisfied}
	SyncWaitFailed         = iSyncResult{raw.SyncWaitFailed}
)
View Source
var (
	BindArrayBuffer             = iBindTarget{raw.BindTargetArrayBuffer}
	BindCopyReadBuffer          = iBindTarget{raw.BindTargetCopyReadBuffer}
	BindCopyWriteBuffer         = iBindTarget{raw.BindTargetCopyWriteBuffer}
	BindDrawIndirectBuffer      = iBindTarget{raw.BindTargetDrawIndirectBuffer}
	BindElementArrayBuffer      = iBindTarget{raw.BindTargetElementArrayBuffer}
	BindPixelPackBuffer         = iBindTarget{raw.BindTargetPixelPackBuffer}
	BindPixelUnpackBuffer       = iBindTarget{raw.BindTargetPixelUnpackBuffer}
	BindTextureBuffer           = iBindTarget{raw.BindTargetTextureBuffer}
	BindTransformFeedbackBuffer = iBindTarget{raw.BindTargetTransformFeedbackBuffer}
	BindUniformBuffer           = iBindTarget{raw.BindTargetUniformBuffer}
)
View Source
var (
	DrawPoints                 = iDrawMode{raw.DrawPoints}
	DrawLineStrip              = iDrawMode{raw.DrawLineStrip}
	DrawLineLoop               = iDrawMode{raw.DrawLineLoop}
	DrawLines                  = iDrawMode{raw.DrawLines}
	DrawLineStripAdjacency     = iDrawMode{raw.DrawLineStripAdjacency}
	DrawLinesAdjacency         = iDrawMode{raw.DrawLinesAdjacency}
	DrawTriangleStrip          = iDrawMode{raw.DrawTriangleStrip}
	DrawTriangleFan            = iDrawMode{raw.DrawTriangleFan}
	DrawTriangles              = iDrawMode{raw.DrawTriangles}
	DrawTriangleStripAdjacency = iDrawMode{raw.DrawTriangleStripAdjacency}
	DrawTrianglesAdjacency     = iDrawMode{raw.DrawTrianglesAdjacency}
	DrawPatches                = iDrawMode{raw.DrawPatches}
)
View Source
var (
	VertexShader   = iShaderType{raw.ShaderTypeVertex}
	GeometryShader = iShaderType{raw.ShaderTypeGeometry}
	FragmentShader = iShaderType{raw.ShaderTypeFragment}
)
View Source
var (
	StaticDraw  = iAccessType{raw.AccessTypeStaticDraw}
	StaticRead  = iAccessType{raw.AccessTypeStaticRead}
	StaticCopy  = iAccessType{raw.AccessTypeStaticCopy}
	StreamDraw  = iAccessType{raw.AccessTypeStreamDraw}
	StreamRead  = iAccessType{raw.AccessTypeStreamRead}
	StreamCopy  = iAccessType{raw.AccessTypeStreamCopy}
	DynamicDraw = iAccessType{raw.AccessTypeDynamicDraw}
	DynamicRead = iAccessType{raw.AccessTypeDynamicRead}
	DynamicCopy = iAccessType{raw.AccessTypeDynamicCopy}
)
View Source
var (
	FmByte                = iDataFormat{raw.DataFormatByte}
	FmUByte               = iDataFormat{raw.DataFormatUnsignedByte}
	FmShort               = iDataFormat{raw.DataFormatShort}
	FmUShort              = iDataFormat{raw.DataFormatUnsignedShort}
	FmInt                 = iDataFormat{raw.DataFormatInt}
	FmUInt                = iDataFormat{raw.DataFormatUnsignedInt}
	FmHalfFloat           = iDataFormat{raw.DataFormatHalfFloat}
	FmFloat               = iDataFormat{raw.DataFormatFloat}
	FmDouble              = iDataFormat{raw.DataFormatDouble}
	FmFixed               = iDataFormat{raw.DataFormatFixed}
	FmIntRev_2_10_10_10   = iDataFormat{raw.DataFormatIntRev_2_10_10_10}
	FmUIntRev_2_10_10_10  = iDataFormat{raw.DataFormatUnsignedIntRev_2_10_10_10}
	FmUIntRev_10F_11F_11F = iDataFormat{raw.DataFormatUnsignedIntRev_10F_11F_11F}
)
View Source
var (
	IndexByte  = iIndexType{raw.IndexFormatByte}
	IndexShort = iIndexType{raw.IndexFormatShort}
	IndexInt   = iIndexType{raw.IndexFormatInt}
)
View Source
var (
	Float        = iDataType{raw.DataTypeFloat}
	Float2       = iDataType{raw.DataTypeFloatVec2}
	Float3       = iDataType{raw.DataTypeFloatVec3}
	Float4       = iDataType{raw.DataTypeFloatVec4}
	FloatMat2    = iDataType{raw.DataTypeFloatMat2}
	FloatMat3    = iDataType{raw.DataTypeFloatMat3}
	FloatMat4    = iDataType{raw.DataTypeFloatMat4}
	FloatMat2x3  = iDataType{raw.DataTypeFloatMat2x3}
	FloatMat2x4  = iDataType{raw.DataTypeFloatMat2x4}
	FloatMat3x2  = iDataType{raw.DataTypeFloatMat3x2}
	FloatMat3x4  = iDataType{raw.DataTypeFloatMat3x4}
	FloatMat4x2  = iDataType{raw.DataTypeFloatMat4x2}
	FloatMat4x3  = iDataType{raw.DataTypeFloatMat4x3}
	Int          = iDataType{raw.DataTypeInt}
	Int2         = iDataType{raw.DataTypeIntVec2}
	Int3         = iDataType{raw.DataTypeIntVec3}
	Int4         = iDataType{raw.DataTypeIntVec4}
	UInt         = iDataType{raw.DataTypeUnsignedInt}
	UInt2        = iDataType{raw.DataTypeUnsignedIntVec2}
	UInt3        = iDataType{raw.DataTypeUnsignedIntVec3}
	UInt4        = iDataType{raw.DataTypeUnsignedIntVec4}
	Double       = iDataType{raw.DataTypeDouble}
	Double2      = iDataType{raw.DataTypeDoubleVec2}
	Double3      = iDataType{raw.DataTypeDoubleVec3}
	Double4      = iDataType{raw.DataTypeDoubleVec4}
	DoubleMat2   = iDataType{raw.DataTypeDoubleMat2}
	DoubleMat3   = iDataType{raw.DataTypeDoubleMat3}
	DoubleMat4   = iDataType{raw.DataTypeDoubleMat4}
	DoubleMat2x3 = iDataType{raw.DataTypeDoubleMat2x3}
	DoubleMat2x4 = iDataType{raw.DataTypeDoubleMat2x4}
	DoubleMat3x2 = iDataType{raw.DataTypeDoubleMat3x2}
	DoubleMat3x4 = iDataType{raw.DataTypeDoubleMat3x4}
	DoubleMat4x2 = iDataType{raw.DataTypeDoubleMat4x2}
	DoubleMat4x3 = iDataType{raw.DataTypeDoubleMat4x3}
)

Valid for attributes and uniforms

View Source
var (
	Bool                          = iDataType{raw.DataTypeBool}
	Bool2                         = iDataType{raw.DataTypeBool2}
	Bool3                         = iDataType{raw.DataTypeBool3}
	Bool4                         = iDataType{raw.DataTypeBool4}
	Sampler1d                     = iDataType{raw.DataTypeSampler1d}
	Sampler2d                     = iDataType{raw.DataTypeSampler2d}
	Sampler3d                     = iDataType{raw.DataTypeSampler3d}
	SamplerCube                   = iDataType{raw.DataTypeSamplerCube}
	SamplerCubeShadow             = iDataType{raw.DataTypeSamplerCubeShadow}
	Sampler1dShadow               = iDataType{raw.DataTypeSampler1dShadow}
	Sampler2dShadow               = iDataType{raw.DataTypeSampler2dShadow}
	Sampler1dArray                = iDataType{raw.DataTypeSampler1dArray}
	Sampler2dArray                = iDataType{raw.DataTypeSampler2dArray}
	Sampler1dArrayShadow          = iDataType{raw.DataTypeSampler1dArrayShadow}
	Sampler2dArrayShadow          = iDataType{raw.DataTypeSampler2dArrayShadow}
	Sampler2dMultisample          = iDataType{raw.DataTypeSampler2dMultisample}
	Sampler2dMultisampleArray     = iDataType{raw.DataTypeSampler2dMultisampleArray}
	SamplerBuffer                 = iDataType{raw.DataTypeSamplerBuffer}
	Sampler2dRect                 = iDataType{raw.DataTypeSampler2dRect}
	Sampler2dRectShadow           = iDataType{raw.DataTypeSampler2dRectShadow}
	IntSampler1d                  = iDataType{raw.DataTypeIntSampler1d}
	IntSampler2d                  = iDataType{raw.DataTypeIntSampler2d}
	IntSampler3d                  = iDataType{raw.DataTypeIntSampler3d}
	IntSamplerCube                = iDataType{raw.DataTypeIntSamplerCube}
	IntSampler1dArray             = iDataType{raw.DataTypeIntSampler1dArray}
	IntSampler2dArray             = iDataType{raw.DataTypeIntSampler2dArray}
	IntSampler2dMultisample       = iDataType{raw.DataTypeIntSampler2dMultisample}
	IntSampler2dMultisampleArray  = iDataType{raw.DataTypeIntSampler2dMultisampleArray}
	IntSamplerBuffer              = iDataType{raw.DataTypeIntSamplerBuffer}
	IntSampler2dRect              = iDataType{raw.DataTypeIntSampler2dRect}
	UIntSampler1d                 = iDataType{raw.DataTypeUIntSampler1d}
	UIntSampler2d                 = iDataType{raw.DataTypeUIntSampler2d}
	UIntSampler3d                 = iDataType{raw.DataTypeUIntSampler3d}
	UIntSamplerCube               = iDataType{raw.DataTypeUIntSamplerCube}
	UIntSampler1dArray            = iDataType{raw.DataTypeUIntSampler1dArray}
	UIntSampler2dArray            = iDataType{raw.DataTypeUIntSampler2dArray}
	UIntSampler2dMultisample      = iDataType{raw.DataTypeUIntSampler2dMultisample}
	UIntSampler2dMultisampleArray = iDataType{raw.DataTypeUIntSampler2dMultisampleArray}
	UIntSamplerBuffer             = iDataType{raw.DataTypeUIntSamplerBuffer}
	UIntSampler2dRect             = iDataType{raw.DataTypeUIntSampler2dRect}
	Image1d                       = iDataType{raw.DataTypeImage1d}
	Image2d                       = iDataType{raw.DataTypeImage2d}
	Image3d                       = iDataType{raw.DataTypeImage3d}
	ImageCube                     = iDataType{raw.DataTypeImageCube}
	Image1dArray                  = iDataType{raw.DataTypeImage1dArray}
	Image2dArray                  = iDataType{raw.DataTypeImage2dArray}
	Image2dMultisample            = iDataType{raw.DataTypeImage2dMultisample}
	Image2dMultisampleArray       = iDataType{raw.DataTypeImage2dMultisampleArray}
	ImageBuffer                   = iDataType{raw.DataTypeImageBuffer}
	Image2dRect                   = iDataType{raw.DataTypeImage2dRect}
	Int1d                         = iDataType{raw.DataTypeInt1d}
	Int2d                         = iDataType{raw.DataTypeInt2d}
	Int3d                         = iDataType{raw.DataTypeInt3d}
	IntCube                       = iDataType{raw.DataTypeIntCube}
	Int1dArray                    = iDataType{raw.DataTypeInt1dArray}
	Int2dArray                    = iDataType{raw.DataTypeInt2dArray}
	Int2dMultisample              = iDataType{raw.DataTypeInt2dMultisample}
	Int2dMultisampleArray         = iDataType{raw.DataTypeInt2dMultisampleArray}
	IntBuffer                     = iDataType{raw.DataTypeIntBuffer}
	Int2dRect                     = iDataType{raw.DataTypeInt2dRect}
	UInt1d                        = iDataType{raw.DataTypeUInt1d}
	UInt2d                        = iDataType{raw.DataTypeUInt2d}
	UInt3d                        = iDataType{raw.DataTypeUInt3d}
	UIntCube                      = iDataType{raw.DataTypeUIntCube}
	UInt1dArray                   = iDataType{raw.DataTypeUInt1dArray}
	UInt2dArray                   = iDataType{raw.DataTypeUInt2dArray}
	UInt2dMultisample             = iDataType{raw.DataTypeUInt2dMultisample}
	UInt2dMultisampleArray        = iDataType{raw.DataTypeUInt2dMultisampleArray}
	UIntBuffer                    = iDataType{raw.DataTypeUIntBuffer}
	UInt2dRect                    = iDataType{raw.DataTypeUInt2dRect}
	UIntAtomicCounter             = iDataType{raw.DataTypeUIntAtomicCounter}
)

Valid only for uniforms

Functions

func NewMeshBuilder

func NewMeshBuilder(iface interface{}) *meshBuilder

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func (*Buffer) Data

func (buffer *Buffer) Data(data []byte)

func (*Buffer) Delete

func (buffer *Buffer) Delete()

func (*Buffer) SubData

func (buffer *Buffer) SubData(offset int, data []byte)

type Context

type Context struct {
	// contains filtered or unexported fields
}

func New

func New(r raw.Raw) *Context

func (*Context) ClearColor

func (ctx *Context) ClearColor(r, g, b, a float32)

func (*Context) Fence

func (ctx *Context) Fence() *Sync

func (*Context) Init

func (ctx *Context) Init() error

func (*Context) NewBuffer

func (ctx *Context) NewBuffer(access iAccessType, target iBindTarget) *Buffer

func (*Context) NewProgram

func (ctx *Context) NewProgram(shaders ...*Shader) (*Program, error)

func (*Context) NewShader

func (ctx *Context) NewShader(typ iShaderType, sources ...string) (*Shader, error)

func (*Context) NewVertexArray

func (ctx *Context) NewVertexArray() *VertexArray

func (*Context) SafeDelete

func (ctx *Context) SafeDelete(deletables ...Deletable)

func (*Context) VertexAttribute

func (ctx *Context) VertexAttribute(fulltype FullType, names ...string)

func (*Context) Viewport

func (ctx *Context) Viewport(x, y, width, height int)

type Deletable

type Deletable interface {
	Delete()
}

type Extent

type Extent struct {
	// contains filtered or unexported fields
}

type ExtentBuilder

type ExtentBuilder struct {
	// contains filtered or unexported fields
}

func ExtentBuild

func ExtentBuild(componentsize int) ExtentBuilder

func (ExtentBuilder) Ext

func (b ExtentBuilder) Ext(components int, ext *Extent) ExtentBuilder

func (ExtentBuilder) Seq

func (b ExtentBuilder) Seq(num int) ExtentBuilder

func (ExtentBuilder) Size

func (b ExtentBuilder) Size(componentsize int) ExtentBuilder

func (ExtentBuilder) Skip

func (b ExtentBuilder) Skip(components int) ExtentBuilder

type FullFormat

type FullFormat struct {
	DataFormat iDataFormat
	Components int
}

func (FullFormat) String

func (ff FullFormat) String() string

type FullType

type FullType struct {
	DataType  iDataType
	ArraySize int
}

func (FullType) String

func (ft FullType) String() string

type Mesh

type Mesh struct {
	// contains filtered or unexported fields
}

func (*Mesh) Instance

func (mesh *Mesh) Instance() *MeshInstance

type MeshInstance

type MeshInstance struct {
	// contains filtered or unexported fields
}

func (*MeshInstance) Object

func (instance *MeshInstance) Object(vertex interface{}, index interface{}) (*Object, error)

func (*MeshInstance) Transmit

func (instance *MeshInstance) Transmit(ctx *Context)

type MeshWriter

type MeshWriter struct {
	// contains filtered or unexported fields
}

func NewMeshWriter

func NewMeshWriter(w io.Writer) *MeshWriter

func (*MeshWriter) GetError

func (mw *MeshWriter) GetError() error

func (*MeshWriter) Pad

func (mw *MeshWriter) Pad(num int)

func (*MeshWriter) PutFloat32

func (mw *MeshWriter) PutFloat32(f float32) *MeshWriter

func (*MeshWriter) PutFloat64

func (mw *MeshWriter) PutFloat64(f float64) *MeshWriter

func (*MeshWriter) PutInt16

func (mw *MeshWriter) PutInt16(bits int16) *MeshWriter

func (*MeshWriter) PutInt32

func (mw *MeshWriter) PutInt32(bits int32) *MeshWriter

func (*MeshWriter) PutInt64

func (mw *MeshWriter) PutInt64(bits int64) *MeshWriter

func (*MeshWriter) PutInt8

func (mw *MeshWriter) PutInt8(bits int8) *MeshWriter

func (*MeshWriter) PutUint16

func (mw *MeshWriter) PutUint16(bits uint16) *MeshWriter

func (*MeshWriter) PutUint32

func (mw *MeshWriter) PutUint32(bits uint32) *MeshWriter

func (*MeshWriter) PutUint64

func (mw *MeshWriter) PutUint64(bits uint64) *MeshWriter

func (*MeshWriter) PutUint8

func (mw *MeshWriter) PutUint8(bits uint8) *MeshWriter

func (*MeshWriter) SetError

func (mw *MeshWriter) SetError(err error)

func (*MeshWriter) Write

func (mw *MeshWriter) Write(b []byte) (n int, err error)

type Object

type Object struct {
	// contains filtered or unexported fields
}

type Program

type Program struct {
	// contains filtered or unexported fields
}

func (*Program) Delete

func (program *Program) Delete()

func (*Program) Uniforms

func (program *Program) Uniforms() *ProgramUniformCollection

type ProgramUniform

type ProgramUniform struct {
	// contains filtered or unexported fields
}

func (*ProgramUniform) Type

func (attr *ProgramUniform) Type() (datatype iDataType, arraysize int)

type ProgramUniformCollection

type ProgramUniformCollection struct {
	// contains filtered or unexported fields
}

func (*ProgramUniformCollection) ByName

func (coll *ProgramUniformCollection) ByName(name string) *ProgramUniform

type Shader

type Shader struct {
	// contains filtered or unexported fields
}

func (*Shader) Delete

func (shader *Shader) Delete()

type Sync

type Sync struct {
	// contains filtered or unexported fields
}

func (*Sync) ClientWait

func (sync *Sync) ClientWait(flush bool, nanos uint64) iSyncResult

type VertexArray

type VertexArray struct {
	// contains filtered or unexported fields
}

func (*VertexArray) Delete

func (vao *VertexArray) Delete()

Jump to

Keyboard shortcuts

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