glkit

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package glkit provides a fluent Go API over the macOS GLKit framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Types

Each base type below lists the concrete types you construct and pass where the base is accepted:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GLKMathDegreesToRadians

func GLKMathDegreesToRadians(degrees float32) float32

GLKMathDegreesToRadians calls the GLKit framework function GLKMathDegreesToRadians.

func GLKMathProject

func GLKMathProject(object unsafe.Pointer, model unsafe.Pointer, projection unsafe.Pointer) (result unsafe.Pointer, viewport int32)

GLKMathProject calls the GLKit framework function GLKMathProject.

func GLKMathRadiansToDegrees

func GLKMathRadiansToDegrees(radians float32) float32

GLKMathRadiansToDegrees calls the GLKit framework function GLKMathRadiansToDegrees.

func GLKMathUnproject

func GLKMathUnproject(window unsafe.Pointer, model unsafe.Pointer, projection unsafe.Pointer) (result unsafe.Pointer, viewport int32, success bool)

GLKMathUnproject calls the GLKit framework function GLKMathUnproject.

func GLKMatrix3Add

func GLKMatrix3Add(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer

GLKMatrix3Add calls the GLKit framework function GLKMatrix3Add.

func GLKMatrix3GetColumn

func GLKMatrix3GetColumn(matrix unsafe.Pointer, column int) unsafe.Pointer

GLKMatrix3GetColumn calls the GLKit framework function GLKMatrix3GetColumn.

func GLKMatrix3GetMatrix2

func GLKMatrix3GetMatrix2(matrix unsafe.Pointer) unsafe.Pointer

GLKMatrix3GetMatrix2 calls the GLKit framework function GLKMatrix3GetMatrix2.

func GLKMatrix3GetRow

func GLKMatrix3GetRow(matrix unsafe.Pointer, row int) unsafe.Pointer

GLKMatrix3GetRow calls the GLKit framework function GLKMatrix3GetRow.

func GLKMatrix3Identity

func GLKMatrix3Identity() uintptr

GLKMatrix3Identity returns the address of the symbol GLKMatrix3Identity.

func GLKMatrix3Invert

func GLKMatrix3Invert(matrix unsafe.Pointer) (result unsafe.Pointer, isInvertible bool)

GLKMatrix3Invert calls the GLKit framework function GLKMatrix3Invert.

func GLKMatrix3InvertAndTranspose

func GLKMatrix3InvertAndTranspose(matrix unsafe.Pointer) (result unsafe.Pointer, isInvertible bool)

GLKMatrix3InvertAndTranspose calls the GLKit framework function GLKMatrix3InvertAndTranspose.

func GLKMatrix3Make

func GLKMatrix3Make(m00 float32, m01 float32, m02 float32, m10 float32, m11 float32, m12 float32, m20 float32, m21 float32, m22 float32) unsafe.Pointer

GLKMatrix3Make calls the GLKit framework function GLKMatrix3Make.

func GLKMatrix3MakeAndTranspose

func GLKMatrix3MakeAndTranspose(m00 float32, m01 float32, m02 float32, m10 float32, m11 float32, m12 float32, m20 float32, m21 float32, m22 float32) unsafe.Pointer

GLKMatrix3MakeAndTranspose calls the GLKit framework function GLKMatrix3MakeAndTranspose.

func GLKMatrix3MakeRotation

func GLKMatrix3MakeRotation(radians float32, x float32, y float32, z float32) unsafe.Pointer

GLKMatrix3MakeRotation calls the GLKit framework function GLKMatrix3MakeRotation.

func GLKMatrix3MakeScale

func GLKMatrix3MakeScale(sx float32, sy float32, sz float32) unsafe.Pointer

GLKMatrix3MakeScale calls the GLKit framework function GLKMatrix3MakeScale.

func GLKMatrix3MakeWithArray

func GLKMatrix3MakeWithArray() (result unsafe.Pointer, values float32)

GLKMatrix3MakeWithArray calls the GLKit framework function GLKMatrix3MakeWithArray.

func GLKMatrix3MakeWithArrayAndTranspose

func GLKMatrix3MakeWithArrayAndTranspose() (result unsafe.Pointer, values float32)

GLKMatrix3MakeWithArrayAndTranspose calls the GLKit framework function GLKMatrix3MakeWithArrayAndTranspose.

func GLKMatrix3MakeWithColumns

func GLKMatrix3MakeWithColumns(column0 unsafe.Pointer, column1 unsafe.Pointer, column2 unsafe.Pointer) unsafe.Pointer

GLKMatrix3MakeWithColumns calls the GLKit framework function GLKMatrix3MakeWithColumns.

func GLKMatrix3MakeWithQuaternion

func GLKMatrix3MakeWithQuaternion(quaternion unsafe.Pointer) unsafe.Pointer

GLKMatrix3MakeWithQuaternion calls the GLKit framework function GLKMatrix3MakeWithQuaternion.

func GLKMatrix3MakeWithRows

func GLKMatrix3MakeWithRows(row0 unsafe.Pointer, row1 unsafe.Pointer, row2 unsafe.Pointer) unsafe.Pointer

GLKMatrix3MakeWithRows calls the GLKit framework function GLKMatrix3MakeWithRows.

func GLKMatrix3MakeXRotation

func GLKMatrix3MakeXRotation(radians float32) unsafe.Pointer

GLKMatrix3MakeXRotation calls the GLKit framework function GLKMatrix3MakeXRotation.

func GLKMatrix3MakeYRotation

func GLKMatrix3MakeYRotation(radians float32) unsafe.Pointer

GLKMatrix3MakeYRotation calls the GLKit framework function GLKMatrix3MakeYRotation.

func GLKMatrix3MakeZRotation

func GLKMatrix3MakeZRotation(radians float32) unsafe.Pointer

GLKMatrix3MakeZRotation calls the GLKit framework function GLKMatrix3MakeZRotation.

func GLKMatrix3Multiply

func GLKMatrix3Multiply(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer

GLKMatrix3Multiply calls the GLKit framework function GLKMatrix3Multiply.

func GLKMatrix3MultiplyVector3

func GLKMatrix3MultiplyVector3(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKMatrix3MultiplyVector3 calls the GLKit framework function GLKMatrix3MultiplyVector3.

func GLKMatrix3MultiplyVector3Array

func GLKMatrix3MultiplyVector3Array(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)

GLKMatrix3MultiplyVector3Array calls the GLKit framework function GLKMatrix3MultiplyVector3Array.

func GLKMatrix3Rotate

func GLKMatrix3Rotate(matrix unsafe.Pointer, radians float32, x float32, y float32, z float32) unsafe.Pointer

GLKMatrix3Rotate calls the GLKit framework function GLKMatrix3Rotate.

func GLKMatrix3RotateWithVector3

func GLKMatrix3RotateWithVector3(matrix unsafe.Pointer, radians float32, axisVector unsafe.Pointer) unsafe.Pointer

GLKMatrix3RotateWithVector3 calls the GLKit framework function GLKMatrix3RotateWithVector3.

func GLKMatrix3RotateWithVector4

func GLKMatrix3RotateWithVector4(matrix unsafe.Pointer, radians float32, axisVector unsafe.Pointer) unsafe.Pointer

GLKMatrix3RotateWithVector4 calls the GLKit framework function GLKMatrix3RotateWithVector4.

func GLKMatrix3RotateX

func GLKMatrix3RotateX(matrix unsafe.Pointer, radians float32) unsafe.Pointer

GLKMatrix3RotateX calls the GLKit framework function GLKMatrix3RotateX.

func GLKMatrix3RotateY

func GLKMatrix3RotateY(matrix unsafe.Pointer, radians float32) unsafe.Pointer

GLKMatrix3RotateY calls the GLKit framework function GLKMatrix3RotateY.

func GLKMatrix3RotateZ

func GLKMatrix3RotateZ(matrix unsafe.Pointer, radians float32) unsafe.Pointer

GLKMatrix3RotateZ calls the GLKit framework function GLKMatrix3RotateZ.

func GLKMatrix3Scale

func GLKMatrix3Scale(matrix unsafe.Pointer, sx float32, sy float32, sz float32) unsafe.Pointer

GLKMatrix3Scale calls the GLKit framework function GLKMatrix3Scale.

func GLKMatrix3ScaleWithVector3

func GLKMatrix3ScaleWithVector3(matrix unsafe.Pointer, scaleVector unsafe.Pointer) unsafe.Pointer

GLKMatrix3ScaleWithVector3 calls the GLKit framework function GLKMatrix3ScaleWithVector3.

func GLKMatrix3ScaleWithVector4

func GLKMatrix3ScaleWithVector4(matrix unsafe.Pointer, scaleVector unsafe.Pointer) unsafe.Pointer

GLKMatrix3ScaleWithVector4 calls the GLKit framework function GLKMatrix3ScaleWithVector4.

func GLKMatrix3SetColumn

func GLKMatrix3SetColumn(matrix unsafe.Pointer, column int, vector unsafe.Pointer) unsafe.Pointer

GLKMatrix3SetColumn calls the GLKit framework function GLKMatrix3SetColumn.

func GLKMatrix3SetRow

func GLKMatrix3SetRow(matrix unsafe.Pointer, row int, vector unsafe.Pointer) unsafe.Pointer

GLKMatrix3SetRow calls the GLKit framework function GLKMatrix3SetRow.

func GLKMatrix3Subtract

func GLKMatrix3Subtract(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer

GLKMatrix3Subtract calls the GLKit framework function GLKMatrix3Subtract.

func GLKMatrix3Transpose

func GLKMatrix3Transpose(matrix unsafe.Pointer) unsafe.Pointer

GLKMatrix3Transpose calls the GLKit framework function GLKMatrix3Transpose.

func GLKMatrix4Add

func GLKMatrix4Add(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer

GLKMatrix4Add calls the GLKit framework function GLKMatrix4Add.

func GLKMatrix4GetColumn

func GLKMatrix4GetColumn(matrix unsafe.Pointer, column int) unsafe.Pointer

GLKMatrix4GetColumn calls the GLKit framework function GLKMatrix4GetColumn.

func GLKMatrix4GetMatrix2

func GLKMatrix4GetMatrix2(matrix unsafe.Pointer) unsafe.Pointer

GLKMatrix4GetMatrix2 calls the GLKit framework function GLKMatrix4GetMatrix2.

func GLKMatrix4GetMatrix3

func GLKMatrix4GetMatrix3(matrix unsafe.Pointer) unsafe.Pointer

GLKMatrix4GetMatrix3 calls the GLKit framework function GLKMatrix4GetMatrix3.

func GLKMatrix4GetRow

func GLKMatrix4GetRow(matrix unsafe.Pointer, row int) unsafe.Pointer

GLKMatrix4GetRow calls the GLKit framework function GLKMatrix4GetRow.

func GLKMatrix4Identity

func GLKMatrix4Identity() uintptr

GLKMatrix4Identity returns the address of the symbol GLKMatrix4Identity.

func GLKMatrix4Invert

func GLKMatrix4Invert(matrix unsafe.Pointer) (result unsafe.Pointer, isInvertible bool)

GLKMatrix4Invert calls the GLKit framework function GLKMatrix4Invert.

func GLKMatrix4InvertAndTranspose

func GLKMatrix4InvertAndTranspose(matrix unsafe.Pointer) (result unsafe.Pointer, isInvertible bool)

GLKMatrix4InvertAndTranspose calls the GLKit framework function GLKMatrix4InvertAndTranspose.

func GLKMatrix4Make

func GLKMatrix4Make(m00 float32, m01 float32, m02 float32, m03 float32, m10 float32, m11 float32, m12 float32, m13 float32, m20 float32, m21 float32, m22 float32, m23 float32, m30 float32, m31 float32, m32 float32, m33 float32) unsafe.Pointer

GLKMatrix4Make calls the GLKit framework function GLKMatrix4Make.

func GLKMatrix4MakeAndTranspose

func GLKMatrix4MakeAndTranspose(m00 float32, m01 float32, m02 float32, m03 float32, m10 float32, m11 float32, m12 float32, m13 float32, m20 float32, m21 float32, m22 float32, m23 float32, m30 float32, m31 float32, m32 float32, m33 float32) unsafe.Pointer

GLKMatrix4MakeAndTranspose calls the GLKit framework function GLKMatrix4MakeAndTranspose.

func GLKMatrix4MakeFrustum

func GLKMatrix4MakeFrustum(left float32, right float32, bottom float32, top float32, nearZ float32, farZ float32) unsafe.Pointer

GLKMatrix4MakeFrustum calls the GLKit framework function GLKMatrix4MakeFrustum.

func GLKMatrix4MakeLookAt

func GLKMatrix4MakeLookAt(eyeX float32, eyeY float32, eyeZ float32, centerX float32, centerY float32, centerZ float32, upX float32, upY float32, upZ float32) unsafe.Pointer

GLKMatrix4MakeLookAt calls the GLKit framework function GLKMatrix4MakeLookAt.

func GLKMatrix4MakeOrtho

func GLKMatrix4MakeOrtho(left float32, right float32, bottom float32, top float32, nearZ float32, farZ float32) unsafe.Pointer

GLKMatrix4MakeOrtho calls the GLKit framework function GLKMatrix4MakeOrtho.

func GLKMatrix4MakePerspective

func GLKMatrix4MakePerspective(fovyRadians float32, aspect float32, nearZ float32, farZ float32) unsafe.Pointer

GLKMatrix4MakePerspective calls the GLKit framework function GLKMatrix4MakePerspective.

func GLKMatrix4MakeRotation

func GLKMatrix4MakeRotation(radians float32, x float32, y float32, z float32) unsafe.Pointer

GLKMatrix4MakeRotation calls the GLKit framework function GLKMatrix4MakeRotation.

func GLKMatrix4MakeScale

func GLKMatrix4MakeScale(sx float32, sy float32, sz float32) unsafe.Pointer

GLKMatrix4MakeScale calls the GLKit framework function GLKMatrix4MakeScale.

func GLKMatrix4MakeTranslation

func GLKMatrix4MakeTranslation(tx float32, ty float32, tz float32) unsafe.Pointer

GLKMatrix4MakeTranslation calls the GLKit framework function GLKMatrix4MakeTranslation.

func GLKMatrix4MakeWithArray

func GLKMatrix4MakeWithArray() (result unsafe.Pointer, values float32)

GLKMatrix4MakeWithArray calls the GLKit framework function GLKMatrix4MakeWithArray.

func GLKMatrix4MakeWithArrayAndTranspose

func GLKMatrix4MakeWithArrayAndTranspose() (result unsafe.Pointer, values float32)

GLKMatrix4MakeWithArrayAndTranspose calls the GLKit framework function GLKMatrix4MakeWithArrayAndTranspose.

func GLKMatrix4MakeWithColumns

func GLKMatrix4MakeWithColumns(column0 unsafe.Pointer, column1 unsafe.Pointer, column2 unsafe.Pointer, column3 unsafe.Pointer) unsafe.Pointer

GLKMatrix4MakeWithColumns calls the GLKit framework function GLKMatrix4MakeWithColumns.

func GLKMatrix4MakeWithQuaternion

func GLKMatrix4MakeWithQuaternion(quaternion unsafe.Pointer) unsafe.Pointer

GLKMatrix4MakeWithQuaternion calls the GLKit framework function GLKMatrix4MakeWithQuaternion.

func GLKMatrix4MakeWithRows

func GLKMatrix4MakeWithRows(row0 unsafe.Pointer, row1 unsafe.Pointer, row2 unsafe.Pointer, row3 unsafe.Pointer) unsafe.Pointer

GLKMatrix4MakeWithRows calls the GLKit framework function GLKMatrix4MakeWithRows.

func GLKMatrix4MakeXRotation

func GLKMatrix4MakeXRotation(radians float32) unsafe.Pointer

GLKMatrix4MakeXRotation calls the GLKit framework function GLKMatrix4MakeXRotation.

func GLKMatrix4MakeYRotation

func GLKMatrix4MakeYRotation(radians float32) unsafe.Pointer

GLKMatrix4MakeYRotation calls the GLKit framework function GLKMatrix4MakeYRotation.

func GLKMatrix4MakeZRotation

func GLKMatrix4MakeZRotation(radians float32) unsafe.Pointer

GLKMatrix4MakeZRotation calls the GLKit framework function GLKMatrix4MakeZRotation.

func GLKMatrix4Multiply

func GLKMatrix4Multiply(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer

GLKMatrix4Multiply calls the GLKit framework function GLKMatrix4Multiply.

func GLKMatrix4MultiplyAndProjectVector3

func GLKMatrix4MultiplyAndProjectVector3(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKMatrix4MultiplyAndProjectVector3 calls the GLKit framework function GLKMatrix4MultiplyAndProjectVector3.

func GLKMatrix4MultiplyAndProjectVector3Array

func GLKMatrix4MultiplyAndProjectVector3Array(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)

GLKMatrix4MultiplyAndProjectVector3Array calls the GLKit framework function GLKMatrix4MultiplyAndProjectVector3Array.

func GLKMatrix4MultiplyVector3

func GLKMatrix4MultiplyVector3(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKMatrix4MultiplyVector3 calls the GLKit framework function GLKMatrix4MultiplyVector3.

func GLKMatrix4MultiplyVector3Array

func GLKMatrix4MultiplyVector3Array(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)

GLKMatrix4MultiplyVector3Array calls the GLKit framework function GLKMatrix4MultiplyVector3Array.

func GLKMatrix4MultiplyVector3ArrayWithTranslation

func GLKMatrix4MultiplyVector3ArrayWithTranslation(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)

GLKMatrix4MultiplyVector3ArrayWithTranslation calls the GLKit framework function GLKMatrix4MultiplyVector3ArrayWithTranslation.

func GLKMatrix4MultiplyVector3WithTranslation

func GLKMatrix4MultiplyVector3WithTranslation(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKMatrix4MultiplyVector3WithTranslation calls the GLKit framework function GLKMatrix4MultiplyVector3WithTranslation.

func GLKMatrix4MultiplyVector4

func GLKMatrix4MultiplyVector4(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKMatrix4MultiplyVector4 calls the GLKit framework function GLKMatrix4MultiplyVector4.

func GLKMatrix4MultiplyVector4Array

func GLKMatrix4MultiplyVector4Array(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)

GLKMatrix4MultiplyVector4Array calls the GLKit framework function GLKMatrix4MultiplyVector4Array.

func GLKMatrix4Rotate

func GLKMatrix4Rotate(matrix unsafe.Pointer, radians float32, x float32, y float32, z float32) unsafe.Pointer

GLKMatrix4Rotate calls the GLKit framework function GLKMatrix4Rotate.

func GLKMatrix4RotateWithVector3

func GLKMatrix4RotateWithVector3(matrix unsafe.Pointer, radians float32, axisVector unsafe.Pointer) unsafe.Pointer

GLKMatrix4RotateWithVector3 calls the GLKit framework function GLKMatrix4RotateWithVector3.

func GLKMatrix4RotateWithVector4

func GLKMatrix4RotateWithVector4(matrix unsafe.Pointer, radians float32, axisVector unsafe.Pointer) unsafe.Pointer

GLKMatrix4RotateWithVector4 calls the GLKit framework function GLKMatrix4RotateWithVector4.

func GLKMatrix4RotateX

func GLKMatrix4RotateX(matrix unsafe.Pointer, radians float32) unsafe.Pointer

GLKMatrix4RotateX calls the GLKit framework function GLKMatrix4RotateX.

func GLKMatrix4RotateY

func GLKMatrix4RotateY(matrix unsafe.Pointer, radians float32) unsafe.Pointer

GLKMatrix4RotateY calls the GLKit framework function GLKMatrix4RotateY.

func GLKMatrix4RotateZ

func GLKMatrix4RotateZ(matrix unsafe.Pointer, radians float32) unsafe.Pointer

GLKMatrix4RotateZ calls the GLKit framework function GLKMatrix4RotateZ.

func GLKMatrix4Scale

func GLKMatrix4Scale(matrix unsafe.Pointer, sx float32, sy float32, sz float32) unsafe.Pointer

GLKMatrix4Scale calls the GLKit framework function GLKMatrix4Scale.

func GLKMatrix4ScaleWithVector3

func GLKMatrix4ScaleWithVector3(matrix unsafe.Pointer, scaleVector unsafe.Pointer) unsafe.Pointer

GLKMatrix4ScaleWithVector3 calls the GLKit framework function GLKMatrix4ScaleWithVector3.

func GLKMatrix4ScaleWithVector4

func GLKMatrix4ScaleWithVector4(matrix unsafe.Pointer, scaleVector unsafe.Pointer) unsafe.Pointer

GLKMatrix4ScaleWithVector4 calls the GLKit framework function GLKMatrix4ScaleWithVector4.

func GLKMatrix4SetColumn

func GLKMatrix4SetColumn(matrix unsafe.Pointer, column int, vector unsafe.Pointer) unsafe.Pointer

GLKMatrix4SetColumn calls the GLKit framework function GLKMatrix4SetColumn.

func GLKMatrix4SetRow

func GLKMatrix4SetRow(matrix unsafe.Pointer, row int, vector unsafe.Pointer) unsafe.Pointer

GLKMatrix4SetRow calls the GLKit framework function GLKMatrix4SetRow.

func GLKMatrix4Subtract

func GLKMatrix4Subtract(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer

GLKMatrix4Subtract calls the GLKit framework function GLKMatrix4Subtract.

func GLKMatrix4Translate

func GLKMatrix4Translate(matrix unsafe.Pointer, tx float32, ty float32, tz float32) unsafe.Pointer

GLKMatrix4Translate calls the GLKit framework function GLKMatrix4Translate.

func GLKMatrix4TranslateWithVector3

func GLKMatrix4TranslateWithVector3(matrix unsafe.Pointer, translationVector unsafe.Pointer) unsafe.Pointer

GLKMatrix4TranslateWithVector3 calls the GLKit framework function GLKMatrix4TranslateWithVector3.

func GLKMatrix4TranslateWithVector4

func GLKMatrix4TranslateWithVector4(matrix unsafe.Pointer, translationVector unsafe.Pointer) unsafe.Pointer

GLKMatrix4TranslateWithVector4 calls the GLKit framework function GLKMatrix4TranslateWithVector4.

func GLKMatrix4Transpose

func GLKMatrix4Transpose(matrix unsafe.Pointer) unsafe.Pointer

GLKMatrix4Transpose calls the GLKit framework function GLKMatrix4Transpose.

func GLKMatrixStackGetMatrix2

func GLKMatrixStackGetMatrix2(stack GLKMatrixStackRef) unsafe.Pointer

GLKMatrixStackGetMatrix2 calls the GLKit framework function GLKMatrixStackGetMatrix2.

func GLKMatrixStackGetMatrix3

func GLKMatrixStackGetMatrix3(stack GLKMatrixStackRef) unsafe.Pointer

GLKMatrixStackGetMatrix3 calls the GLKit framework function GLKMatrixStackGetMatrix3.

func GLKMatrixStackGetMatrix3Inverse

func GLKMatrixStackGetMatrix3Inverse(stack GLKMatrixStackRef) unsafe.Pointer

GLKMatrixStackGetMatrix3Inverse calls the GLKit framework function GLKMatrixStackGetMatrix3Inverse.

func GLKMatrixStackGetMatrix3InverseTranspose

func GLKMatrixStackGetMatrix3InverseTranspose(stack GLKMatrixStackRef) unsafe.Pointer

GLKMatrixStackGetMatrix3InverseTranspose calls the GLKit framework function GLKMatrixStackGetMatrix3InverseTranspose.

func GLKMatrixStackGetMatrix4

func GLKMatrixStackGetMatrix4(stack GLKMatrixStackRef) unsafe.Pointer

GLKMatrixStackGetMatrix4 calls the GLKit framework function GLKMatrixStackGetMatrix4.

func GLKMatrixStackGetMatrix4Inverse

func GLKMatrixStackGetMatrix4Inverse(stack GLKMatrixStackRef) unsafe.Pointer

GLKMatrixStackGetMatrix4Inverse calls the GLKit framework function GLKMatrixStackGetMatrix4Inverse.

func GLKMatrixStackGetMatrix4InverseTranspose

func GLKMatrixStackGetMatrix4InverseTranspose(stack GLKMatrixStackRef) unsafe.Pointer

GLKMatrixStackGetMatrix4InverseTranspose calls the GLKit framework function GLKMatrixStackGetMatrix4InverseTranspose.

func GLKMatrixStackGetTypeID

func GLKMatrixStackGetTypeID() int

GLKMatrixStackGetTypeID calls the GLKit framework function GLKMatrixStackGetTypeID.

func GLKMatrixStackLoadMatrix4

func GLKMatrixStackLoadMatrix4(stack GLKMatrixStackRef, matrix unsafe.Pointer)

GLKMatrixStackLoadMatrix4 calls the GLKit framework function GLKMatrixStackLoadMatrix4.

func GLKMatrixStackMultiplyMatrix4

func GLKMatrixStackMultiplyMatrix4(stack GLKMatrixStackRef, matrix unsafe.Pointer)

GLKMatrixStackMultiplyMatrix4 calls the GLKit framework function GLKMatrixStackMultiplyMatrix4.

func GLKMatrixStackMultiplyMatrixStack

func GLKMatrixStackMultiplyMatrixStack(stackLeft GLKMatrixStackRef, stackRight GLKMatrixStackRef)

GLKMatrixStackMultiplyMatrixStack calls the GLKit framework function GLKMatrixStackMultiplyMatrixStack.

func GLKMatrixStackPop

func GLKMatrixStackPop(stack GLKMatrixStackRef)

GLKMatrixStackPop calls the GLKit framework function GLKMatrixStackPop.

func GLKMatrixStackPush

func GLKMatrixStackPush(stack GLKMatrixStackRef)

GLKMatrixStackPush calls the GLKit framework function GLKMatrixStackPush.

func GLKMatrixStackRotate

func GLKMatrixStackRotate(stack GLKMatrixStackRef, radians float32, x float32, y float32, z float32)

GLKMatrixStackRotate calls the GLKit framework function GLKMatrixStackRotate.

func GLKMatrixStackRotateWithVector3

func GLKMatrixStackRotateWithVector3(stack GLKMatrixStackRef, radians float32, axisVector unsafe.Pointer)

GLKMatrixStackRotateWithVector3 calls the GLKit framework function GLKMatrixStackRotateWithVector3.

func GLKMatrixStackRotateWithVector4

func GLKMatrixStackRotateWithVector4(stack GLKMatrixStackRef, radians float32, axisVector unsafe.Pointer)

GLKMatrixStackRotateWithVector4 calls the GLKit framework function GLKMatrixStackRotateWithVector4.

func GLKMatrixStackRotateX

func GLKMatrixStackRotateX(stack GLKMatrixStackRef, radians float32)

GLKMatrixStackRotateX calls the GLKit framework function GLKMatrixStackRotateX.

func GLKMatrixStackRotateY

func GLKMatrixStackRotateY(stack GLKMatrixStackRef, radians float32)

GLKMatrixStackRotateY calls the GLKit framework function GLKMatrixStackRotateY.

func GLKMatrixStackRotateZ

func GLKMatrixStackRotateZ(stack GLKMatrixStackRef, radians float32)

GLKMatrixStackRotateZ calls the GLKit framework function GLKMatrixStackRotateZ.

func GLKMatrixStackScale

func GLKMatrixStackScale(stack GLKMatrixStackRef, sx float32, sy float32, sz float32)

GLKMatrixStackScale calls the GLKit framework function GLKMatrixStackScale.

func GLKMatrixStackScaleWithVector3

func GLKMatrixStackScaleWithVector3(stack GLKMatrixStackRef, scaleVector unsafe.Pointer)

GLKMatrixStackScaleWithVector3 calls the GLKit framework function GLKMatrixStackScaleWithVector3.

func GLKMatrixStackScaleWithVector4

func GLKMatrixStackScaleWithVector4(stack GLKMatrixStackRef, scaleVector unsafe.Pointer)

GLKMatrixStackScaleWithVector4 calls the GLKit framework function GLKMatrixStackScaleWithVector4.

func GLKMatrixStackSize

func GLKMatrixStackSize(stack GLKMatrixStackRef) int

GLKMatrixStackSize calls the GLKit framework function GLKMatrixStackSize.

func GLKMatrixStackTranslate

func GLKMatrixStackTranslate(stack GLKMatrixStackRef, tx float32, ty float32, tz float32)

GLKMatrixStackTranslate calls the GLKit framework function GLKMatrixStackTranslate.

func GLKMatrixStackTranslateWithVector3

func GLKMatrixStackTranslateWithVector3(stack GLKMatrixStackRef, translationVector unsafe.Pointer)

GLKMatrixStackTranslateWithVector3 calls the GLKit framework function GLKMatrixStackTranslateWithVector3.

func GLKMatrixStackTranslateWithVector4

func GLKMatrixStackTranslateWithVector4(stack GLKMatrixStackRef, translationVector unsafe.Pointer)

GLKMatrixStackTranslateWithVector4 calls the GLKit framework function GLKMatrixStackTranslateWithVector4.

func GLKQuaternionAdd

func GLKQuaternionAdd(quaternionLeft unsafe.Pointer, quaternionRight unsafe.Pointer) unsafe.Pointer

GLKQuaternionAdd calls the GLKit framework function GLKQuaternionAdd.

func GLKQuaternionAngle

func GLKQuaternionAngle(quaternion unsafe.Pointer) float32

GLKQuaternionAngle calls the GLKit framework function GLKQuaternionAngle.

func GLKQuaternionAxis

func GLKQuaternionAxis(quaternion unsafe.Pointer) unsafe.Pointer

GLKQuaternionAxis calls the GLKit framework function GLKQuaternionAxis.

func GLKQuaternionConjugate

func GLKQuaternionConjugate(quaternion unsafe.Pointer) unsafe.Pointer

GLKQuaternionConjugate calls the GLKit framework function GLKQuaternionConjugate.

func GLKQuaternionIdentity

func GLKQuaternionIdentity() uintptr

GLKQuaternionIdentity returns the address of the symbol GLKQuaternionIdentity.

func GLKQuaternionInvert

func GLKQuaternionInvert(quaternion unsafe.Pointer) unsafe.Pointer

GLKQuaternionInvert calls the GLKit framework function GLKQuaternionInvert.

func GLKQuaternionLength

func GLKQuaternionLength(quaternion unsafe.Pointer) float32

GLKQuaternionLength calls the GLKit framework function GLKQuaternionLength.

func GLKQuaternionMake

func GLKQuaternionMake(x float32, y float32, z float32, w float32) unsafe.Pointer

GLKQuaternionMake calls the GLKit framework function GLKQuaternionMake.

func GLKQuaternionMakeWithAngleAndAxis

func GLKQuaternionMakeWithAngleAndAxis(radians float32, x float32, y float32, z float32) unsafe.Pointer

GLKQuaternionMakeWithAngleAndAxis calls the GLKit framework function GLKQuaternionMakeWithAngleAndAxis.

func GLKQuaternionMakeWithAngleAndVector3Axis

func GLKQuaternionMakeWithAngleAndVector3Axis(radians float32, axisVector unsafe.Pointer) unsafe.Pointer

GLKQuaternionMakeWithAngleAndVector3Axis calls the GLKit framework function GLKQuaternionMakeWithAngleAndVector3Axis.

func GLKQuaternionMakeWithArray

func GLKQuaternionMakeWithArray() (result unsafe.Pointer, values float32)

GLKQuaternionMakeWithArray calls the GLKit framework function GLKQuaternionMakeWithArray.

func GLKQuaternionMakeWithMatrix3

func GLKQuaternionMakeWithMatrix3(matrix unsafe.Pointer) unsafe.Pointer

GLKQuaternionMakeWithMatrix3 calls the GLKit framework function GLKQuaternionMakeWithMatrix3.

func GLKQuaternionMakeWithMatrix4

func GLKQuaternionMakeWithMatrix4(matrix unsafe.Pointer) unsafe.Pointer

GLKQuaternionMakeWithMatrix4 calls the GLKit framework function GLKQuaternionMakeWithMatrix4.

func GLKQuaternionMakeWithVector3

func GLKQuaternionMakeWithVector3(vector unsafe.Pointer, scalar float32) unsafe.Pointer

GLKQuaternionMakeWithVector3 calls the GLKit framework function GLKQuaternionMakeWithVector3.

func GLKQuaternionMultiply

func GLKQuaternionMultiply(quaternionLeft unsafe.Pointer, quaternionRight unsafe.Pointer) unsafe.Pointer

GLKQuaternionMultiply calls the GLKit framework function GLKQuaternionMultiply.

func GLKQuaternionNormalize

func GLKQuaternionNormalize(quaternion unsafe.Pointer) unsafe.Pointer

GLKQuaternionNormalize calls the GLKit framework function GLKQuaternionNormalize.

func GLKQuaternionRotateVector3

func GLKQuaternionRotateVector3(quaternion unsafe.Pointer, vector unsafe.Pointer) unsafe.Pointer

GLKQuaternionRotateVector3 calls the GLKit framework function GLKQuaternionRotateVector3.

func GLKQuaternionRotateVector3Array

func GLKQuaternionRotateVector3Array(quaternion unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)

GLKQuaternionRotateVector3Array calls the GLKit framework function GLKQuaternionRotateVector3Array.

func GLKQuaternionRotateVector4

func GLKQuaternionRotateVector4(quaternion unsafe.Pointer, vector unsafe.Pointer) unsafe.Pointer

GLKQuaternionRotateVector4 calls the GLKit framework function GLKQuaternionRotateVector4.

func GLKQuaternionRotateVector4Array

func GLKQuaternionRotateVector4Array(quaternion unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)

GLKQuaternionRotateVector4Array calls the GLKit framework function GLKQuaternionRotateVector4Array.

func GLKQuaternionSlerp

func GLKQuaternionSlerp(quaternionStart unsafe.Pointer, quaternionEnd unsafe.Pointer, t float32) unsafe.Pointer

GLKQuaternionSlerp calls the GLKit framework function GLKQuaternionSlerp.

func GLKQuaternionSubtract

func GLKQuaternionSubtract(quaternionLeft unsafe.Pointer, quaternionRight unsafe.Pointer) unsafe.Pointer

GLKQuaternionSubtract calls the GLKit framework function GLKQuaternionSubtract.

func GLKTextureLoaderApplyPremultiplication

func GLKTextureLoaderApplyPremultiplication() obj.Object

GLKTextureLoaderApplyPremultiplication returns the string constant GLKTextureLoaderApplyPremultiplication, for use as a dictionary key or argument.

func GLKTextureLoaderErrorDomain

func GLKTextureLoaderErrorDomain() obj.Object

GLKTextureLoaderErrorDomain returns the string constant GLKTextureLoaderErrorDomain, for use as a dictionary key or argument.

func GLKTextureLoaderErrorKey

func GLKTextureLoaderErrorKey() obj.Object

GLKTextureLoaderErrorKey returns the string constant GLKTextureLoaderErrorKey, for use as a dictionary key or argument.

func GLKTextureLoaderGLErrorKey

func GLKTextureLoaderGLErrorKey() obj.Object

GLKTextureLoaderGLErrorKey returns the string constant GLKTextureLoaderGLErrorKey, for use as a dictionary key or argument.

func GLKTextureLoaderGenerateMipmaps

func GLKTextureLoaderGenerateMipmaps() obj.Object

GLKTextureLoaderGenerateMipmaps returns the string constant GLKTextureLoaderGenerateMipmaps, for use as a dictionary key or argument.

func GLKTextureLoaderOriginBottomLeft

func GLKTextureLoaderOriginBottomLeft() obj.Object

GLKTextureLoaderOriginBottomLeft returns the string constant GLKTextureLoaderOriginBottomLeft, for use as a dictionary key or argument.

func GLKTextureLoaderSRGB

func GLKTextureLoaderSRGB() obj.Object

GLKTextureLoaderSRGB returns the string constant GLKTextureLoaderSRGB, for use as a dictionary key or argument.

func GLKVector2Add

func GLKVector2Add(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector2Add calls the GLKit framework function GLKVector2Add.

func GLKVector2AddScalar

func GLKVector2AddScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector2AddScalar calls the GLKit framework function GLKVector2AddScalar.

func GLKVector2AllEqualToScalar

func GLKVector2AllEqualToScalar(vector unsafe.Pointer, value float32) bool

GLKVector2AllEqualToScalar calls the GLKit framework function GLKVector2AllEqualToScalar.

func GLKVector2AllEqualToVector2

func GLKVector2AllEqualToVector2(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool

GLKVector2AllEqualToVector2 calls the GLKit framework function GLKVector2AllEqualToVector2.

func GLKVector2AllGreaterThanOrEqualToScalar

func GLKVector2AllGreaterThanOrEqualToScalar(vector unsafe.Pointer, value float32) bool

GLKVector2AllGreaterThanOrEqualToScalar calls the GLKit framework function GLKVector2AllGreaterThanOrEqualToScalar.

func GLKVector2AllGreaterThanOrEqualToVector2

func GLKVector2AllGreaterThanOrEqualToVector2(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool

GLKVector2AllGreaterThanOrEqualToVector2 calls the GLKit framework function GLKVector2AllGreaterThanOrEqualToVector2.

func GLKVector2AllGreaterThanScalar

func GLKVector2AllGreaterThanScalar(vector unsafe.Pointer, value float32) bool

GLKVector2AllGreaterThanScalar calls the GLKit framework function GLKVector2AllGreaterThanScalar.

func GLKVector2AllGreaterThanVector2

func GLKVector2AllGreaterThanVector2(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool

GLKVector2AllGreaterThanVector2 calls the GLKit framework function GLKVector2AllGreaterThanVector2.

func GLKVector2Distance

func GLKVector2Distance(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer) float32

GLKVector2Distance calls the GLKit framework function GLKVector2Distance.

func GLKVector2Divide

func GLKVector2Divide(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector2Divide calls the GLKit framework function GLKVector2Divide.

func GLKVector2DivideScalar

func GLKVector2DivideScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector2DivideScalar calls the GLKit framework function GLKVector2DivideScalar.

func GLKVector2DotProduct

func GLKVector2DotProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) float32

GLKVector2DotProduct calls the GLKit framework function GLKVector2DotProduct.

func GLKVector2Length

func GLKVector2Length(vector unsafe.Pointer) float32

GLKVector2Length calls the GLKit framework function GLKVector2Length.

func GLKVector2Lerp

func GLKVector2Lerp(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer, t float32) unsafe.Pointer

GLKVector2Lerp calls the GLKit framework function GLKVector2Lerp.

func GLKVector2Make

func GLKVector2Make(x float32, y float32) unsafe.Pointer

GLKVector2Make calls the GLKit framework function GLKVector2Make.

func GLKVector2MakeWithArray

func GLKVector2MakeWithArray() (result unsafe.Pointer, values float32)

GLKVector2MakeWithArray calls the GLKit framework function GLKVector2MakeWithArray.

func GLKVector2Maximum

func GLKVector2Maximum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector2Maximum calls the GLKit framework function GLKVector2Maximum.

func GLKVector2Minimum

func GLKVector2Minimum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector2Minimum calls the GLKit framework function GLKVector2Minimum.

func GLKVector2Multiply

func GLKVector2Multiply(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector2Multiply calls the GLKit framework function GLKVector2Multiply.

func GLKVector2MultiplyScalar

func GLKVector2MultiplyScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector2MultiplyScalar calls the GLKit framework function GLKVector2MultiplyScalar.

func GLKVector2Negate

func GLKVector2Negate(vector unsafe.Pointer) unsafe.Pointer

GLKVector2Negate calls the GLKit framework function GLKVector2Negate.

func GLKVector2Normalize

func GLKVector2Normalize(vector unsafe.Pointer) unsafe.Pointer

GLKVector2Normalize calls the GLKit framework function GLKVector2Normalize.

func GLKVector2Project

func GLKVector2Project(vectorToProject unsafe.Pointer, projectionVector unsafe.Pointer) unsafe.Pointer

GLKVector2Project calls the GLKit framework function GLKVector2Project.

func GLKVector2Subtract

func GLKVector2Subtract(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector2Subtract calls the GLKit framework function GLKVector2Subtract.

func GLKVector2SubtractScalar

func GLKVector2SubtractScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector2SubtractScalar calls the GLKit framework function GLKVector2SubtractScalar.

func GLKVector3Add

func GLKVector3Add(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector3Add calls the GLKit framework function GLKVector3Add.

func GLKVector3AddScalar

func GLKVector3AddScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector3AddScalar calls the GLKit framework function GLKVector3AddScalar.

func GLKVector3AllEqualToScalar

func GLKVector3AllEqualToScalar(vector unsafe.Pointer, value float32) bool

GLKVector3AllEqualToScalar calls the GLKit framework function GLKVector3AllEqualToScalar.

func GLKVector3AllEqualToVector3

func GLKVector3AllEqualToVector3(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool

GLKVector3AllEqualToVector3 calls the GLKit framework function GLKVector3AllEqualToVector3.

func GLKVector3AllGreaterThanOrEqualToScalar

func GLKVector3AllGreaterThanOrEqualToScalar(vector unsafe.Pointer, value float32) bool

GLKVector3AllGreaterThanOrEqualToScalar calls the GLKit framework function GLKVector3AllGreaterThanOrEqualToScalar.

func GLKVector3AllGreaterThanOrEqualToVector3

func GLKVector3AllGreaterThanOrEqualToVector3(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool

GLKVector3AllGreaterThanOrEqualToVector3 calls the GLKit framework function GLKVector3AllGreaterThanOrEqualToVector3.

func GLKVector3AllGreaterThanScalar

func GLKVector3AllGreaterThanScalar(vector unsafe.Pointer, value float32) bool

GLKVector3AllGreaterThanScalar calls the GLKit framework function GLKVector3AllGreaterThanScalar.

func GLKVector3AllGreaterThanVector3

func GLKVector3AllGreaterThanVector3(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool

GLKVector3AllGreaterThanVector3 calls the GLKit framework function GLKVector3AllGreaterThanVector3.

func GLKVector3CrossProduct

func GLKVector3CrossProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector3CrossProduct calls the GLKit framework function GLKVector3CrossProduct.

func GLKVector3Distance

func GLKVector3Distance(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer) float32

GLKVector3Distance calls the GLKit framework function GLKVector3Distance.

func GLKVector3Divide

func GLKVector3Divide(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector3Divide calls the GLKit framework function GLKVector3Divide.

func GLKVector3DivideScalar

func GLKVector3DivideScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector3DivideScalar calls the GLKit framework function GLKVector3DivideScalar.

func GLKVector3DotProduct

func GLKVector3DotProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) float32

GLKVector3DotProduct calls the GLKit framework function GLKVector3DotProduct.

func GLKVector3Length

func GLKVector3Length(vector unsafe.Pointer) float32

GLKVector3Length calls the GLKit framework function GLKVector3Length.

func GLKVector3Lerp

func GLKVector3Lerp(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer, t float32) unsafe.Pointer

GLKVector3Lerp calls the GLKit framework function GLKVector3Lerp.

func GLKVector3Make

func GLKVector3Make(x float32, y float32, z float32) unsafe.Pointer

GLKVector3Make calls the GLKit framework function GLKVector3Make.

func GLKVector3MakeWithArray

func GLKVector3MakeWithArray() (result unsafe.Pointer, values float32)

GLKVector3MakeWithArray calls the GLKit framework function GLKVector3MakeWithArray.

func GLKVector3Maximum

func GLKVector3Maximum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector3Maximum calls the GLKit framework function GLKVector3Maximum.

func GLKVector3Minimum

func GLKVector3Minimum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector3Minimum calls the GLKit framework function GLKVector3Minimum.

func GLKVector3Multiply

func GLKVector3Multiply(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector3Multiply calls the GLKit framework function GLKVector3Multiply.

func GLKVector3MultiplyScalar

func GLKVector3MultiplyScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector3MultiplyScalar calls the GLKit framework function GLKVector3MultiplyScalar.

func GLKVector3Negate

func GLKVector3Negate(vector unsafe.Pointer) unsafe.Pointer

GLKVector3Negate calls the GLKit framework function GLKVector3Negate.

func GLKVector3Normalize

func GLKVector3Normalize(vector unsafe.Pointer) unsafe.Pointer

GLKVector3Normalize calls the GLKit framework function GLKVector3Normalize.

func GLKVector3Project

func GLKVector3Project(vectorToProject unsafe.Pointer, projectionVector unsafe.Pointer) unsafe.Pointer

GLKVector3Project calls the GLKit framework function GLKVector3Project.

func GLKVector3Subtract

func GLKVector3Subtract(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector3Subtract calls the GLKit framework function GLKVector3Subtract.

func GLKVector3SubtractScalar

func GLKVector3SubtractScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector3SubtractScalar calls the GLKit framework function GLKVector3SubtractScalar.

func GLKVector4Add

func GLKVector4Add(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector4Add calls the GLKit framework function GLKVector4Add.

func GLKVector4AddScalar

func GLKVector4AddScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector4AddScalar calls the GLKit framework function GLKVector4AddScalar.

func GLKVector4AllEqualToScalar

func GLKVector4AllEqualToScalar(vector unsafe.Pointer, value float32) bool

GLKVector4AllEqualToScalar calls the GLKit framework function GLKVector4AllEqualToScalar.

func GLKVector4AllEqualToVector4

func GLKVector4AllEqualToVector4(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool

GLKVector4AllEqualToVector4 calls the GLKit framework function GLKVector4AllEqualToVector4.

func GLKVector4AllGreaterThanOrEqualToScalar

func GLKVector4AllGreaterThanOrEqualToScalar(vector unsafe.Pointer, value float32) bool

GLKVector4AllGreaterThanOrEqualToScalar calls the GLKit framework function GLKVector4AllGreaterThanOrEqualToScalar.

func GLKVector4AllGreaterThanOrEqualToVector4

func GLKVector4AllGreaterThanOrEqualToVector4(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool

GLKVector4AllGreaterThanOrEqualToVector4 calls the GLKit framework function GLKVector4AllGreaterThanOrEqualToVector4.

func GLKVector4AllGreaterThanScalar

func GLKVector4AllGreaterThanScalar(vector unsafe.Pointer, value float32) bool

GLKVector4AllGreaterThanScalar calls the GLKit framework function GLKVector4AllGreaterThanScalar.

func GLKVector4AllGreaterThanVector4

func GLKVector4AllGreaterThanVector4(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool

GLKVector4AllGreaterThanVector4 calls the GLKit framework function GLKVector4AllGreaterThanVector4.

func GLKVector4CrossProduct

func GLKVector4CrossProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector4CrossProduct calls the GLKit framework function GLKVector4CrossProduct.

func GLKVector4Distance

func GLKVector4Distance(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer) float32

GLKVector4Distance calls the GLKit framework function GLKVector4Distance.

func GLKVector4Divide

func GLKVector4Divide(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector4Divide calls the GLKit framework function GLKVector4Divide.

func GLKVector4DivideScalar

func GLKVector4DivideScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector4DivideScalar calls the GLKit framework function GLKVector4DivideScalar.

func GLKVector4DotProduct

func GLKVector4DotProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) float32

GLKVector4DotProduct calls the GLKit framework function GLKVector4DotProduct.

func GLKVector4Length

func GLKVector4Length(vector unsafe.Pointer) float32

GLKVector4Length calls the GLKit framework function GLKVector4Length.

func GLKVector4Lerp

func GLKVector4Lerp(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer, t float32) unsafe.Pointer

GLKVector4Lerp calls the GLKit framework function GLKVector4Lerp.

func GLKVector4Make

func GLKVector4Make(x float32, y float32, z float32, w float32) unsafe.Pointer

GLKVector4Make calls the GLKit framework function GLKVector4Make.

func GLKVector4MakeWithArray

func GLKVector4MakeWithArray() (result unsafe.Pointer, values float32)

GLKVector4MakeWithArray calls the GLKit framework function GLKVector4MakeWithArray.

func GLKVector4MakeWithVector3

func GLKVector4MakeWithVector3(vector unsafe.Pointer, w float32) unsafe.Pointer

GLKVector4MakeWithVector3 calls the GLKit framework function GLKVector4MakeWithVector3.

func GLKVector4Maximum

func GLKVector4Maximum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector4Maximum calls the GLKit framework function GLKVector4Maximum.

func GLKVector4Minimum

func GLKVector4Minimum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector4Minimum calls the GLKit framework function GLKVector4Minimum.

func GLKVector4Multiply

func GLKVector4Multiply(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector4Multiply calls the GLKit framework function GLKVector4Multiply.

func GLKVector4MultiplyScalar

func GLKVector4MultiplyScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector4MultiplyScalar calls the GLKit framework function GLKVector4MultiplyScalar.

func GLKVector4Negate

func GLKVector4Negate(vector unsafe.Pointer) unsafe.Pointer

GLKVector4Negate calls the GLKit framework function GLKVector4Negate.

func GLKVector4Normalize

func GLKVector4Normalize(vector unsafe.Pointer) unsafe.Pointer

GLKVector4Normalize calls the GLKit framework function GLKVector4Normalize.

func GLKVector4Project

func GLKVector4Project(vectorToProject unsafe.Pointer, projectionVector unsafe.Pointer) unsafe.Pointer

GLKVector4Project calls the GLKit framework function GLKVector4Project.

func GLKVector4Subtract

func GLKVector4Subtract(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer

GLKVector4Subtract calls the GLKit framework function GLKVector4Subtract.

func GLKVector4SubtractScalar

func GLKVector4SubtractScalar(vector unsafe.Pointer, value float32) unsafe.Pointer

GLKVector4SubtractScalar calls the GLKit framework function GLKVector4SubtractScalar.

func KGLKModelErrorDomain

func KGLKModelErrorDomain() obj.Object

KGLKModelErrorDomain returns the string constant kGLKModelErrorDomain, for use as a dictionary key or argument.

func KGLKModelErrorKey

func KGLKModelErrorKey() obj.Object

KGLKModelErrorKey returns the string constant kGLKModelErrorKey, for use as a dictionary key or argument.

func NSStringFromGLKMatrix2

func NSStringFromGLKMatrix2(matrix unsafe.Pointer) string

NSStringFromGLKMatrix2 calls the GLKit framework function NSStringFromGLKMatrix2.

func NSStringFromGLKMatrix3

func NSStringFromGLKMatrix3(matrix unsafe.Pointer) string

NSStringFromGLKMatrix3 calls the GLKit framework function NSStringFromGLKMatrix3.

func NSStringFromGLKMatrix4

func NSStringFromGLKMatrix4(matrix unsafe.Pointer) string

NSStringFromGLKMatrix4 calls the GLKit framework function NSStringFromGLKMatrix4.

func NSStringFromGLKQuaternion

func NSStringFromGLKQuaternion(quaternion unsafe.Pointer) string

NSStringFromGLKQuaternion calls the GLKit framework function NSStringFromGLKQuaternion.

func NSStringFromGLKVector2

func NSStringFromGLKVector2(vector unsafe.Pointer) string

NSStringFromGLKVector2 calls the GLKit framework function NSStringFromGLKVector2.

func NSStringFromGLKVector3

func NSStringFromGLKVector3(vector unsafe.Pointer) string

NSStringFromGLKVector3 calls the GLKit framework function NSStringFromGLKVector3.

func NSStringFromGLKVector4

func NSStringFromGLKVector4(vector unsafe.Pointer) string

NSStringFromGLKVector4 calls the GLKit framework function NSStringFromGLKVector4.

Types

type BaseEffect added in v0.17.0

type BaseEffect struct {
	objref.Handle
}

BaseEffect is an idiomatic wrapper over the Objective-C class GLKBaseEffect.

BaseEffect is an abstract base — you do not construct it directly. Construct one of ReflectionMapEffect and pass it where a BaseEffect is accepted.

A simple lighting and shading system for use in shader-based OpenGL rendering.

func BaseEffectFromID added in v0.17.0

func BaseEffectFromID(id objc.ID) *BaseEffect

BaseEffectFromID adopts an existing Objective-C object as a BaseEffect (nil for 0), retaining it and registering a release finalizer.

func (*BaseEffect) ColorMaterialEnabled added in v0.17.0

func (be *BaseEffect) ColorMaterialEnabled() uint8

ColorMaterialEnabled returns the color material enabled.

func (*BaseEffect) ConstantColor added in v0.18.0

func (be *BaseEffect) ConstantColor() unsafe.Pointer

ConstantColor returns the constant color.

func (*BaseEffect) Description added in v0.17.0

func (be *BaseEffect) Description() string

Description returns the object's -description text.

func (*BaseEffect) Fog added in v0.17.0

func (be *BaseEffect) Fog() *EffectPropertyFog

Fog returns the fog.

func (*BaseEffect) IsEqual added in v0.17.0

func (be *BaseEffect) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*BaseEffect) IsKind added in v0.17.0

func (be *BaseEffect) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*BaseEffect) Label added in v0.17.0

func (be *BaseEffect) Label() string

Label returns the label.

func (*BaseEffect) Light0 added in v0.17.0

func (be *BaseEffect) Light0() *EffectPropertyLight

Light0 returns the light0.

func (*BaseEffect) Light1 added in v0.17.0

func (be *BaseEffect) Light1() *EffectPropertyLight

Light1 returns the light1.

func (*BaseEffect) Light2 added in v0.17.0

func (be *BaseEffect) Light2() *EffectPropertyLight

Light2 returns the light2.

func (*BaseEffect) LightModelAmbientColor added in v0.18.0

func (be *BaseEffect) LightModelAmbientColor() unsafe.Pointer

LightModelAmbientColor returns the light model ambient color.

func (*BaseEffect) LightModelTwoSided added in v0.17.0

func (be *BaseEffect) LightModelTwoSided() uint8

LightModelTwoSided returns the light model two sided.

func (*BaseEffect) LightingType added in v0.17.0

func (be *BaseEffect) LightingType() LightingType

LightingType returns the lighting type.

func (*BaseEffect) Material added in v0.17.0

func (be *BaseEffect) Material() *EffectPropertyMaterial

Material returns the material.

func (*BaseEffect) PrepareToDraw added in v0.17.0

func (be *BaseEffect) PrepareToDraw()

PrepareToDraw prepares an effect for rendering.

func (*BaseEffect) String added in v0.17.0

func (be *BaseEffect) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*BaseEffect) Texture2d0 added in v0.17.0

func (be *BaseEffect) Texture2d0() *EffectPropertyTexture

Texture2d0 returns the texture2d0.

func (*BaseEffect) Texture2d1 added in v0.17.0

func (be *BaseEffect) Texture2d1() *EffectPropertyTexture

Texture2d1 returns the texture2d1.

func (*BaseEffect) TextureOrder added in v0.17.0

func (be *BaseEffect) TextureOrder() []*EffectPropertyTexture

TextureOrder returns the texture order.

TextureOrder returns the collection as a Go slice.

func (*BaseEffect) Transform added in v0.17.0

func (be *BaseEffect) Transform() *EffectPropertyTransform

Transform returns the transform.

func (*BaseEffect) UseConstantColor added in v0.17.0

func (be *BaseEffect) UseConstantColor() uint8

UseConstantColor returns the use constant color.

func (*BaseEffect) WithColorMaterialEnabled added in v0.17.0

func (be *BaseEffect) WithColorMaterialEnabled(colorMaterialEnabled uint8) *BaseEffect

WithColorMaterialEnabled sets a Boolean value that indicates whether or not to use the color vertex attribute when calculating the light’s interaction with the material.

func (*BaseEffect) WithConstantColor added in v0.17.0

func (be *BaseEffect) WithConstantColor(constantColor unsafe.Pointer) *BaseEffect

WithConstantColor sets a constant color, used when per-vertex color data is not provided.

func (*BaseEffect) WithLabel added in v0.17.0

func (be *BaseEffect) WithLabel(label string) *BaseEffect

WithLabel sets a string used to name your effect.

func (*BaseEffect) WithLightModelAmbientColor added in v0.17.0

func (be *BaseEffect) WithLightModelAmbientColor(lightModelAmbientColor unsafe.Pointer) *BaseEffect

WithLightModelAmbientColor sets the ambient color applied to all primitives rendered by the effect.

func (*BaseEffect) WithLightModelTwoSided added in v0.17.0

func (be *BaseEffect) WithLightModelTwoSided(lightModelTwoSided uint8) *BaseEffect

WithLightModelTwoSided sets a Boolean value that indicates whether lighting is calculated for both sides of a primitive.

func (*BaseEffect) WithLightingType added in v0.17.0

func (be *BaseEffect) WithLightingType(lightingType LightingType) *BaseEffect

WithLightingType sets the strategy the effect uses to calculate light values at each fragment. See GLKLightingType.

func (*BaseEffect) WithTextureOrder added in v0.17.0

func (be *BaseEffect) WithTextureOrder(items ...*EffectPropertyTexture) *BaseEffect

WithTextureOrder sets the order in which textures are applied to rendered primitives.

func (*BaseEffect) WithUseConstantColor added in v0.17.0

func (be *BaseEffect) WithUseConstantColor(useConstantColor uint8) *BaseEffect

WithUseConstantColor sets a Boolean value that indicates whether or not to use the constant color.

type BaseEffectProvider added in v0.17.0

type BaseEffectProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

BaseEffectProvider is accepted wherever a GLKBaseEffect (or one of its subclasses) is expected.

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int32
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type EffectProperty added in v0.17.0

type EffectProperty struct {
	objref.Handle
}

EffectProperty is an idiomatic wrapper over the Objective-C class GLKEffectProperty.

EffectProperty is an abstract base — you do not construct it directly. Construct one of EffectPropertyFog, EffectPropertyLight, EffectPropertyMaterial, EffectPropertyTexture, EffectPropertyTransform and pass it where a EffectProperty is accepted.

The abstract superclass for configuration information used in GLKit rendering effects.

func EffectPropertyFromID added in v0.17.0

func EffectPropertyFromID(id objc.ID) *EffectProperty

EffectPropertyFromID adopts an existing Objective-C object as a EffectProperty (nil for 0), retaining it and registering a release finalizer.

func (*EffectProperty) Description added in v0.17.0

func (ep *EffectProperty) Description() string

Description returns the object's -description text.

func (*EffectProperty) IsEqual added in v0.17.0

func (ep *EffectProperty) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*EffectProperty) IsKind added in v0.17.0

func (ep *EffectProperty) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*EffectProperty) String added in v0.17.0

func (ep *EffectProperty) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type EffectPropertyFog added in v0.17.0

type EffectPropertyFog struct {
	EffectProperty
}

EffectPropertyFog is an idiomatic wrapper over the Objective-C class GLKEffectPropertyFog.

It embeds EffectProperty, promoting that type's methods.

Fog drawing information for use in GLKit rendering effects.

func EffectPropertyFogFromID added in v0.17.0

func EffectPropertyFogFromID(id objc.ID) *EffectPropertyFog

EffectPropertyFogFromID adopts an existing Objective-C object as a EffectPropertyFog (nil for 0), retaining it and registering a release finalizer.

func NewEffectPropertyFog added in v0.17.0

func NewEffectPropertyFog() *EffectPropertyFog

NewEffectPropertyFog creates a new EffectPropertyFog.

func (*EffectPropertyFog) Color added in v0.18.0

func (epf *EffectPropertyFog) Color() unsafe.Pointer

Color returns the color.

func (*EffectPropertyFog) Density added in v0.17.0

func (epf *EffectPropertyFog) Density() float32

Density returns the density.

func (*EffectPropertyFog) Enabled added in v0.17.0

func (epf *EffectPropertyFog) Enabled() uint8

Enabled returns the enabled.

func (*EffectPropertyFog) End added in v0.17.0

func (epf *EffectPropertyFog) End() float32

End returns the end.

func (*EffectPropertyFog) Mode added in v0.17.0

func (epf *EffectPropertyFog) Mode() int32

Mode returns the mode.

func (*EffectPropertyFog) Start added in v0.17.0

func (epf *EffectPropertyFog) Start() float32

Start returns the start.

func (*EffectPropertyFog) WithColor added in v0.17.0

func (epf *EffectPropertyFog) WithColor(color unsafe.Pointer) *EffectPropertyFog

WithColor sets the color of the fog at maximum density.

func (*EffectPropertyFog) WithDensity added in v0.17.0

func (epf *EffectPropertyFog) WithDensity(density float32) *EffectPropertyFog

WithDensity sets the rate at which the fog exponent increases.

func (*EffectPropertyFog) WithEnabled added in v0.17.0

func (epf *EffectPropertyFog) WithEnabled(enabled uint8) *EffectPropertyFog

WithEnabled sets a Boolean value that indicates whether fog is applied to the fragment color.

func (*EffectPropertyFog) WithEnd added in v0.17.0

func (epf *EffectPropertyFog) WithEnd(end float32) *EffectPropertyFog

WithEnd sets the distance in eye coordinates where fog completely covers the color fragment.

func (*EffectPropertyFog) WithMode added in v0.17.0

func (epf *EffectPropertyFog) WithMode(mode int32) *EffectPropertyFog

WithMode sets the algorithm used to compute the density of the fog applied to the fragment color.

func (*EffectPropertyFog) WithStart added in v0.17.0

func (epf *EffectPropertyFog) WithStart(start float32) *EffectPropertyFog

WithStart sets the minimum distance in eye coordinates before fog is applied to the fragment color.

type EffectPropertyLight added in v0.17.0

type EffectPropertyLight struct {
	EffectProperty
}

EffectPropertyLight is an idiomatic wrapper over the Objective-C class GLKEffectPropertyLight.

It embeds EffectProperty, promoting that type's methods.

Lighting information for use in GLKit rendering effects.

func EffectPropertyLightFromID added in v0.17.0

func EffectPropertyLightFromID(id objc.ID) *EffectPropertyLight

EffectPropertyLightFromID adopts an existing Objective-C object as a EffectPropertyLight (nil for 0), retaining it and registering a release finalizer.

func NewEffectPropertyLight added in v0.17.0

func NewEffectPropertyLight() *EffectPropertyLight

NewEffectPropertyLight creates a new EffectPropertyLight.

func (*EffectPropertyLight) AmbientColor added in v0.18.0

func (epl *EffectPropertyLight) AmbientColor() unsafe.Pointer

AmbientColor returns the ambient color.

func (*EffectPropertyLight) ConstantAttenuation added in v0.17.0

func (epl *EffectPropertyLight) ConstantAttenuation() float32

ConstantAttenuation returns the constant attenuation.

func (*EffectPropertyLight) DiffuseColor added in v0.18.0

func (epl *EffectPropertyLight) DiffuseColor() unsafe.Pointer

DiffuseColor returns the diffuse color.

func (*EffectPropertyLight) Enabled added in v0.17.0

func (epl *EffectPropertyLight) Enabled() uint8

Enabled returns the enabled.

func (*EffectPropertyLight) LinearAttenuation added in v0.17.0

func (epl *EffectPropertyLight) LinearAttenuation() float32

LinearAttenuation returns the linear attenuation.

func (*EffectPropertyLight) Position added in v0.18.0

func (epl *EffectPropertyLight) Position() unsafe.Pointer

Position returns the position.

func (*EffectPropertyLight) QuadraticAttenuation added in v0.17.0

func (epl *EffectPropertyLight) QuadraticAttenuation() float32

QuadraticAttenuation returns the quadratic attenuation.

func (*EffectPropertyLight) SpecularColor added in v0.18.0

func (epl *EffectPropertyLight) SpecularColor() unsafe.Pointer

SpecularColor returns the specular color.

func (*EffectPropertyLight) SpotCutoff added in v0.17.0

func (epl *EffectPropertyLight) SpotCutoff() float32

SpotCutoff returns the spot cutoff.

func (*EffectPropertyLight) SpotDirection added in v0.18.0

func (epl *EffectPropertyLight) SpotDirection() unsafe.Pointer

SpotDirection returns the spot direction.

func (*EffectPropertyLight) SpotExponent added in v0.17.0

func (epl *EffectPropertyLight) SpotExponent() float32

SpotExponent returns the spot exponent.

func (*EffectPropertyLight) Transform added in v0.17.0

func (epl *EffectPropertyLight) Transform() *EffectPropertyTransform

Transform returns the transform.

func (*EffectPropertyLight) WithAmbientColor added in v0.17.0

func (epl *EffectPropertyLight) WithAmbientColor(ambientColor unsafe.Pointer) *EffectPropertyLight

WithAmbientColor sets the ambient portion of the light.

func (*EffectPropertyLight) WithConstantAttenuation added in v0.17.0

func (epl *EffectPropertyLight) WithConstantAttenuation(constantAttenuation float32) *EffectPropertyLight

WithConstantAttenuation sets a constant factor applied to the attenuation of a point light or spotlight.

func (*EffectPropertyLight) WithDiffuseColor added in v0.17.0

func (epl *EffectPropertyLight) WithDiffuseColor(diffuseColor unsafe.Pointer) *EffectPropertyLight

WithDiffuseColor sets the diffuse portion of the light.

func (*EffectPropertyLight) WithEnabled added in v0.17.0

func (epl *EffectPropertyLight) WithEnabled(enabled uint8) *EffectPropertyLight

WithEnabled sets a Boolean value that indicates whether calculations should be performed on this light.

func (*EffectPropertyLight) WithLinearAttenuation added in v0.17.0

func (epl *EffectPropertyLight) WithLinearAttenuation(linearAttenuation float32) *EffectPropertyLight

WithLinearAttenuation sets a linear factor applied to the attenuation of a point light or spotlight.

func (*EffectPropertyLight) WithPosition added in v0.17.0

func (epl *EffectPropertyLight) WithPosition(position unsafe.Pointer) *EffectPropertyLight

WithPosition sets the position of the light in world coordinates.

func (*EffectPropertyLight) WithQuadraticAttenuation added in v0.17.0

func (epl *EffectPropertyLight) WithQuadraticAttenuation(quadraticAttenuation float32) *EffectPropertyLight

WithQuadraticAttenuation sets a quadratic factor applied to the attenuation of a point light or spotlight.

func (*EffectPropertyLight) WithSpecularColor added in v0.17.0

func (epl *EffectPropertyLight) WithSpecularColor(specularColor unsafe.Pointer) *EffectPropertyLight

WithSpecularColor sets the specular portion of the light.

func (*EffectPropertyLight) WithSpotCutoff added in v0.17.0

func (epl *EffectPropertyLight) WithSpotCutoff(spotCutoff float32) *EffectPropertyLight

WithSpotCutoff sets the angle in degrees where the spotlight is cut off.

func (*EffectPropertyLight) WithSpotDirection added in v0.17.0

func (epl *EffectPropertyLight) WithSpotDirection(spotDirection unsafe.Pointer) *EffectPropertyLight

WithSpotDirection sets a vector indicating the direction the spotlight is projecting.

func (*EffectPropertyLight) WithSpotExponent added in v0.17.0

func (epl *EffectPropertyLight) WithSpotExponent(spotExponent float32) *EffectPropertyLight

WithSpotExponent sets a value indicating how focused the spotlight is.

func (*EffectPropertyLight) WithTransform added in v0.17.0

func (epl *EffectPropertyLight) WithTransform(transform *EffectPropertyTransform) *EffectPropertyLight

WithTransform sets a transform applied to the light’s position and direction before calculating the contribution of the light.

type EffectPropertyMaterial added in v0.17.0

type EffectPropertyMaterial struct {
	EffectProperty
}

EffectPropertyMaterial is an idiomatic wrapper over the Objective-C class GLKEffectPropertyMaterial.

It embeds EffectProperty, promoting that type's methods.

Surface appearance properties for use in GLKit rendering effects.

func EffectPropertyMaterialFromID added in v0.17.0

func EffectPropertyMaterialFromID(id objc.ID) *EffectPropertyMaterial

EffectPropertyMaterialFromID adopts an existing Objective-C object as a EffectPropertyMaterial (nil for 0), retaining it and registering a release finalizer.

func NewEffectPropertyMaterial added in v0.17.0

func NewEffectPropertyMaterial() *EffectPropertyMaterial

NewEffectPropertyMaterial creates a new EffectPropertyMaterial.

func (*EffectPropertyMaterial) AmbientColor added in v0.18.0

func (epm *EffectPropertyMaterial) AmbientColor() unsafe.Pointer

AmbientColor returns the ambient color.

func (*EffectPropertyMaterial) DiffuseColor added in v0.18.0

func (epm *EffectPropertyMaterial) DiffuseColor() unsafe.Pointer

DiffuseColor returns the diffuse color.

func (*EffectPropertyMaterial) EmissiveColor added in v0.18.0

func (epm *EffectPropertyMaterial) EmissiveColor() unsafe.Pointer

EmissiveColor returns the emissive color.

func (*EffectPropertyMaterial) Shininess added in v0.17.0

func (epm *EffectPropertyMaterial) Shininess() float32

Shininess returns the shininess.

func (*EffectPropertyMaterial) SpecularColor added in v0.18.0

func (epm *EffectPropertyMaterial) SpecularColor() unsafe.Pointer

SpecularColor returns the specular color.

func (*EffectPropertyMaterial) WithAmbientColor added in v0.17.0

func (epm *EffectPropertyMaterial) WithAmbientColor(ambientColor unsafe.Pointer) *EffectPropertyMaterial

WithAmbientColor sets the ambient color of the material.

func (*EffectPropertyMaterial) WithDiffuseColor added in v0.17.0

func (epm *EffectPropertyMaterial) WithDiffuseColor(diffuseColor unsafe.Pointer) *EffectPropertyMaterial

WithDiffuseColor sets the diffuse color of the material.

func (*EffectPropertyMaterial) WithEmissiveColor added in v0.17.0

func (epm *EffectPropertyMaterial) WithEmissiveColor(emissiveColor unsafe.Pointer) *EffectPropertyMaterial

WithEmissiveColor sets the emissive color of the material.

func (*EffectPropertyMaterial) WithShininess added in v0.17.0

func (epm *EffectPropertyMaterial) WithShininess(shininess float32) *EffectPropertyMaterial

WithShininess sets the shininess of the material, used when calculating specular lighting effects.

func (*EffectPropertyMaterial) WithSpecularColor added in v0.17.0

func (epm *EffectPropertyMaterial) WithSpecularColor(specularColor unsafe.Pointer) *EffectPropertyMaterial

WithSpecularColor sets the specular color of the material.

type EffectPropertyProvider added in v0.17.0

type EffectPropertyProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

EffectPropertyProvider is accepted wherever a GLKEffectProperty (or one of its subclasses) is expected.

type EffectPropertyTexture added in v0.17.0

type EffectPropertyTexture struct {
	EffectProperty
}

EffectPropertyTexture is an idiomatic wrapper over the Objective-C class GLKEffectPropertyTexture.

It embeds EffectProperty, promoting that type's methods.

Texture drawing parameters for use in GLKit rendering effects.

func EffectPropertyTextureFromID added in v0.17.0

func EffectPropertyTextureFromID(id objc.ID) *EffectPropertyTexture

EffectPropertyTextureFromID adopts an existing Objective-C object as a EffectPropertyTexture (nil for 0), retaining it and registering a release finalizer.

func NewEffectPropertyTexture added in v0.17.0

func NewEffectPropertyTexture() *EffectPropertyTexture

NewEffectPropertyTexture creates a new EffectPropertyTexture.

func (*EffectPropertyTexture) Enabled added in v0.17.0

func (ept *EffectPropertyTexture) Enabled() uint8

Enabled returns the enabled.

func (*EffectPropertyTexture) EnvMode added in v0.17.0

func (ept *EffectPropertyTexture) EnvMode() TextureEnvMode

EnvMode returns the env mode.

func (*EffectPropertyTexture) Name added in v0.17.0

func (ept *EffectPropertyTexture) Name() uint32

Name returns the name.

func (*EffectPropertyTexture) Target added in v0.17.0

func (ept *EffectPropertyTexture) Target() TextureTarget

Target returns the target.

func (*EffectPropertyTexture) WithEnabled added in v0.17.0

func (ept *EffectPropertyTexture) WithEnabled(enabled uint8) *EffectPropertyTexture

WithEnabled sets a Boolean value that indicates whether this texture is used to texture drawn primitives.

func (*EffectPropertyTexture) WithEnvMode added in v0.17.0

func (ept *EffectPropertyTexture) WithEnvMode(envMode TextureEnvMode) *EffectPropertyTexture

WithEnvMode sets the mode the texture uses to compute its output fragment color. See GLKTextureEnvMode.

func (*EffectPropertyTexture) WithName added in v0.17.0

func (ept *EffectPropertyTexture) WithName(name uint32) *EffectPropertyTexture

WithName sets the OpenGL name for the texture being sampled by this texture stage.

func (*EffectPropertyTexture) WithTarget added in v0.17.0

WithTarget sets the kind of texture pointed to by the texture stage. See GLKTextureTarget.

type EffectPropertyTransform added in v0.17.0

type EffectPropertyTransform struct {
	EffectProperty
}

EffectPropertyTransform is an idiomatic wrapper over the Objective-C class GLKEffectPropertyTransform.

It embeds EffectProperty, promoting that type's methods.

Coordinate transform information for use in GLKit rendering effects.

func EffectPropertyTransformFromID added in v0.17.0

func EffectPropertyTransformFromID(id objc.ID) *EffectPropertyTransform

EffectPropertyTransformFromID adopts an existing Objective-C object as a EffectPropertyTransform (nil for 0), retaining it and registering a release finalizer.

func NewEffectPropertyTransform added in v0.17.0

func NewEffectPropertyTransform() *EffectPropertyTransform

NewEffectPropertyTransform creates a new EffectPropertyTransform.

func (*EffectPropertyTransform) ModelviewMatrix added in v0.18.0

func (ept *EffectPropertyTransform) ModelviewMatrix() unsafe.Pointer

ModelviewMatrix returns the modelview matrix.

func (*EffectPropertyTransform) NormalMatrix added in v0.18.0

func (ept *EffectPropertyTransform) NormalMatrix() unsafe.Pointer

NormalMatrix returns the normal matrix.

func (*EffectPropertyTransform) ProjectionMatrix added in v0.18.0

func (ept *EffectPropertyTransform) ProjectionMatrix() unsafe.Pointer

ProjectionMatrix returns the projection matrix.

func (*EffectPropertyTransform) WithModelviewMatrix added in v0.17.0

func (ept *EffectPropertyTransform) WithModelviewMatrix(modelviewMatrix unsafe.Pointer) *EffectPropertyTransform

WithModelviewMatrix sets the matrix used to transform position coordinates from world space to eye space.

func (*EffectPropertyTransform) WithProjectionMatrix added in v0.17.0

func (ept *EffectPropertyTransform) WithProjectionMatrix(projectionMatrix unsafe.Pointer) *EffectPropertyTransform

WithProjectionMatrix sets the matrix used to transform position coordinates from eye space to projection space.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type EvCmd

type EvCmd int32
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

String returns the EvCmd constant's name, or its numeric form when the value is not a known constant.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type FogMode added in v0.17.0

type FogMode int32

A mode that describes how the fog component is calculated for the fragment.

const (
	// The fog component is calculated as exp(-density * distance) and clamped to the range [0.0, 1.0].
	FogModeExp FogMode = 0
	// The fog component is calculated as exp(-(density * distance)^2) and clamped to the range [0.0, 1.0].
	FogModeExp2 FogMode = 1
	// The fog component is calculated as (end - distance) / (end - start) and clamped to the range [0.0, 1.0].
	FogModeLinear FogMode = 2
)

func (FogMode) String added in v0.17.0

func (e FogMode) String() string

String returns the FogMode constant's name, or its numeric form when the value is not a known constant.

type GLKEffectPropertyPrv

type GLKEffectPropertyPrv struct{}

type GLKEffectPropertyPrvPtr added in v0.18.0

type GLKEffectPropertyPrvPtr struct{ obj.Object }

GLKEffectPropertyPrvPtr is a handle for the opaque GLKEffectPropertyPrvPtr type.

func (GLKEffectPropertyPrvPtr) IsNil added in v0.18.0

func (h GLKEffectPropertyPrvPtr) IsNil() bool

IsNil reports whether GLKEffectPropertyPrvPtr is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type GLKMatrix2 added in v0.18.0

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

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*GLKMatrix2) AsM added in v0.18.0

func (u *GLKMatrix2) AsM() [4]float32

AsM returns the m field, read from the backing bytes at offset 0.

func (*GLKMatrix2) AsM2 added in v0.18.0

func (u *GLKMatrix2) AsM2() [2][2]float32

AsM2 returns the m2 field, read from the backing bytes at offset 0.

type GLKMatrix3 added in v0.18.0

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

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*GLKMatrix3) AsM added in v0.18.0

func (u *GLKMatrix3) AsM() [9]float32

AsM returns the m field, read from the backing bytes at offset 0.

type GLKMatrix4 added in v0.18.0

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

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*GLKMatrix4) AsM added in v0.18.0

func (u *GLKMatrix4) AsM() [16]float32

AsM returns the m field, read from the backing bytes at offset 0.

type GLKMatrixStack

type GLKMatrixStack struct{}

type GLKMatrixStackRef added in v0.18.0

type GLKMatrixStackRef struct{ obj.Object }

GLKMatrixStackRef is a handle for the opaque GLKMatrixStackRef type.

func GLKMatrixStackCreate

func GLKMatrixStackCreate(alloc corefoundation.CFAllocatorRef) GLKMatrixStackRef

GLKMatrixStackCreate calls the GLKit framework function GLKMatrixStackCreate.

func (GLKMatrixStackRef) IsNil added in v0.18.0

func (h GLKMatrixStackRef) IsNil() bool

IsNil reports whether GLKMatrixStackRef is a NULL handle (it wraps no object). Call it before using a returned handle; a nil handle's methods panic.

type GLKQuaternion added in v0.18.0

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

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*GLKQuaternion) AsQ added in v0.18.0

func (u *GLKQuaternion) AsQ() [4]float32

AsQ returns the q field, read from the backing bytes at offset 0.

type GLKVector2 added in v0.18.0

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

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*GLKVector2) AsV added in v0.18.0

func (u *GLKVector2) AsV() [2]float32

AsV returns the v field, read from the backing bytes at offset 0.

type GLKVector3 added in v0.18.0

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

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*GLKVector3) AsV added in v0.18.0

func (u *GLKVector3) AsV() [3]float32

AsV returns the v field, read from the backing bytes at offset 0.

type GLKVector4 added in v0.18.0

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

The C layout cannot be reproduced as a plain Go value struct, so it is held as its exact-size bytes and read through the typed As* accessors below. It is pointer-only: never pass it by value.

func (*GLKVector4) AsV added in v0.18.0

func (u *GLKVector4) AsV() [4]float32

AsV returns the v field, read from the backing bytes at offset 0.

type GLKVertexAttributeParameters

type GLKVertexAttributeParameters struct {
	Type       uint32
	Size       int32
	Normalized uint8
}

Structure for parameters to use in glVertexAttribPointer given a MDLVertexForamt

func GLKVertexAttributeParametersFromModelIO

func GLKVertexAttributeParametersFromModelIO(vertexFormat unsafe.Pointer) GLKVertexAttributeParameters

GLKVertexAttributeParametersFromModelIO calls the GLKit framework function GLKVertexAttributeParametersFromModelIO.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.

type LightingType added in v0.17.0

type LightingType int32

A constant that describes how lighting is calculated by an effect.

const (
	// Indicates that the lighting calculations are performed at each vertex in a triangle and then interpolated across the triangle.
	LightingTypePerVertex LightingType = 0
	// Indicates that the inputs to the lighting calculation are interpolated across a triangle and the lighting calculations are performed at each fragment.
	LightingTypePerPixel LightingType = 1
)

func (LightingType) String added in v0.17.0

func (e LightingType) String() string

String returns the LightingType constant's name, or its numeric form when the value is not a known constant.

type MDLabelDomain

type MDLabelDomain int32

These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.

type MDQueryOptionFlags

type MDQueryOptionFlags int32
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int32
const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlags added in v0.17.0

type MachVMRangeFlags uint64

Bitmask — values may be combined with |.

const (
	MachVMRangeFlagsNone MachVMRangeFlags = 0
)

func (MachVMRangeFlags) String added in v0.17.0

func (e MachVMRangeFlags) String() string

String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlavor added in v0.17.0

type MachVMRangeFlavor uint32
const (
	MachVMRangeFlavorInvalid MachVMRangeFlavor = 0
	MachVMRangeFlavorV1      MachVMRangeFlavor = 1
)

func (MachVMRangeFlavor) String added in v0.17.0

func (e MachVMRangeFlavor) String() string

String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeTag added in v0.17.0

type MachVMRangeTag uint16
const (
	MachVMRangeTagDefault MachVMRangeTag = 0
	MachVMRangeTagData    MachVMRangeTag = 1
	MachVMRangeTagFixed   MachVMRangeTag = 2
)

func (MachVMRangeTag) String added in v0.17.0

func (e MachVMRangeTag) String() string

String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.

type Mesh added in v0.17.0

type Mesh struct {
	objref.Handle
}

Mesh is an idiomatic wrapper over the Objective-C class GLKMesh.

func MeshFromID added in v0.17.0

func MeshFromID(id objc.ID) *Mesh

MeshFromID adopts an existing Objective-C object as a Mesh (nil for 0), retaining it and registering a release finalizer.

func NewMeshWithMesh added in v0.17.0

func NewMeshWithMesh(mesh obj.Object) (result *Mesh, err error)

NewMeshWithMesh initialize the mesh and the mesh's submeshes This does NOT initialize any meshes that are children of the Model I/O mesh

func NewMeshesFromAssetSourceMeshes added in v0.17.0

func NewMeshesFromAssetSourceMeshes(asset obj.Object, sourceMeshes []obj.Object) (result []*Mesh, err error)

NewMeshesFromAssetSourceMeshes initialize all meshes in a Model I/O asset.

func (*Mesh) Description added in v0.17.0

func (m *Mesh) Description() string

Description returns the object's -description text.

func (*Mesh) IsEqual added in v0.17.0

func (m *Mesh) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Mesh) IsKind added in v0.17.0

func (m *Mesh) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Mesh) Name added in v0.17.0

func (m *Mesh) Name() string

Name returns name of the mesh copies from the originating Model I/O mesh Can be used by the app to identiry the mesh in it's scene/world/renderer etc.

func (*Mesh) String added in v0.17.0

func (m *Mesh) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Mesh) Submeshes added in v0.17.0

func (m *Mesh) Submeshes() []*Submesh

Submeshes returns submeshes containing index buffers to rendering mesh verticies. Submeshes may also contain texture materials to apply when rendering this object

Submeshes returns the collection as a Go slice.

func (*Mesh) VertexBuffers added in v0.17.0

func (m *Mesh) VertexBuffers() []*MeshBuffer

VertexBuffers returns array of buffers in which mesh vertex data resides

VertexBuffers returns the collection as a Go slice.

func (*Mesh) VertexCount added in v0.17.0

func (m *Mesh) VertexCount() int

VertexCount returns number of verticies in the vertexBuffers

func (*Mesh) VertexDescriptor added in v0.17.0

func (m *Mesh) VertexDescriptor() obj.Object

VertexDescriptor returns model I/O vertex descriptor specifying the layout of data in vertexBuffers This is not directly used by this object, but the application can use this information to determine rendering state or setup a vertex attribute object.

type MeshBuffer added in v0.17.0

type MeshBuffer struct {
	objref.Handle
}

MeshBuffer is an idiomatic wrapper over the Objective-C class GLKMeshBuffer.

func MeshBufferFromID added in v0.17.0

func MeshBufferFromID(id objc.ID) *MeshBuffer

MeshBufferFromID adopts an existing Objective-C object as a MeshBuffer (nil for 0), retaining it and registering a release finalizer.

func NewMeshBuffer added in v0.17.0

func NewMeshBuffer() *MeshBuffer

NewMeshBuffer creates a new MeshBuffer.

func (*MeshBuffer) Allocator added in v0.17.0

func (mb *MeshBuffer) Allocator() *MeshBufferAllocator

Allocator returns allocator object used to create this buffer. This allcoator used for copy and relayout operations (such as when a new vertex descriptor is applied to a vertex buffer)

func (*MeshBuffer) Description added in v0.17.0

func (mb *MeshBuffer) Description() string

Description returns the object's -description text.

func (*MeshBuffer) GlBufferName added in v0.17.0

func (mb *MeshBuffer) GlBufferName() uint32

GlBufferName returns glBufferName for buffer object backing vertex/index data Many GLKMeshBuffers may reference the same OpenGL buffer object, but each with its own offset. (i.e. Many GLKMeshBuffers may be suballocated from a single OpenGL buffer object)

func (*MeshBuffer) IsEqual added in v0.17.0

func (mb *MeshBuffer) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*MeshBuffer) IsKind added in v0.17.0

func (mb *MeshBuffer) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*MeshBuffer) Length added in v0.17.0

func (mb *MeshBuffer) Length() int

Length returns size in bytes of the buffer allocation

func (*MeshBuffer) Offset added in v0.17.0

func (mb *MeshBuffer) Offset() int

Offset returns byte offset of the data within the OpenGL buffer

func (*MeshBuffer) String added in v0.17.0

func (mb *MeshBuffer) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type MeshBufferAllocator added in v0.17.0

type MeshBufferAllocator struct {
	objref.Handle
}

MeshBufferAllocator is an idiomatic wrapper over the Objective-C class GLKMeshBufferAllocator.

func MeshBufferAllocatorFromID added in v0.17.0

func MeshBufferAllocatorFromID(id objc.ID) *MeshBufferAllocator

MeshBufferAllocatorFromID adopts an existing Objective-C object as a MeshBufferAllocator (nil for 0), retaining it and registering a release finalizer.

func NewMeshBufferAllocator added in v0.17.0

func NewMeshBufferAllocator() *MeshBufferAllocator

NewMeshBufferAllocator creates a new MeshBufferAllocator.

func (*MeshBufferAllocator) Description added in v0.17.0

func (mba *MeshBufferAllocator) Description() string

Description returns the object's -description text.

func (*MeshBufferAllocator) IsEqual added in v0.17.0

func (mba *MeshBufferAllocator) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*MeshBufferAllocator) IsKind added in v0.17.0

func (mba *MeshBufferAllocator) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*MeshBufferAllocator) String added in v0.17.0

func (mba *MeshBufferAllocator) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type NXMouseButton

type NXMouseButton int32
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.

type NamedEffect added in v0.17.0

type NamedEffect interface {
	PrepareToDraw()
}

NamedEffect is the Go form of the Objective-C protocol GLKNamedEffect.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type OSUnfairLockFlags added in v0.17.0

type OSUnfairLockFlags uint32

Bitmask — values may be combined with |.

const (
	OSUnfairLockFlagsNone         OSUnfairLockFlags = 0
	OSUnfairLockFlagsAdaptiveSpin OSUnfairLockFlags = 262144
)

func (OSUnfairLockFlags) String added in v0.17.0

func (e OSUnfairLockFlags) String() string

String returns the OSUnfairLockFlags constant's name, or its numeric form when the value is not a known constant.

type PMPageToPaperMappingType

type PMPageToPaperMappingType int32
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PtrauthKey added in v0.17.0

type PtrauthKey int32
const (
	Ptrauth_key_none                     PtrauthKey = -1
	Ptrauth_key_asia                     PtrauthKey = 0
	Ptrauth_key_asib                     PtrauthKey = 1
	Ptrauth_key_asda                     PtrauthKey = 2
	Ptrauth_key_asdb                     PtrauthKey = 3
	Ptrauth_key_process_independent_code PtrauthKey = 0
	Ptrauth_key_process_dependent_code   PtrauthKey = 1
	Ptrauth_key_process_independent_data PtrauthKey = 2
	Ptrauth_key_process_dependent_data   PtrauthKey = 3
	Ptrauth_key_return_address           PtrauthKey = 1
	Ptrauth_key_frame_pointer            PtrauthKey = 3
	Ptrauth_key_function_pointer         PtrauthKey = 0
	Ptrauth_key_block_function           PtrauthKey = 0
	Ptrauth_key_cxx_vtable_pointer       PtrauthKey = 2
	Ptrauth_key_method_list_pointer      PtrauthKey = 2
	Ptrauth_key_objc_isa_pointer         PtrauthKey = 2
	Ptrauth_key_objc_super_pointer       PtrauthKey = 2
	Ptrauth_key_objc_sel_pointer         PtrauthKey = 3
	Ptrauth_key_objc_class_ro_pointer    PtrauthKey = 2
	Ptrauth_key_block_descriptor_pointer PtrauthKey = 2
	Ptrauth_key_init_fini_pointer        PtrauthKey = 0
)

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type ReflectionMapEffect added in v0.17.0

type ReflectionMapEffect struct {
	BaseEffect
}

ReflectionMapEffect is an idiomatic wrapper over the Objective-C class GLKReflectionMapEffect.

It embeds BaseEffect, promoting that type's methods.

A lighting and shading system that supports reflection mapping for use in shader-based OpenGL rendering.

func NewReflectionMapEffect added in v0.17.0

func NewReflectionMapEffect() *ReflectionMapEffect

NewReflectionMapEffect creates a new ReflectionMapEffect.

func ReflectionMapEffectFromID added in v0.17.0

func ReflectionMapEffectFromID(id objc.ID) *ReflectionMapEffect

ReflectionMapEffectFromID adopts an existing Objective-C object as a ReflectionMapEffect (nil for 0), retaining it and registering a release finalizer.

func (*ReflectionMapEffect) Matrix added in v0.18.0

func (rme *ReflectionMapEffect) Matrix() unsafe.Pointer

Matrix returns the matrix.

func (*ReflectionMapEffect) TextureCubeMap added in v0.17.0

func (rme *ReflectionMapEffect) TextureCubeMap() *EffectPropertyTexture

TextureCubeMap returns the texture cube map.

func (*ReflectionMapEffect) WithColorMaterialEnabled added in v0.17.0

func (rme *ReflectionMapEffect) WithColorMaterialEnabled(colorMaterialEnabled uint8) *ReflectionMapEffect

WithColorMaterialEnabled sets a Boolean value that indicates whether or not to use the color vertex attribute when calculating the light’s interaction with the material.

func (*ReflectionMapEffect) WithConstantColor added in v0.17.0

func (rme *ReflectionMapEffect) WithConstantColor(constantColor unsafe.Pointer) *ReflectionMapEffect

WithConstantColor sets a constant color, used when per-vertex color data is not provided.

func (*ReflectionMapEffect) WithLabel added in v0.17.0

func (rme *ReflectionMapEffect) WithLabel(label string) *ReflectionMapEffect

WithLabel sets a string used to name your effect.

func (*ReflectionMapEffect) WithLightModelAmbientColor added in v0.17.0

func (rme *ReflectionMapEffect) WithLightModelAmbientColor(lightModelAmbientColor unsafe.Pointer) *ReflectionMapEffect

WithLightModelAmbientColor sets the ambient color applied to all primitives rendered by the effect.

func (*ReflectionMapEffect) WithLightModelTwoSided added in v0.17.0

func (rme *ReflectionMapEffect) WithLightModelTwoSided(lightModelTwoSided uint8) *ReflectionMapEffect

WithLightModelTwoSided sets a Boolean value that indicates whether lighting is calculated for both sides of a primitive.

func (*ReflectionMapEffect) WithLightingType added in v0.17.0

func (rme *ReflectionMapEffect) WithLightingType(lightingType LightingType) *ReflectionMapEffect

WithLightingType sets the strategy the effect uses to calculate light values at each fragment. See GLKLightingType.

func (*ReflectionMapEffect) WithMatrix added in v0.17.0

func (rme *ReflectionMapEffect) WithMatrix(matrix unsafe.Pointer) *ReflectionMapEffect

WithMatrix sets the reflection matrix to apply to the normals of the submitted vertices.

func (*ReflectionMapEffect) WithTextureOrder added in v0.17.0

func (rme *ReflectionMapEffect) WithTextureOrder(items ...*EffectPropertyTexture) *ReflectionMapEffect

WithTextureOrder sets the order in which textures are applied to rendered primitives.

func (*ReflectionMapEffect) WithUseConstantColor added in v0.17.0

func (rme *ReflectionMapEffect) WithUseConstantColor(useConstantColor uint8) *ReflectionMapEffect

WithUseConstantColor sets a Boolean value that indicates whether or not to use the constant color.

type SkyboxEffect added in v0.17.0

type SkyboxEffect struct {
	objref.Handle
}

SkyboxEffect is an idiomatic wrapper over the Objective-C class GLKSkyboxEffect.

A simple skybox visual effect for use in shader-based OpenGL rendering.

func NewSkyboxEffect added in v0.17.0

func NewSkyboxEffect() *SkyboxEffect

NewSkyboxEffect creates a new SkyboxEffect.

func SkyboxEffectFromID added in v0.17.0

func SkyboxEffectFromID(id objc.ID) *SkyboxEffect

SkyboxEffectFromID adopts an existing Objective-C object as a SkyboxEffect (nil for 0), retaining it and registering a release finalizer.

func (*SkyboxEffect) Center added in v0.18.0

func (se *SkyboxEffect) Center() unsafe.Pointer

Center returns the center.

func (*SkyboxEffect) Description added in v0.17.0

func (se *SkyboxEffect) Description() string

Description returns the object's -description text.

func (*SkyboxEffect) Draw added in v0.17.0

func (se *SkyboxEffect) Draw()

Draw draws the skybox.

func (*SkyboxEffect) IsEqual added in v0.17.0

func (se *SkyboxEffect) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*SkyboxEffect) IsKind added in v0.17.0

func (se *SkyboxEffect) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*SkyboxEffect) Label added in v0.17.0

func (se *SkyboxEffect) Label() string

Label returns the label.

func (*SkyboxEffect) PrepareToDraw added in v0.17.0

func (se *SkyboxEffect) PrepareToDraw()

PrepareToDraw prepares an effect for rendering.

func (*SkyboxEffect) String added in v0.17.0

func (se *SkyboxEffect) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*SkyboxEffect) TextureCubeMap added in v0.17.0

func (se *SkyboxEffect) TextureCubeMap() *EffectPropertyTexture

TextureCubeMap returns the texture cube map.

func (*SkyboxEffect) Transform added in v0.17.0

func (se *SkyboxEffect) Transform() *EffectPropertyTransform

Transform returns the transform.

func (*SkyboxEffect) WithCenter added in v0.17.0

func (se *SkyboxEffect) WithCenter(center unsafe.Pointer) *SkyboxEffect

WithCenter sets the center of the skybox.

func (*SkyboxEffect) WithLabel added in v0.17.0

func (se *SkyboxEffect) WithLabel(label string) *SkyboxEffect

WithLabel sets a string used to name your effect.

func (*SkyboxEffect) WithXSize added in v0.17.0

func (se *SkyboxEffect) WithXSize(xSize float32) *SkyboxEffect

WithXSize sets the width of the skybox.

func (*SkyboxEffect) WithYSize added in v0.17.0

func (se *SkyboxEffect) WithYSize(ySize float32) *SkyboxEffect

WithYSize sets the height of the skybox.

func (*SkyboxEffect) WithZSize added in v0.17.0

func (se *SkyboxEffect) WithZSize(zSize float32) *SkyboxEffect

WithZSize sets the depth of the skybox.

func (*SkyboxEffect) XSize added in v0.17.0

func (se *SkyboxEffect) XSize() float32

XSize returns the x size.

func (*SkyboxEffect) YSize added in v0.17.0

func (se *SkyboxEffect) YSize() float32

YSize returns the y size.

func (*SkyboxEffect) ZSize added in v0.17.0

func (se *SkyboxEffect) ZSize() float32

ZSize returns the z size.

type Submesh added in v0.17.0

type Submesh struct {
	objref.Handle
}

Submesh is an idiomatic wrapper over the Objective-C class GLKSubmesh.

func NewSubmesh added in v0.17.0

func NewSubmesh() *Submesh

NewSubmesh creates a new Submesh.

func SubmeshFromID added in v0.17.0

func SubmeshFromID(id objc.ID) *Submesh

SubmeshFromID adopts an existing Objective-C object as a Submesh (nil for 0), retaining it and registering a release finalizer.

func (*Submesh) Description added in v0.17.0

func (s *Submesh) Description() string

Description returns the object's -description text.

func (*Submesh) ElementBuffer added in v0.17.0

func (s *Submesh) ElementBuffer() *MeshBuffer

ElementBuffer returns name of buffer object with index data The buffer name to be used with DrawElements

func (*Submesh) ElementCount added in v0.17.0

func (s *Submesh) ElementCount() int32

ElementCount returns number of elements (aka indicies) in the elementBuffer (aka indexBuffer) This value should be used for the count parameter in glDrawElements

func (*Submesh) IsEqual added in v0.17.0

func (s *Submesh) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Submesh) IsKind added in v0.17.0

func (s *Submesh) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Submesh) Mesh added in v0.17.0

func (s *Submesh) Mesh() *Mesh

Mesh returns parent GLKit mesh containing vertex data of this object Buffer of this parent mesh should be set in the encoder before a drawIndexedPrimitives call is made

func (*Submesh) Mode added in v0.17.0

func (s *Submesh) Mode() uint32

Mode returns primitive type mode value of data in the elementBuffer (aka indexBuffer) This value should be used for the mode parameter in glDrawElements

func (*Submesh) Name added in v0.17.0

func (s *Submesh) Name() string

Name returns name from the original MDLSubmesh object. Although not directly used by this object, the application may use this to identify the submesh in it renderer/scene/world.

func (*Submesh) String added in v0.17.0

func (s *Submesh) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Submesh) Type added in v0.17.0

func (s *Submesh) Type() uint32

Type returns type of data in the elementBuffer (aka indexBuffer) This value should be used for the type parameter of glDrawElements

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type TextureEnvMode added in v0.17.0

type TextureEnvMode int32

The mode used to combine the texture with other color components.

const (
	// The output color is set to the color fetched from the texture. The input color is ignored.
	TextureEnvModeReplace TextureEnvMode = 0
	// The output color is calculated by multiplying the texture’s color by the input color.
	TextureEnvModeModulate TextureEnvMode = 1
	// The output color is calculated by using the texture’s alpha component to blend the texture’s color with the input color.
	TextureEnvModeDecal TextureEnvMode = 2
)

func (TextureEnvMode) String added in v0.17.0

func (e TextureEnvMode) String() string

String returns the TextureEnvMode constant's name, or its numeric form when the value is not a known constant.

type TextureInfo added in v0.17.0

type TextureInfo struct {
	objref.Handle
}

TextureInfo is an idiomatic wrapper over the Objective-C class GLKTextureInfo.

Information about OpenGL textures created by the GLKTextureLoader class.

func CubeMapWithContentsOfFileOptions added in v0.17.0

func CubeMapWithContentsOfFileOptions(path string, options map[string]*foundation.Number) (result *TextureInfo, err error)

CubeMapWithContentsOfFileOptions loads a cube map texture image from a single file and creates a new texture from the data.

func CubeMapWithContentsOfFilesOptions added in v0.17.0

func CubeMapWithContentsOfFilesOptions(paths []obj.Object, options map[string]*foundation.Number) (result *TextureInfo, err error)

CubeMapWithContentsOfFilesOptions loads a cube map texture image from a series of files and creates a new texture from the data.

func CubeMapWithContentsOfURLOptions added in v0.17.0

func CubeMapWithContentsOfURLOptions(url string, options map[string]*foundation.Number) (result *TextureInfo, err error)

CubeMapWithContentsOfURLOptions loads a cube map texture image from a single URL and creates a new texture from the data.

func NewTextureInfo added in v0.17.0

func NewTextureInfo() *TextureInfo

NewTextureInfo creates a new TextureInfo.

func TextureInfoFromID added in v0.17.0

func TextureInfoFromID(id objc.ID) *TextureInfo

TextureInfoFromID adopts an existing Objective-C object as a TextureInfo (nil for 0), retaining it and registering a release finalizer.

func TextureWithCGImageOptions added in v0.17.0

func TextureWithCGImageOptions(cgImage coregraphics.CGImageRef, options map[string]*foundation.Number) (result *TextureInfo, err error)

TextureWithCGImageOptions loads a 2D texture image from a Quartz image and creates a new texture from the data.

func TextureWithContentsOfDataOptions added in v0.17.0

func TextureWithContentsOfDataOptions(data []byte, options map[string]*foundation.Number) (result *TextureInfo, err error)

TextureWithContentsOfDataOptions loads a 2D texture image from a memory range and creates a new texture from the data.

func TextureWithContentsOfFileOptions added in v0.17.0

func TextureWithContentsOfFileOptions(path string, options map[string]*foundation.Number) (result *TextureInfo, err error)

TextureWithContentsOfFileOptions loads a 2D texture image from a file and creates a new texture from the data.

func TextureWithContentsOfURLOptions added in v0.17.0

func TextureWithContentsOfURLOptions(url string, options map[string]*foundation.Number) (result *TextureInfo, err error)

TextureWithContentsOfURLOptions loads a 2D texture image from a URL and creates a new texture from the data.

func TextureWithNameScaleFactorBundleOptions added in v0.17.0

func TextureWithNameScaleFactorBundleOptions(name string, scaleFactor float64, bundle obj.Object, options map[string]*foundation.Number) (result *TextureInfo, err error)

TextureWithNameScaleFactorBundleOptions wraps the corresponding Objective-C method.

func (*TextureInfo) AlphaState added in v0.17.0

func (ti *TextureInfo) AlphaState() TextureInfoAlphaState

AlphaState returns the alpha state.

func (*TextureInfo) ArrayLength added in v0.17.0

func (ti *TextureInfo) ArrayLength() uint32

ArrayLength returns the array length.

func (*TextureInfo) ContainsMipmaps added in v0.17.0

func (ti *TextureInfo) ContainsMipmaps() bool

ContainsMipmaps wraps the corresponding Objective-C method.

func (*TextureInfo) Depth added in v0.17.0

func (ti *TextureInfo) Depth() uint32

Depth returns the depth.

func (*TextureInfo) Description added in v0.17.0

func (ti *TextureInfo) Description() string

Description returns the object's -description text.

func (*TextureInfo) Height added in v0.17.0

func (ti *TextureInfo) Height() uint32

Height returns the height.

func (*TextureInfo) IsEqual added in v0.17.0

func (ti *TextureInfo) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*TextureInfo) IsKind added in v0.17.0

func (ti *TextureInfo) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*TextureInfo) MimapLevelCount added in v0.17.0

func (ti *TextureInfo) MimapLevelCount() uint32

MimapLevelCount returns the mimap level count.

func (*TextureInfo) Name added in v0.17.0

func (ti *TextureInfo) Name() uint32

Name returns the name.

func (*TextureInfo) String added in v0.17.0

func (ti *TextureInfo) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*TextureInfo) Target added in v0.17.0

func (ti *TextureInfo) Target() uint32

Target returns the target.

func (*TextureInfo) TextureOrigin added in v0.17.0

func (ti *TextureInfo) TextureOrigin() TextureInfoOrigin

TextureOrigin returns the texture origin.

func (*TextureInfo) Width added in v0.17.0

func (ti *TextureInfo) Width() uint32

Width returns the width.

type TextureInfoAlphaState added in v0.17.0

type TextureInfoAlphaState int32

Values that describe the alpha information stored in a source image’s pixel data.

const (
	// Indicates that the texture has no alpha information.
	TextureInfoAlphaStateNone TextureInfoAlphaState = 0
	// Indicates that the color values in the texture were not premultiplied by the alpha value.
	TextureInfoAlphaStateNonPremultiplied TextureInfoAlphaState = 1
	// Indicates that the color values in the texture have already been premultiplied by the alpha value.
	TextureInfoAlphaStatePremultiplied TextureInfoAlphaState = 2
)

func (TextureInfoAlphaState) String added in v0.17.0

func (e TextureInfoAlphaState) String() string

String returns the TextureInfoAlphaState constant's name, or its numeric form when the value is not a known constant.

type TextureInfoOrigin added in v0.17.0

type TextureInfoOrigin int32

The location of the origin in the original source image.

const (
	// The origin of the texture is not supported.
	TextureInfoOriginUnknown TextureInfoOrigin = 0
	// The origin of the texture is in the top-left corner.
	TextureInfoOriginTopLeft TextureInfoOrigin = 1
	// The origin of the texture is in the bottom-left corner.
	TextureInfoOriginBottomLeft TextureInfoOrigin = 2
)

func (TextureInfoOrigin) String added in v0.17.0

func (e TextureInfoOrigin) String() string

String returns the TextureInfoOrigin constant's name, or its numeric form when the value is not a known constant.

type TextureLoader added in v0.17.0

type TextureLoader struct {
	objref.Handle
}

TextureLoader is an idiomatic wrapper over the Objective-C class GLKTextureLoader.

A utility class that simplifies loading OpenGL or OpenGL ES texture datas from a variety of image file formats.

func NewTextureLoaderWithShareContext added in v0.17.0

func NewTextureLoaderWithShareContext(context_ obj.Object) *TextureLoader

NewTextureLoaderWithShareContext initializes a new texture loader object.

func TextureLoaderFromID added in v0.17.0

func TextureLoaderFromID(id objc.ID) *TextureLoader

TextureLoaderFromID adopts an existing Objective-C object as a TextureLoader (nil for 0), retaining it and registering a release finalizer.

func (*TextureLoader) CubeMapWithContentsOfFileOptionsQueueCompletionHandler added in v0.18.0

func (tl *TextureLoader) CubeMapWithContentsOfFileOptionsQueueCompletionHandler(path string, options map[string]*foundation.Number, queue dispatch.Queue, block func(obj.Object, unsafe.Pointer))

CubeMapWithContentsOfFileOptionsQueueCompletionHandler asynchronously loads a cube map texture image from a single file and creates a new texture from the data.

func (*TextureLoader) CubeMapWithContentsOfFilesOptionsQueueCompletionHandler added in v0.18.0

func (tl *TextureLoader) CubeMapWithContentsOfFilesOptionsQueueCompletionHandler(paths []obj.Object, options map[string]*foundation.Number, queue dispatch.Queue, block func(obj.Object, unsafe.Pointer))

CubeMapWithContentsOfFilesOptionsQueueCompletionHandler asynchronously loads a cube map texture image from a series of files and creates a new texture from the data.

func (*TextureLoader) CubeMapWithContentsOfURLOptionsQueueCompletionHandler added in v0.18.0

func (tl *TextureLoader) CubeMapWithContentsOfURLOptionsQueueCompletionHandler(url string, options map[string]*foundation.Number, queue dispatch.Queue, block func(obj.Object, unsafe.Pointer))

CubeMapWithContentsOfURLOptionsQueueCompletionHandler asynchronously loads a cube map texture image from a single URL and creates a new texture from the data.

func (*TextureLoader) Description added in v0.17.0

func (tl *TextureLoader) Description() string

Description returns the object's -description text.

func (*TextureLoader) IsEqual added in v0.17.0

func (tl *TextureLoader) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*TextureLoader) IsKind added in v0.17.0

func (tl *TextureLoader) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*TextureLoader) String added in v0.17.0

func (tl *TextureLoader) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*TextureLoader) TextureWithCGImageOptionsQueueCompletionHandler added in v0.18.0

func (tl *TextureLoader) TextureWithCGImageOptionsQueueCompletionHandler(cgImage coregraphics.CGImageRef, options map[string]*foundation.Number, queue dispatch.Queue, block func(obj.Object, unsafe.Pointer))

TextureWithCGImageOptionsQueueCompletionHandler asynchronously loads a 2D texture image from a Quartz image and creates a new texture from the data.

func (*TextureLoader) TextureWithContentsOfDataOptionsQueueCompletionHandler added in v0.18.0

func (tl *TextureLoader) TextureWithContentsOfDataOptionsQueueCompletionHandler(data []byte, options map[string]*foundation.Number, queue dispatch.Queue, block func(obj.Object, unsafe.Pointer))

TextureWithContentsOfDataOptionsQueueCompletionHandler asynchronously loads a 2D texture image from a memory range and creates a new texture from the data.

func (*TextureLoader) TextureWithContentsOfFileOptionsQueueCompletionHandler added in v0.18.0

func (tl *TextureLoader) TextureWithContentsOfFileOptionsQueueCompletionHandler(path string, options map[string]*foundation.Number, queue dispatch.Queue, block func(obj.Object, unsafe.Pointer))

TextureWithContentsOfFileOptionsQueueCompletionHandler asynchronously loads a 2D texture image from a file and creates a new texture from the data.

func (*TextureLoader) TextureWithContentsOfURLOptionsQueueCompletionHandler added in v0.18.0

func (tl *TextureLoader) TextureWithContentsOfURLOptionsQueueCompletionHandler(url string, options map[string]*foundation.Number, queue dispatch.Queue, block func(obj.Object, unsafe.Pointer))

TextureWithContentsOfURLOptionsQueueCompletionHandler asynchronously loads a 2D texture image from a URL and creates a new texture from the data.

func (*TextureLoader) TextureWithNameScaleFactorBundleOptionsQueueCompletionHandler added in v0.18.0

func (tl *TextureLoader) TextureWithNameScaleFactorBundleOptionsQueueCompletionHandler(name string, scaleFactor float64, bundle obj.Object, options map[string]*foundation.Number, queue dispatch.Queue, block func(obj.Object, unsafe.Pointer))

TextureWithNameScaleFactorBundleOptionsQueueCompletionHandler wraps the corresponding Objective-C method.

type TextureLoaderError added in v0.17.0

type TextureLoaderError uint32
const (
	TextureLoaderErrorFileOrURLNotFound             TextureLoaderError = 0
	TextureLoaderErrorInvalidNSData                 TextureLoaderError = 1
	TextureLoaderErrorInvalidCGImage                TextureLoaderError = 2
	TextureLoaderErrorUnknownPathType               TextureLoaderError = 3
	TextureLoaderErrorUnknownFileType               TextureLoaderError = 4
	TextureLoaderErrorPVRAtlasUnsupported           TextureLoaderError = 5
	TextureLoaderErrorCubeMapInvalidNumFiles        TextureLoaderError = 6
	TextureLoaderErrorCompressedTextureUpload       TextureLoaderError = 7
	TextureLoaderErrorUncompressedTextureUpload     TextureLoaderError = 8
	TextureLoaderErrorUnsupportedCubeMapDimensions  TextureLoaderError = 9
	TextureLoaderErrorUnsupportedBitDepth           TextureLoaderError = 10
	TextureLoaderErrorUnsupportedPVRFormat          TextureLoaderError = 11
	TextureLoaderErrorDataPreprocessingFailure      TextureLoaderError = 12
	TextureLoaderErrorMipmapUnsupported             TextureLoaderError = 13
	TextureLoaderErrorUnsupportedOrientation        TextureLoaderError = 14
	TextureLoaderErrorReorientationFailure          TextureLoaderError = 15
	TextureLoaderErrorAlphaPremultiplicationFailure TextureLoaderError = 16
	TextureLoaderErrorInvalidEAGLContext            TextureLoaderError = 17
	TextureLoaderErrorIncompatibleFormatSRGB        TextureLoaderError = 18
	TextureLoaderErrorUnsupportedTextureTarget      TextureLoaderError = 19
)

func (TextureLoaderError) String added in v0.17.0

func (e TextureLoaderError) String() string

String returns the TextureLoaderError constant's name, or its numeric form when the value is not a known constant.

type TextureTarget added in v0.17.0

type TextureTarget uint32

The kind of texture pointed to by the property.

const (
	// The texture is a 2D texture.
	TextureTarget2D TextureTarget = 3553
	// The texture is a set of six textures that make up a cube map.
	TextureTargetCubeMap TextureTarget = 34067
	// The number of items in the enumeration.
	TextureTargetCt TextureTarget = 2
)

func (TextureTarget) String added in v0.17.0

func (e TextureTarget) String() string

String returns the TextureTarget constant's name, or its numeric form when the value is not a known constant.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type VertexAttrib added in v0.17.0

type VertexAttrib int32

Values used as indices in OpenGL code to associate vertex data with an attribute in a named shader effect.

const (
	// This index is used to provide the vertex position to a shader.
	VertexAttribPosition VertexAttrib = 0
	// This index is used to provide the vertex normal to a shader.
	VertexAttribNormal VertexAttrib = 1
	// This index is used to provide the vertex color to a shader.
	VertexAttribColor VertexAttrib = 2
	// This index is used to provide a set of texture coordinates to a shader.
	VertexAttribTexCoord0 VertexAttrib = 3
	// This index is used to provide the second set of texture coordinates to a shader.
	VertexAttribTexCoord1 VertexAttrib = 4
)

func (VertexAttrib) String added in v0.17.0

func (e VertexAttrib) String() string

String returns the VertexAttrib constant's name, or its numeric form when the value is not a known constant.

type VirtualMemoryGuardExceptionCode added in v0.17.0

type VirtualMemoryGuardExceptionCode uint32
const (
	KGUARD_EXC_DEALLOC_GAP                   VirtualMemoryGuardExceptionCode = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        VirtualMemoryGuardExceptionCode = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         VirtualMemoryGuardExceptionCode = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    VirtualMemoryGuardExceptionCode = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    VirtualMemoryGuardExceptionCode = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         VirtualMemoryGuardExceptionCode = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         VirtualMemoryGuardExceptionCode = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  VirtualMemoryGuardExceptionCode = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    VirtualMemoryGuardExceptionCode = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              VirtualMemoryGuardExceptionCode = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        VirtualMemoryGuardExceptionCode = 99
	KGUARD_EXC_SEC_COPY_DENIED               VirtualMemoryGuardExceptionCode = 100
	KGUARD_EXC_SEC_SHARING_DENIED            VirtualMemoryGuardExceptionCode = 101
	KGUARD_EXC_MTE_SYNC_FAULT                VirtualMemoryGuardExceptionCode = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          VirtualMemoryGuardExceptionCode = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          VirtualMemoryGuardExceptionCode = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT VirtualMemoryGuardExceptionCode = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT VirtualMemoryGuardExceptionCode = 204
)

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.

Jump to

Keyboard shortcuts

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