Documentation
¶
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:
- BaseEffect: ReflectionMapEffect
- EffectProperty: EffectPropertyFog, EffectPropertyLight, EffectPropertyMaterial, EffectPropertyTexture, EffectPropertyTransform
Index ¶
- func GLKMathDegreesToRadians(degrees float32) float32
- func GLKMathProject(object unsafe.Pointer, model unsafe.Pointer, projection unsafe.Pointer) (result unsafe.Pointer, viewport int32)
- func GLKMathRadiansToDegrees(radians float32) float32
- func GLKMathUnproject(window unsafe.Pointer, model unsafe.Pointer, projection unsafe.Pointer) (result unsafe.Pointer, viewport int32, success bool)
- func GLKMatrix3Add(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3GetColumn(matrix unsafe.Pointer, column int) unsafe.Pointer
- func GLKMatrix3GetMatrix2(matrix unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3GetRow(matrix unsafe.Pointer, row int) unsafe.Pointer
- func GLKMatrix3Identity() uintptr
- func GLKMatrix3Invert(matrix unsafe.Pointer) (result unsafe.Pointer, isInvertible bool)
- func GLKMatrix3InvertAndTranspose(matrix unsafe.Pointer) (result unsafe.Pointer, isInvertible bool)
- func GLKMatrix3Make(m00 float32, m01 float32, m02 float32, m10 float32, m11 float32, m12 float32, ...) unsafe.Pointer
- func GLKMatrix3MakeAndTranspose(m00 float32, m01 float32, m02 float32, m10 float32, m11 float32, m12 float32, ...) unsafe.Pointer
- func GLKMatrix3MakeRotation(radians float32, x float32, y float32, z float32) unsafe.Pointer
- func GLKMatrix3MakeScale(sx float32, sy float32, sz float32) unsafe.Pointer
- func GLKMatrix3MakeWithArray() (result unsafe.Pointer, values float32)
- func GLKMatrix3MakeWithArrayAndTranspose() (result unsafe.Pointer, values float32)
- func GLKMatrix3MakeWithColumns(column0 unsafe.Pointer, column1 unsafe.Pointer, column2 unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3MakeWithQuaternion(quaternion unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3MakeWithRows(row0 unsafe.Pointer, row1 unsafe.Pointer, row2 unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3MakeXRotation(radians float32) unsafe.Pointer
- func GLKMatrix3MakeYRotation(radians float32) unsafe.Pointer
- func GLKMatrix3MakeZRotation(radians float32) unsafe.Pointer
- func GLKMatrix3Multiply(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3MultiplyVector3(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3MultiplyVector3Array(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)
- func GLKMatrix3Rotate(matrix unsafe.Pointer, radians float32, x float32, y float32, z float32) unsafe.Pointer
- func GLKMatrix3RotateWithVector3(matrix unsafe.Pointer, radians float32, axisVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3RotateWithVector4(matrix unsafe.Pointer, radians float32, axisVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3RotateX(matrix unsafe.Pointer, radians float32) unsafe.Pointer
- func GLKMatrix3RotateY(matrix unsafe.Pointer, radians float32) unsafe.Pointer
- func GLKMatrix3RotateZ(matrix unsafe.Pointer, radians float32) unsafe.Pointer
- func GLKMatrix3Scale(matrix unsafe.Pointer, sx float32, sy float32, sz float32) unsafe.Pointer
- func GLKMatrix3ScaleWithVector3(matrix unsafe.Pointer, scaleVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3ScaleWithVector4(matrix unsafe.Pointer, scaleVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3SetColumn(matrix unsafe.Pointer, column int, vector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3SetRow(matrix unsafe.Pointer, row int, vector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3Subtract(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix3Transpose(matrix unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4Add(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4GetColumn(matrix unsafe.Pointer, column int) unsafe.Pointer
- func GLKMatrix4GetMatrix2(matrix unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4GetMatrix3(matrix unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4GetRow(matrix unsafe.Pointer, row int) unsafe.Pointer
- func GLKMatrix4Identity() uintptr
- func GLKMatrix4Invert(matrix unsafe.Pointer) (result unsafe.Pointer, isInvertible bool)
- func GLKMatrix4InvertAndTranspose(matrix unsafe.Pointer) (result unsafe.Pointer, isInvertible bool)
- func GLKMatrix4Make(m00 float32, m01 float32, m02 float32, m03 float32, m10 float32, m11 float32, ...) unsafe.Pointer
- func GLKMatrix4MakeAndTranspose(m00 float32, m01 float32, m02 float32, m03 float32, m10 float32, m11 float32, ...) unsafe.Pointer
- func GLKMatrix4MakeFrustum(left float32, right float32, bottom float32, top float32, nearZ float32, ...) unsafe.Pointer
- func GLKMatrix4MakeLookAt(eyeX float32, eyeY float32, eyeZ float32, centerX float32, centerY float32, ...) unsafe.Pointer
- func GLKMatrix4MakeOrtho(left float32, right float32, bottom float32, top float32, nearZ float32, ...) unsafe.Pointer
- func GLKMatrix4MakePerspective(fovyRadians float32, aspect float32, nearZ float32, farZ float32) unsafe.Pointer
- func GLKMatrix4MakeRotation(radians float32, x float32, y float32, z float32) unsafe.Pointer
- func GLKMatrix4MakeScale(sx float32, sy float32, sz float32) unsafe.Pointer
- func GLKMatrix4MakeTranslation(tx float32, ty float32, tz float32) unsafe.Pointer
- func GLKMatrix4MakeWithArray() (result unsafe.Pointer, values float32)
- func GLKMatrix4MakeWithArrayAndTranspose() (result unsafe.Pointer, values float32)
- func GLKMatrix4MakeWithColumns(column0 unsafe.Pointer, column1 unsafe.Pointer, column2 unsafe.Pointer, ...) unsafe.Pointer
- func GLKMatrix4MakeWithQuaternion(quaternion unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4MakeWithRows(row0 unsafe.Pointer, row1 unsafe.Pointer, row2 unsafe.Pointer, ...) unsafe.Pointer
- func GLKMatrix4MakeXRotation(radians float32) unsafe.Pointer
- func GLKMatrix4MakeYRotation(radians float32) unsafe.Pointer
- func GLKMatrix4MakeZRotation(radians float32) unsafe.Pointer
- func GLKMatrix4Multiply(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4MultiplyAndProjectVector3(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4MultiplyAndProjectVector3Array(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)
- func GLKMatrix4MultiplyVector3(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4MultiplyVector3Array(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)
- func GLKMatrix4MultiplyVector3ArrayWithTranslation(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)
- func GLKMatrix4MultiplyVector3WithTranslation(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4MultiplyVector4(matrixLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4MultiplyVector4Array(matrix unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)
- func GLKMatrix4Rotate(matrix unsafe.Pointer, radians float32, x float32, y float32, z float32) unsafe.Pointer
- func GLKMatrix4RotateWithVector3(matrix unsafe.Pointer, radians float32, axisVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4RotateWithVector4(matrix unsafe.Pointer, radians float32, axisVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4RotateX(matrix unsafe.Pointer, radians float32) unsafe.Pointer
- func GLKMatrix4RotateY(matrix unsafe.Pointer, radians float32) unsafe.Pointer
- func GLKMatrix4RotateZ(matrix unsafe.Pointer, radians float32) unsafe.Pointer
- func GLKMatrix4Scale(matrix unsafe.Pointer, sx float32, sy float32, sz float32) unsafe.Pointer
- func GLKMatrix4ScaleWithVector3(matrix unsafe.Pointer, scaleVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4ScaleWithVector4(matrix unsafe.Pointer, scaleVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4SetColumn(matrix unsafe.Pointer, column int, vector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4SetRow(matrix unsafe.Pointer, row int, vector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4Subtract(matrixLeft unsafe.Pointer, matrixRight unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4Translate(matrix unsafe.Pointer, tx float32, ty float32, tz float32) unsafe.Pointer
- func GLKMatrix4TranslateWithVector3(matrix unsafe.Pointer, translationVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4TranslateWithVector4(matrix unsafe.Pointer, translationVector unsafe.Pointer) unsafe.Pointer
- func GLKMatrix4Transpose(matrix unsafe.Pointer) unsafe.Pointer
- func GLKMatrixStackGetMatrix2(stack GLKMatrixStackRef) unsafe.Pointer
- func GLKMatrixStackGetMatrix3(stack GLKMatrixStackRef) unsafe.Pointer
- func GLKMatrixStackGetMatrix3Inverse(stack GLKMatrixStackRef) unsafe.Pointer
- func GLKMatrixStackGetMatrix3InverseTranspose(stack GLKMatrixStackRef) unsafe.Pointer
- func GLKMatrixStackGetMatrix4(stack GLKMatrixStackRef) unsafe.Pointer
- func GLKMatrixStackGetMatrix4Inverse(stack GLKMatrixStackRef) unsafe.Pointer
- func GLKMatrixStackGetMatrix4InverseTranspose(stack GLKMatrixStackRef) unsafe.Pointer
- func GLKMatrixStackGetTypeID() int
- func GLKMatrixStackLoadMatrix4(stack GLKMatrixStackRef, matrix unsafe.Pointer)
- func GLKMatrixStackMultiplyMatrix4(stack GLKMatrixStackRef, matrix unsafe.Pointer)
- func GLKMatrixStackMultiplyMatrixStack(stackLeft GLKMatrixStackRef, stackRight GLKMatrixStackRef)
- func GLKMatrixStackPop(stack GLKMatrixStackRef)
- func GLKMatrixStackPush(stack GLKMatrixStackRef)
- func GLKMatrixStackRotate(stack GLKMatrixStackRef, radians float32, x float32, y float32, z float32)
- func GLKMatrixStackRotateWithVector3(stack GLKMatrixStackRef, radians float32, axisVector unsafe.Pointer)
- func GLKMatrixStackRotateWithVector4(stack GLKMatrixStackRef, radians float32, axisVector unsafe.Pointer)
- func GLKMatrixStackRotateX(stack GLKMatrixStackRef, radians float32)
- func GLKMatrixStackRotateY(stack GLKMatrixStackRef, radians float32)
- func GLKMatrixStackRotateZ(stack GLKMatrixStackRef, radians float32)
- func GLKMatrixStackScale(stack GLKMatrixStackRef, sx float32, sy float32, sz float32)
- func GLKMatrixStackScaleWithVector3(stack GLKMatrixStackRef, scaleVector unsafe.Pointer)
- func GLKMatrixStackScaleWithVector4(stack GLKMatrixStackRef, scaleVector unsafe.Pointer)
- func GLKMatrixStackSize(stack GLKMatrixStackRef) int
- func GLKMatrixStackTranslate(stack GLKMatrixStackRef, tx float32, ty float32, tz float32)
- func GLKMatrixStackTranslateWithVector3(stack GLKMatrixStackRef, translationVector unsafe.Pointer)
- func GLKMatrixStackTranslateWithVector4(stack GLKMatrixStackRef, translationVector unsafe.Pointer)
- func GLKQuaternionAdd(quaternionLeft unsafe.Pointer, quaternionRight unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionAngle(quaternion unsafe.Pointer) float32
- func GLKQuaternionAxis(quaternion unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionConjugate(quaternion unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionIdentity() uintptr
- func GLKQuaternionInvert(quaternion unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionLength(quaternion unsafe.Pointer) float32
- func GLKQuaternionMake(x float32, y float32, z float32, w float32) unsafe.Pointer
- func GLKQuaternionMakeWithAngleAndAxis(radians float32, x float32, y float32, z float32) unsafe.Pointer
- func GLKQuaternionMakeWithAngleAndVector3Axis(radians float32, axisVector unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionMakeWithArray() (result unsafe.Pointer, values float32)
- func GLKQuaternionMakeWithMatrix3(matrix unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionMakeWithMatrix4(matrix unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionMakeWithVector3(vector unsafe.Pointer, scalar float32) unsafe.Pointer
- func GLKQuaternionMultiply(quaternionLeft unsafe.Pointer, quaternionRight unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionNormalize(quaternion unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionRotateVector3(quaternion unsafe.Pointer, vector unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionRotateVector3Array(quaternion unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)
- func GLKQuaternionRotateVector4(quaternion unsafe.Pointer, vector unsafe.Pointer) unsafe.Pointer
- func GLKQuaternionRotateVector4Array(quaternion unsafe.Pointer, vectors unsafe.Pointer, vectorCount int)
- func GLKQuaternionSlerp(quaternionStart unsafe.Pointer, quaternionEnd unsafe.Pointer, t float32) unsafe.Pointer
- func GLKQuaternionSubtract(quaternionLeft unsafe.Pointer, quaternionRight unsafe.Pointer) unsafe.Pointer
- func GLKTextureLoaderApplyPremultiplication() obj.Object
- func GLKTextureLoaderErrorDomain() obj.Object
- func GLKTextureLoaderErrorKey() obj.Object
- func GLKTextureLoaderGLErrorKey() obj.Object
- func GLKTextureLoaderGenerateMipmaps() obj.Object
- func GLKTextureLoaderOriginBottomLeft() obj.Object
- func GLKTextureLoaderSRGB() obj.Object
- func GLKVector2Add(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector2AddScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector2AllEqualToScalar(vector unsafe.Pointer, value float32) bool
- func GLKVector2AllEqualToVector2(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool
- func GLKVector2AllGreaterThanOrEqualToScalar(vector unsafe.Pointer, value float32) bool
- func GLKVector2AllGreaterThanOrEqualToVector2(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool
- func GLKVector2AllGreaterThanScalar(vector unsafe.Pointer, value float32) bool
- func GLKVector2AllGreaterThanVector2(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool
- func GLKVector2Distance(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer) float32
- func GLKVector2Divide(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector2DivideScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector2DotProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) float32
- func GLKVector2Length(vector unsafe.Pointer) float32
- func GLKVector2Lerp(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer, t float32) unsafe.Pointer
- func GLKVector2Make(x float32, y float32) unsafe.Pointer
- func GLKVector2MakeWithArray() (result unsafe.Pointer, values float32)
- func GLKVector2Maximum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector2Minimum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector2Multiply(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector2MultiplyScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector2Negate(vector unsafe.Pointer) unsafe.Pointer
- func GLKVector2Normalize(vector unsafe.Pointer) unsafe.Pointer
- func GLKVector2Project(vectorToProject unsafe.Pointer, projectionVector unsafe.Pointer) unsafe.Pointer
- func GLKVector2Subtract(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector2SubtractScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector3Add(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector3AddScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector3AllEqualToScalar(vector unsafe.Pointer, value float32) bool
- func GLKVector3AllEqualToVector3(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool
- func GLKVector3AllGreaterThanOrEqualToScalar(vector unsafe.Pointer, value float32) bool
- func GLKVector3AllGreaterThanOrEqualToVector3(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool
- func GLKVector3AllGreaterThanScalar(vector unsafe.Pointer, value float32) bool
- func GLKVector3AllGreaterThanVector3(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool
- func GLKVector3CrossProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector3Distance(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer) float32
- func GLKVector3Divide(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector3DivideScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector3DotProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) float32
- func GLKVector3Length(vector unsafe.Pointer) float32
- func GLKVector3Lerp(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer, t float32) unsafe.Pointer
- func GLKVector3Make(x float32, y float32, z float32) unsafe.Pointer
- func GLKVector3MakeWithArray() (result unsafe.Pointer, values float32)
- func GLKVector3Maximum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector3Minimum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector3Multiply(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector3MultiplyScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector3Negate(vector unsafe.Pointer) unsafe.Pointer
- func GLKVector3Normalize(vector unsafe.Pointer) unsafe.Pointer
- func GLKVector3Project(vectorToProject unsafe.Pointer, projectionVector unsafe.Pointer) unsafe.Pointer
- func GLKVector3Subtract(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector3SubtractScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector4Add(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector4AddScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector4AllEqualToScalar(vector unsafe.Pointer, value float32) bool
- func GLKVector4AllEqualToVector4(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool
- func GLKVector4AllGreaterThanOrEqualToScalar(vector unsafe.Pointer, value float32) bool
- func GLKVector4AllGreaterThanOrEqualToVector4(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool
- func GLKVector4AllGreaterThanScalar(vector unsafe.Pointer, value float32) bool
- func GLKVector4AllGreaterThanVector4(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) bool
- func GLKVector4CrossProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector4Distance(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer) float32
- func GLKVector4Divide(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector4DivideScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector4DotProduct(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) float32
- func GLKVector4Length(vector unsafe.Pointer) float32
- func GLKVector4Lerp(vectorStart unsafe.Pointer, vectorEnd unsafe.Pointer, t float32) unsafe.Pointer
- func GLKVector4Make(x float32, y float32, z float32, w float32) unsafe.Pointer
- func GLKVector4MakeWithArray() (result unsafe.Pointer, values float32)
- func GLKVector4MakeWithVector3(vector unsafe.Pointer, w float32) unsafe.Pointer
- func GLKVector4Maximum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector4Minimum(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector4Multiply(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector4MultiplyScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func GLKVector4Negate(vector unsafe.Pointer) unsafe.Pointer
- func GLKVector4Normalize(vector unsafe.Pointer) unsafe.Pointer
- func GLKVector4Project(vectorToProject unsafe.Pointer, projectionVector unsafe.Pointer) unsafe.Pointer
- func GLKVector4Subtract(vectorLeft unsafe.Pointer, vectorRight unsafe.Pointer) unsafe.Pointer
- func GLKVector4SubtractScalar(vector unsafe.Pointer, value float32) unsafe.Pointer
- func KGLKModelErrorDomain() obj.Object
- func KGLKModelErrorKey() obj.Object
- func NSStringFromGLKMatrix2(matrix unsafe.Pointer) string
- func NSStringFromGLKMatrix3(matrix unsafe.Pointer) string
- func NSStringFromGLKMatrix4(matrix unsafe.Pointer) string
- func NSStringFromGLKQuaternion(quaternion unsafe.Pointer) string
- func NSStringFromGLKVector2(vector unsafe.Pointer) string
- func NSStringFromGLKVector3(vector unsafe.Pointer) string
- func NSStringFromGLKVector4(vector unsafe.Pointer) string
- type BaseEffect
- func (be *BaseEffect) ColorMaterialEnabled() uint8
- func (be *BaseEffect) ConstantColor() unsafe.Pointer
- func (be *BaseEffect) Description() string
- func (be *BaseEffect) Fog() *EffectPropertyFog
- func (be *BaseEffect) IsEqual(other obj.Object) bool
- func (be *BaseEffect) IsKind(className string) bool
- func (be *BaseEffect) Label() string
- func (be *BaseEffect) Light0() *EffectPropertyLight
- func (be *BaseEffect) Light1() *EffectPropertyLight
- func (be *BaseEffect) Light2() *EffectPropertyLight
- func (be *BaseEffect) LightModelAmbientColor() unsafe.Pointer
- func (be *BaseEffect) LightModelTwoSided() uint8
- func (be *BaseEffect) LightingType() LightingType
- func (be *BaseEffect) Material() *EffectPropertyMaterial
- func (be *BaseEffect) PrepareToDraw()
- func (be *BaseEffect) String() string
- func (be *BaseEffect) Texture2d0() *EffectPropertyTexture
- func (be *BaseEffect) Texture2d1() *EffectPropertyTexture
- func (be *BaseEffect) TextureOrder() []*EffectPropertyTexture
- func (be *BaseEffect) Transform() *EffectPropertyTransform
- func (be *BaseEffect) UseConstantColor() uint8
- func (be *BaseEffect) WithColorMaterialEnabled(colorMaterialEnabled uint8) *BaseEffect
- func (be *BaseEffect) WithConstantColor(constantColor unsafe.Pointer) *BaseEffect
- func (be *BaseEffect) WithLabel(label string) *BaseEffect
- func (be *BaseEffect) WithLightModelAmbientColor(lightModelAmbientColor unsafe.Pointer) *BaseEffect
- func (be *BaseEffect) WithLightModelTwoSided(lightModelTwoSided uint8) *BaseEffect
- func (be *BaseEffect) WithLightingType(lightingType LightingType) *BaseEffect
- func (be *BaseEffect) WithTextureOrder(items ...*EffectPropertyTexture) *BaseEffect
- func (be *BaseEffect) WithUseConstantColor(useConstantColor uint8) *BaseEffect
- type BaseEffectProvider
- type CGLCPContextPriorityRequest
- type Clockid
- type DispatchAutoreleaseFrequency
- type DispatchBlockFlags
- type EffectProperty
- type EffectPropertyFog
- func (epf *EffectPropertyFog) Color() unsafe.Pointer
- func (epf *EffectPropertyFog) Density() float32
- func (epf *EffectPropertyFog) Enabled() uint8
- func (epf *EffectPropertyFog) End() float32
- func (epf *EffectPropertyFog) Mode() int32
- func (epf *EffectPropertyFog) Start() float32
- func (epf *EffectPropertyFog) WithColor(color unsafe.Pointer) *EffectPropertyFog
- func (epf *EffectPropertyFog) WithDensity(density float32) *EffectPropertyFog
- func (epf *EffectPropertyFog) WithEnabled(enabled uint8) *EffectPropertyFog
- func (epf *EffectPropertyFog) WithEnd(end float32) *EffectPropertyFog
- func (epf *EffectPropertyFog) WithMode(mode int32) *EffectPropertyFog
- func (epf *EffectPropertyFog) WithStart(start float32) *EffectPropertyFog
- type EffectPropertyLight
- func (epl *EffectPropertyLight) AmbientColor() unsafe.Pointer
- func (epl *EffectPropertyLight) ConstantAttenuation() float32
- func (epl *EffectPropertyLight) DiffuseColor() unsafe.Pointer
- func (epl *EffectPropertyLight) Enabled() uint8
- func (epl *EffectPropertyLight) LinearAttenuation() float32
- func (epl *EffectPropertyLight) Position() unsafe.Pointer
- func (epl *EffectPropertyLight) QuadraticAttenuation() float32
- func (epl *EffectPropertyLight) SpecularColor() unsafe.Pointer
- func (epl *EffectPropertyLight) SpotCutoff() float32
- func (epl *EffectPropertyLight) SpotDirection() unsafe.Pointer
- func (epl *EffectPropertyLight) SpotExponent() float32
- func (epl *EffectPropertyLight) Transform() *EffectPropertyTransform
- func (epl *EffectPropertyLight) WithAmbientColor(ambientColor unsafe.Pointer) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithConstantAttenuation(constantAttenuation float32) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithDiffuseColor(diffuseColor unsafe.Pointer) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithEnabled(enabled uint8) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithLinearAttenuation(linearAttenuation float32) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithPosition(position unsafe.Pointer) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithQuadraticAttenuation(quadraticAttenuation float32) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithSpecularColor(specularColor unsafe.Pointer) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithSpotCutoff(spotCutoff float32) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithSpotDirection(spotDirection unsafe.Pointer) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithSpotExponent(spotExponent float32) *EffectPropertyLight
- func (epl *EffectPropertyLight) WithTransform(transform *EffectPropertyTransform) *EffectPropertyLight
- type EffectPropertyMaterial
- func (epm *EffectPropertyMaterial) AmbientColor() unsafe.Pointer
- func (epm *EffectPropertyMaterial) DiffuseColor() unsafe.Pointer
- func (epm *EffectPropertyMaterial) EmissiveColor() unsafe.Pointer
- func (epm *EffectPropertyMaterial) Shininess() float32
- func (epm *EffectPropertyMaterial) SpecularColor() unsafe.Pointer
- func (epm *EffectPropertyMaterial) WithAmbientColor(ambientColor unsafe.Pointer) *EffectPropertyMaterial
- func (epm *EffectPropertyMaterial) WithDiffuseColor(diffuseColor unsafe.Pointer) *EffectPropertyMaterial
- func (epm *EffectPropertyMaterial) WithEmissiveColor(emissiveColor unsafe.Pointer) *EffectPropertyMaterial
- func (epm *EffectPropertyMaterial) WithShininess(shininess float32) *EffectPropertyMaterial
- func (epm *EffectPropertyMaterial) WithSpecularColor(specularColor unsafe.Pointer) *EffectPropertyMaterial
- type EffectPropertyProvider
- type EffectPropertyTexture
- func (ept *EffectPropertyTexture) Enabled() uint8
- func (ept *EffectPropertyTexture) EnvMode() TextureEnvMode
- func (ept *EffectPropertyTexture) Name() uint32
- func (ept *EffectPropertyTexture) Target() TextureTarget
- func (ept *EffectPropertyTexture) WithEnabled(enabled uint8) *EffectPropertyTexture
- func (ept *EffectPropertyTexture) WithEnvMode(envMode TextureEnvMode) *EffectPropertyTexture
- func (ept *EffectPropertyTexture) WithName(name uint32) *EffectPropertyTexture
- func (ept *EffectPropertyTexture) WithTarget(target TextureTarget) *EffectPropertyTexture
- type EffectPropertyTransform
- func (ept *EffectPropertyTransform) ModelviewMatrix() unsafe.Pointer
- func (ept *EffectPropertyTransform) NormalMatrix() unsafe.Pointer
- func (ept *EffectPropertyTransform) ProjectionMatrix() unsafe.Pointer
- func (ept *EffectPropertyTransform) WithModelviewMatrix(modelviewMatrix unsafe.Pointer) *EffectPropertyTransform
- func (ept *EffectPropertyTransform) WithProjectionMatrix(projectionMatrix unsafe.Pointer) *EffectPropertyTransform
- type EntryID
- type EvCmd
- type FilesecProperty
- type Flag
- type FogMode
- type GLKEffectPropertyPrv
- type GLKEffectPropertyPrvPtr
- type GLKMatrix2
- type GLKMatrix3
- type GLKMatrix4
- type GLKMatrixStack
- type GLKMatrixStackRef
- type GLKQuaternion
- type GLKVector2
- type GLKVector3
- type GLKVector4
- type GLKVertexAttributeParameters
- type Idtype
- type IpcInfoObjectType
- type LaunchDataType
- type LightingType
- type MDLabelDomain
- type MDQueryOptionFlags
- type MDQuerySortOptionFlags
- type MachVMRangeFlags
- type MachVMRangeFlavor
- type MachVMRangeTag
- type Mesh
- func (m *Mesh) Description() string
- func (m *Mesh) IsEqual(other obj.Object) bool
- func (m *Mesh) IsKind(className string) bool
- func (m *Mesh) Name() string
- func (m *Mesh) String() string
- func (m *Mesh) Submeshes() []*Submesh
- func (m *Mesh) VertexBuffers() []*MeshBuffer
- func (m *Mesh) VertexCount() int
- func (m *Mesh) VertexDescriptor() obj.Object
- type MeshBuffer
- func (mb *MeshBuffer) Allocator() *MeshBufferAllocator
- func (mb *MeshBuffer) Description() string
- func (mb *MeshBuffer) GlBufferName() uint32
- func (mb *MeshBuffer) IsEqual(other obj.Object) bool
- func (mb *MeshBuffer) IsKind(className string) bool
- func (mb *MeshBuffer) Length() int
- func (mb *MeshBuffer) Offset() int
- func (mb *MeshBuffer) String() string
- type MeshBufferAllocator
- type MpoFlags
- type NXMouseButton
- type NamedEffect
- type OSClockid
- type OSUnfairLockFlags
- type PMPageToPaperMappingType
- type Perm
- type PtrauthKey
- type QosClass
- type ReflectionMapEffect
- func (rme *ReflectionMapEffect) Matrix() unsafe.Pointer
- func (rme *ReflectionMapEffect) TextureCubeMap() *EffectPropertyTexture
- func (rme *ReflectionMapEffect) WithColorMaterialEnabled(colorMaterialEnabled uint8) *ReflectionMapEffect
- func (rme *ReflectionMapEffect) WithConstantColor(constantColor unsafe.Pointer) *ReflectionMapEffect
- func (rme *ReflectionMapEffect) WithLabel(label string) *ReflectionMapEffect
- func (rme *ReflectionMapEffect) WithLightModelAmbientColor(lightModelAmbientColor unsafe.Pointer) *ReflectionMapEffect
- func (rme *ReflectionMapEffect) WithLightModelTwoSided(lightModelTwoSided uint8) *ReflectionMapEffect
- func (rme *ReflectionMapEffect) WithLightingType(lightingType LightingType) *ReflectionMapEffect
- func (rme *ReflectionMapEffect) WithMatrix(matrix unsafe.Pointer) *ReflectionMapEffect
- func (rme *ReflectionMapEffect) WithTextureOrder(items ...*EffectPropertyTexture) *ReflectionMapEffect
- func (rme *ReflectionMapEffect) WithUseConstantColor(useConstantColor uint8) *ReflectionMapEffect
- type SkyboxEffect
- func (se *SkyboxEffect) Center() unsafe.Pointer
- func (se *SkyboxEffect) Description() string
- func (se *SkyboxEffect) Draw()
- func (se *SkyboxEffect) IsEqual(other obj.Object) bool
- func (se *SkyboxEffect) IsKind(className string) bool
- func (se *SkyboxEffect) Label() string
- func (se *SkyboxEffect) PrepareToDraw()
- func (se *SkyboxEffect) String() string
- func (se *SkyboxEffect) TextureCubeMap() *EffectPropertyTexture
- func (se *SkyboxEffect) Transform() *EffectPropertyTransform
- func (se *SkyboxEffect) WithCenter(center unsafe.Pointer) *SkyboxEffect
- func (se *SkyboxEffect) WithLabel(label string) *SkyboxEffect
- func (se *SkyboxEffect) WithXSize(xSize float32) *SkyboxEffect
- func (se *SkyboxEffect) WithYSize(ySize float32) *SkyboxEffect
- func (se *SkyboxEffect) WithZSize(zSize float32) *SkyboxEffect
- func (se *SkyboxEffect) XSize() float32
- func (se *SkyboxEffect) YSize() float32
- func (se *SkyboxEffect) ZSize() float32
- type Submesh
- func (s *Submesh) Description() string
- func (s *Submesh) ElementBuffer() *MeshBuffer
- func (s *Submesh) ElementCount() int32
- func (s *Submesh) IsEqual(other obj.Object) bool
- func (s *Submesh) IsKind(className string) bool
- func (s *Submesh) Mesh() *Mesh
- func (s *Submesh) Mode() uint32
- func (s *Submesh) Name() string
- func (s *Submesh) String() string
- func (s *Submesh) Type() uint32
- type Tag
- type TextureEnvMode
- type TextureInfo
- func CubeMapWithContentsOfFileOptions(path string, options map[string]*foundation.Number) (result *TextureInfo, err error)
- func CubeMapWithContentsOfFilesOptions(paths []obj.Object, options map[string]*foundation.Number) (result *TextureInfo, err error)
- func CubeMapWithContentsOfURLOptions(url string, options map[string]*foundation.Number) (result *TextureInfo, err error)
- func NewTextureInfo() *TextureInfo
- func TextureInfoFromID(id objc.ID) *TextureInfo
- func TextureWithCGImageOptions(cgImage coregraphics.CGImageRef, options map[string]*foundation.Number) (result *TextureInfo, err error)
- func TextureWithContentsOfDataOptions(data []byte, options map[string]*foundation.Number) (result *TextureInfo, err error)
- func TextureWithContentsOfFileOptions(path string, options map[string]*foundation.Number) (result *TextureInfo, err error)
- func TextureWithContentsOfURLOptions(url string, options map[string]*foundation.Number) (result *TextureInfo, err error)
- func TextureWithNameScaleFactorBundleOptions(name string, scaleFactor float64, bundle obj.Object, ...) (result *TextureInfo, err error)
- func (ti *TextureInfo) AlphaState() TextureInfoAlphaState
- func (ti *TextureInfo) ArrayLength() uint32
- func (ti *TextureInfo) ContainsMipmaps() bool
- func (ti *TextureInfo) Depth() uint32
- func (ti *TextureInfo) Description() string
- func (ti *TextureInfo) Height() uint32
- func (ti *TextureInfo) IsEqual(other obj.Object) bool
- func (ti *TextureInfo) IsKind(className string) bool
- func (ti *TextureInfo) MimapLevelCount() uint32
- func (ti *TextureInfo) Name() uint32
- func (ti *TextureInfo) String() string
- func (ti *TextureInfo) Target() uint32
- func (ti *TextureInfo) TextureOrigin() TextureInfoOrigin
- func (ti *TextureInfo) Width() uint32
- type TextureInfoAlphaState
- type TextureInfoOrigin
- type TextureLoader
- func (tl *TextureLoader) CubeMapWithContentsOfFileOptionsQueueCompletionHandler(path string, options map[string]*foundation.Number, queue dispatch.Queue, ...)
- func (tl *TextureLoader) CubeMapWithContentsOfFilesOptionsQueueCompletionHandler(paths []obj.Object, options map[string]*foundation.Number, ...)
- func (tl *TextureLoader) CubeMapWithContentsOfURLOptionsQueueCompletionHandler(url string, options map[string]*foundation.Number, queue dispatch.Queue, ...)
- func (tl *TextureLoader) Description() string
- func (tl *TextureLoader) IsEqual(other obj.Object) bool
- func (tl *TextureLoader) IsKind(className string) bool
- func (tl *TextureLoader) String() string
- func (tl *TextureLoader) TextureWithCGImageOptionsQueueCompletionHandler(cgImage coregraphics.CGImageRef, options map[string]*foundation.Number, ...)
- func (tl *TextureLoader) TextureWithContentsOfDataOptionsQueueCompletionHandler(data []byte, options map[string]*foundation.Number, queue dispatch.Queue, ...)
- func (tl *TextureLoader) TextureWithContentsOfFileOptionsQueueCompletionHandler(path string, options map[string]*foundation.Number, queue dispatch.Queue, ...)
- func (tl *TextureLoader) TextureWithContentsOfURLOptionsQueueCompletionHandler(url string, options map[string]*foundation.Number, queue dispatch.Queue, ...)
- func (tl *TextureLoader) TextureWithNameScaleFactorBundleOptionsQueueCompletionHandler(name string, scaleFactor float64, bundle obj.Object, ...)
- type TextureLoaderError
- type TextureTarget
- type Type
- type VertexAttrib
- type VirtualMemoryGuardExceptionCode
- type XpcListenerCreateFlags
- type XpcSessionCreateFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GLKMathDegreesToRadians ¶
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 ¶
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 ¶
GLKMatrix3Add calls the GLKit framework function GLKMatrix3Add.
func GLKMatrix3GetColumn ¶
GLKMatrix3GetColumn calls the GLKit framework function GLKMatrix3GetColumn.
func GLKMatrix3GetMatrix2 ¶
GLKMatrix3GetMatrix2 calls the GLKit framework function GLKMatrix3GetMatrix2.
func GLKMatrix3GetRow ¶
GLKMatrix3GetRow calls the GLKit framework function GLKMatrix3GetRow.
func GLKMatrix3Identity ¶
func GLKMatrix3Identity() uintptr
GLKMatrix3Identity returns the address of the symbol GLKMatrix3Identity.
func GLKMatrix3Invert ¶
GLKMatrix3Invert calls the GLKit framework function GLKMatrix3Invert.
func GLKMatrix3InvertAndTranspose ¶
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 ¶
GLKMatrix3MakeRotation calls the GLKit framework function GLKMatrix3MakeRotation.
func GLKMatrix3MakeScale ¶
GLKMatrix3MakeScale calls the GLKit framework function GLKMatrix3MakeScale.
func GLKMatrix3MakeWithArray ¶
GLKMatrix3MakeWithArray calls the GLKit framework function GLKMatrix3MakeWithArray.
func GLKMatrix3MakeWithArrayAndTranspose ¶
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 ¶
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 ¶
GLKMatrix3MakeXRotation calls the GLKit framework function GLKMatrix3MakeXRotation.
func GLKMatrix3MakeYRotation ¶
GLKMatrix3MakeYRotation calls the GLKit framework function GLKMatrix3MakeYRotation.
func GLKMatrix3MakeZRotation ¶
GLKMatrix3MakeZRotation calls the GLKit framework function GLKMatrix3MakeZRotation.
func GLKMatrix3Multiply ¶
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 ¶
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 ¶
GLKMatrix3RotateX calls the GLKit framework function GLKMatrix3RotateX.
func GLKMatrix3RotateY ¶
GLKMatrix3RotateY calls the GLKit framework function GLKMatrix3RotateY.
func GLKMatrix3RotateZ ¶
GLKMatrix3RotateZ calls the GLKit framework function GLKMatrix3RotateZ.
func GLKMatrix3Scale ¶
GLKMatrix3Scale calls the GLKit framework function GLKMatrix3Scale.
func GLKMatrix3ScaleWithVector3 ¶
GLKMatrix3ScaleWithVector3 calls the GLKit framework function GLKMatrix3ScaleWithVector3.
func GLKMatrix3ScaleWithVector4 ¶
GLKMatrix3ScaleWithVector4 calls the GLKit framework function GLKMatrix3ScaleWithVector4.
func GLKMatrix3SetColumn ¶
GLKMatrix3SetColumn calls the GLKit framework function GLKMatrix3SetColumn.
func GLKMatrix3SetRow ¶
GLKMatrix3SetRow calls the GLKit framework function GLKMatrix3SetRow.
func GLKMatrix3Subtract ¶
GLKMatrix3Subtract calls the GLKit framework function GLKMatrix3Subtract.
func GLKMatrix3Transpose ¶
GLKMatrix3Transpose calls the GLKit framework function GLKMatrix3Transpose.
func GLKMatrix4Add ¶
GLKMatrix4Add calls the GLKit framework function GLKMatrix4Add.
func GLKMatrix4GetColumn ¶
GLKMatrix4GetColumn calls the GLKit framework function GLKMatrix4GetColumn.
func GLKMatrix4GetMatrix2 ¶
GLKMatrix4GetMatrix2 calls the GLKit framework function GLKMatrix4GetMatrix2.
func GLKMatrix4GetMatrix3 ¶
GLKMatrix4GetMatrix3 calls the GLKit framework function GLKMatrix4GetMatrix3.
func GLKMatrix4GetRow ¶
GLKMatrix4GetRow calls the GLKit framework function GLKMatrix4GetRow.
func GLKMatrix4Identity ¶
func GLKMatrix4Identity() uintptr
GLKMatrix4Identity returns the address of the symbol GLKMatrix4Identity.
func GLKMatrix4Invert ¶
GLKMatrix4Invert calls the GLKit framework function GLKMatrix4Invert.
func GLKMatrix4InvertAndTranspose ¶
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 ¶
GLKMatrix4MakeRotation calls the GLKit framework function GLKMatrix4MakeRotation.
func GLKMatrix4MakeScale ¶
GLKMatrix4MakeScale calls the GLKit framework function GLKMatrix4MakeScale.
func GLKMatrix4MakeTranslation ¶
GLKMatrix4MakeTranslation calls the GLKit framework function GLKMatrix4MakeTranslation.
func GLKMatrix4MakeWithArray ¶
GLKMatrix4MakeWithArray calls the GLKit framework function GLKMatrix4MakeWithArray.
func GLKMatrix4MakeWithArrayAndTranspose ¶
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 ¶
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 ¶
GLKMatrix4MakeXRotation calls the GLKit framework function GLKMatrix4MakeXRotation.
func GLKMatrix4MakeYRotation ¶
GLKMatrix4MakeYRotation calls the GLKit framework function GLKMatrix4MakeYRotation.
func GLKMatrix4MakeZRotation ¶
GLKMatrix4MakeZRotation calls the GLKit framework function GLKMatrix4MakeZRotation.
func GLKMatrix4Multiply ¶
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 ¶
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 ¶
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 ¶
GLKMatrix4RotateX calls the GLKit framework function GLKMatrix4RotateX.
func GLKMatrix4RotateY ¶
GLKMatrix4RotateY calls the GLKit framework function GLKMatrix4RotateY.
func GLKMatrix4RotateZ ¶
GLKMatrix4RotateZ calls the GLKit framework function GLKMatrix4RotateZ.
func GLKMatrix4Scale ¶
GLKMatrix4Scale calls the GLKit framework function GLKMatrix4Scale.
func GLKMatrix4ScaleWithVector3 ¶
GLKMatrix4ScaleWithVector3 calls the GLKit framework function GLKMatrix4ScaleWithVector3.
func GLKMatrix4ScaleWithVector4 ¶
GLKMatrix4ScaleWithVector4 calls the GLKit framework function GLKMatrix4ScaleWithVector4.
func GLKMatrix4SetColumn ¶
GLKMatrix4SetColumn calls the GLKit framework function GLKMatrix4SetColumn.
func GLKMatrix4SetRow ¶
GLKMatrix4SetRow calls the GLKit framework function GLKMatrix4SetRow.
func GLKMatrix4Subtract ¶
GLKMatrix4Subtract calls the GLKit framework function GLKMatrix4Subtract.
func GLKMatrix4Translate ¶
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 ¶
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 ¶
GLKQuaternionAdd calls the GLKit framework function GLKQuaternionAdd.
func GLKQuaternionAngle ¶
GLKQuaternionAngle calls the GLKit framework function GLKQuaternionAngle.
func GLKQuaternionAxis ¶
GLKQuaternionAxis calls the GLKit framework function GLKQuaternionAxis.
func GLKQuaternionConjugate ¶
GLKQuaternionConjugate calls the GLKit framework function GLKQuaternionConjugate.
func GLKQuaternionIdentity ¶
func GLKQuaternionIdentity() uintptr
GLKQuaternionIdentity returns the address of the symbol GLKQuaternionIdentity.
func GLKQuaternionInvert ¶
GLKQuaternionInvert calls the GLKit framework function GLKQuaternionInvert.
func GLKQuaternionLength ¶
GLKQuaternionLength calls the GLKit framework function GLKQuaternionLength.
func GLKQuaternionMake ¶
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 ¶
GLKQuaternionMakeWithArray calls the GLKit framework function GLKQuaternionMakeWithArray.
func GLKQuaternionMakeWithMatrix3 ¶
GLKQuaternionMakeWithMatrix3 calls the GLKit framework function GLKQuaternionMakeWithMatrix3.
func GLKQuaternionMakeWithMatrix4 ¶
GLKQuaternionMakeWithMatrix4 calls the GLKit framework function GLKQuaternionMakeWithMatrix4.
func GLKQuaternionMakeWithVector3 ¶
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 ¶
GLKQuaternionNormalize calls the GLKit framework function GLKQuaternionNormalize.
func GLKQuaternionRotateVector3 ¶
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 ¶
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 ¶
GLKTextureLoaderApplyPremultiplication returns the string constant GLKTextureLoaderApplyPremultiplication, for use as a dictionary key or argument.
func GLKTextureLoaderErrorDomain ¶
GLKTextureLoaderErrorDomain returns the string constant GLKTextureLoaderErrorDomain, for use as a dictionary key or argument.
func GLKTextureLoaderErrorKey ¶
GLKTextureLoaderErrorKey returns the string constant GLKTextureLoaderErrorKey, for use as a dictionary key or argument.
func GLKTextureLoaderGLErrorKey ¶
GLKTextureLoaderGLErrorKey returns the string constant GLKTextureLoaderGLErrorKey, for use as a dictionary key or argument.
func GLKTextureLoaderGenerateMipmaps ¶
GLKTextureLoaderGenerateMipmaps returns the string constant GLKTextureLoaderGenerateMipmaps, for use as a dictionary key or argument.
func GLKTextureLoaderOriginBottomLeft ¶
GLKTextureLoaderOriginBottomLeft returns the string constant GLKTextureLoaderOriginBottomLeft, for use as a dictionary key or argument.
func GLKTextureLoaderSRGB ¶
GLKTextureLoaderSRGB returns the string constant GLKTextureLoaderSRGB, for use as a dictionary key or argument.
func GLKVector2Add ¶
GLKVector2Add calls the GLKit framework function GLKVector2Add.
func GLKVector2AddScalar ¶
GLKVector2AddScalar calls the GLKit framework function GLKVector2AddScalar.
func GLKVector2AllEqualToScalar ¶
GLKVector2AllEqualToScalar calls the GLKit framework function GLKVector2AllEqualToScalar.
func GLKVector2AllEqualToVector2 ¶
GLKVector2AllEqualToVector2 calls the GLKit framework function GLKVector2AllEqualToVector2.
func GLKVector2AllGreaterThanOrEqualToScalar ¶
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 ¶
GLKVector2AllGreaterThanScalar calls the GLKit framework function GLKVector2AllGreaterThanScalar.
func GLKVector2AllGreaterThanVector2 ¶
GLKVector2AllGreaterThanVector2 calls the GLKit framework function GLKVector2AllGreaterThanVector2.
func GLKVector2Distance ¶
GLKVector2Distance calls the GLKit framework function GLKVector2Distance.
func GLKVector2Divide ¶
GLKVector2Divide calls the GLKit framework function GLKVector2Divide.
func GLKVector2DivideScalar ¶
GLKVector2DivideScalar calls the GLKit framework function GLKVector2DivideScalar.
func GLKVector2DotProduct ¶
GLKVector2DotProduct calls the GLKit framework function GLKVector2DotProduct.
func GLKVector2Length ¶
GLKVector2Length calls the GLKit framework function GLKVector2Length.
func GLKVector2Lerp ¶
GLKVector2Lerp calls the GLKit framework function GLKVector2Lerp.
func GLKVector2Make ¶
GLKVector2Make calls the GLKit framework function GLKVector2Make.
func GLKVector2MakeWithArray ¶
GLKVector2MakeWithArray calls the GLKit framework function GLKVector2MakeWithArray.
func GLKVector2Maximum ¶
GLKVector2Maximum calls the GLKit framework function GLKVector2Maximum.
func GLKVector2Minimum ¶
GLKVector2Minimum calls the GLKit framework function GLKVector2Minimum.
func GLKVector2Multiply ¶
GLKVector2Multiply calls the GLKit framework function GLKVector2Multiply.
func GLKVector2MultiplyScalar ¶
GLKVector2MultiplyScalar calls the GLKit framework function GLKVector2MultiplyScalar.
func GLKVector2Negate ¶
GLKVector2Negate calls the GLKit framework function GLKVector2Negate.
func GLKVector2Normalize ¶
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 ¶
GLKVector2Subtract calls the GLKit framework function GLKVector2Subtract.
func GLKVector2SubtractScalar ¶
GLKVector2SubtractScalar calls the GLKit framework function GLKVector2SubtractScalar.
func GLKVector3Add ¶
GLKVector3Add calls the GLKit framework function GLKVector3Add.
func GLKVector3AddScalar ¶
GLKVector3AddScalar calls the GLKit framework function GLKVector3AddScalar.
func GLKVector3AllEqualToScalar ¶
GLKVector3AllEqualToScalar calls the GLKit framework function GLKVector3AllEqualToScalar.
func GLKVector3AllEqualToVector3 ¶
GLKVector3AllEqualToVector3 calls the GLKit framework function GLKVector3AllEqualToVector3.
func GLKVector3AllGreaterThanOrEqualToScalar ¶
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 ¶
GLKVector3AllGreaterThanScalar calls the GLKit framework function GLKVector3AllGreaterThanScalar.
func GLKVector3AllGreaterThanVector3 ¶
GLKVector3AllGreaterThanVector3 calls the GLKit framework function GLKVector3AllGreaterThanVector3.
func GLKVector3CrossProduct ¶
GLKVector3CrossProduct calls the GLKit framework function GLKVector3CrossProduct.
func GLKVector3Distance ¶
GLKVector3Distance calls the GLKit framework function GLKVector3Distance.
func GLKVector3Divide ¶
GLKVector3Divide calls the GLKit framework function GLKVector3Divide.
func GLKVector3DivideScalar ¶
GLKVector3DivideScalar calls the GLKit framework function GLKVector3DivideScalar.
func GLKVector3DotProduct ¶
GLKVector3DotProduct calls the GLKit framework function GLKVector3DotProduct.
func GLKVector3Length ¶
GLKVector3Length calls the GLKit framework function GLKVector3Length.
func GLKVector3Lerp ¶
GLKVector3Lerp calls the GLKit framework function GLKVector3Lerp.
func GLKVector3Make ¶
GLKVector3Make calls the GLKit framework function GLKVector3Make.
func GLKVector3MakeWithArray ¶
GLKVector3MakeWithArray calls the GLKit framework function GLKVector3MakeWithArray.
func GLKVector3Maximum ¶
GLKVector3Maximum calls the GLKit framework function GLKVector3Maximum.
func GLKVector3Minimum ¶
GLKVector3Minimum calls the GLKit framework function GLKVector3Minimum.
func GLKVector3Multiply ¶
GLKVector3Multiply calls the GLKit framework function GLKVector3Multiply.
func GLKVector3MultiplyScalar ¶
GLKVector3MultiplyScalar calls the GLKit framework function GLKVector3MultiplyScalar.
func GLKVector3Negate ¶
GLKVector3Negate calls the GLKit framework function GLKVector3Negate.
func GLKVector3Normalize ¶
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 ¶
GLKVector3Subtract calls the GLKit framework function GLKVector3Subtract.
func GLKVector3SubtractScalar ¶
GLKVector3SubtractScalar calls the GLKit framework function GLKVector3SubtractScalar.
func GLKVector4Add ¶
GLKVector4Add calls the GLKit framework function GLKVector4Add.
func GLKVector4AddScalar ¶
GLKVector4AddScalar calls the GLKit framework function GLKVector4AddScalar.
func GLKVector4AllEqualToScalar ¶
GLKVector4AllEqualToScalar calls the GLKit framework function GLKVector4AllEqualToScalar.
func GLKVector4AllEqualToVector4 ¶
GLKVector4AllEqualToVector4 calls the GLKit framework function GLKVector4AllEqualToVector4.
func GLKVector4AllGreaterThanOrEqualToScalar ¶
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 ¶
GLKVector4AllGreaterThanScalar calls the GLKit framework function GLKVector4AllGreaterThanScalar.
func GLKVector4AllGreaterThanVector4 ¶
GLKVector4AllGreaterThanVector4 calls the GLKit framework function GLKVector4AllGreaterThanVector4.
func GLKVector4CrossProduct ¶
GLKVector4CrossProduct calls the GLKit framework function GLKVector4CrossProduct.
func GLKVector4Distance ¶
GLKVector4Distance calls the GLKit framework function GLKVector4Distance.
func GLKVector4Divide ¶
GLKVector4Divide calls the GLKit framework function GLKVector4Divide.
func GLKVector4DivideScalar ¶
GLKVector4DivideScalar calls the GLKit framework function GLKVector4DivideScalar.
func GLKVector4DotProduct ¶
GLKVector4DotProduct calls the GLKit framework function GLKVector4DotProduct.
func GLKVector4Length ¶
GLKVector4Length calls the GLKit framework function GLKVector4Length.
func GLKVector4Lerp ¶
GLKVector4Lerp calls the GLKit framework function GLKVector4Lerp.
func GLKVector4Make ¶
GLKVector4Make calls the GLKit framework function GLKVector4Make.
func GLKVector4MakeWithArray ¶
GLKVector4MakeWithArray calls the GLKit framework function GLKVector4MakeWithArray.
func GLKVector4MakeWithVector3 ¶
GLKVector4MakeWithVector3 calls the GLKit framework function GLKVector4MakeWithVector3.
func GLKVector4Maximum ¶
GLKVector4Maximum calls the GLKit framework function GLKVector4Maximum.
func GLKVector4Minimum ¶
GLKVector4Minimum calls the GLKit framework function GLKVector4Minimum.
func GLKVector4Multiply ¶
GLKVector4Multiply calls the GLKit framework function GLKVector4Multiply.
func GLKVector4MultiplyScalar ¶
GLKVector4MultiplyScalar calls the GLKit framework function GLKVector4MultiplyScalar.
func GLKVector4Negate ¶
GLKVector4Negate calls the GLKit framework function GLKVector4Negate.
func GLKVector4Normalize ¶
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 ¶
GLKVector4Subtract calls the GLKit framework function GLKVector4Subtract.
func GLKVector4SubtractScalar ¶
GLKVector4SubtractScalar calls the GLKit framework function GLKVector4SubtractScalar.
func KGLKModelErrorDomain ¶
KGLKModelErrorDomain returns the string constant kGLKModelErrorDomain, for use as a dictionary key or argument.
func KGLKModelErrorKey ¶
KGLKModelErrorKey returns the string constant kGLKModelErrorKey, for use as a dictionary key or argument.
func NSStringFromGLKMatrix2 ¶
NSStringFromGLKMatrix2 calls the GLKit framework function NSStringFromGLKMatrix2.
func NSStringFromGLKMatrix3 ¶
NSStringFromGLKMatrix3 calls the GLKit framework function NSStringFromGLKMatrix3.
func NSStringFromGLKMatrix4 ¶
NSStringFromGLKMatrix4 calls the GLKit framework function NSStringFromGLKMatrix4.
func NSStringFromGLKQuaternion ¶
NSStringFromGLKQuaternion calls the GLKit framework function NSStringFromGLKQuaternion.
func NSStringFromGLKVector2 ¶
NSStringFromGLKVector2 calls the GLKit framework function NSStringFromGLKVector2.
func NSStringFromGLKVector3 ¶
NSStringFromGLKVector3 calls the GLKit framework function NSStringFromGLKVector3.
func NSStringFromGLKVector4 ¶
NSStringFromGLKVector4 calls the GLKit framework function NSStringFromGLKVector4.
Types ¶
type BaseEffect ¶ added in v0.17.0
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
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 ¶
func (e CGLCPContextPriorityRequest) String() string
String returns the CGLCPContextPriorityRequest 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
func (e DispatchAutoreleaseFrequency) String() string
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
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
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
func (ept *EffectPropertyTexture) WithTarget(target TextureTarget) *EffectPropertyTexture
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 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 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 )
type GLKEffectPropertyPrv ¶
type GLKEffectPropertyPrv struct{}
type GLKEffectPropertyPrvPtr ¶ added in v0.18.0
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
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 ¶
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 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
Mesh is an idiomatic wrapper over the Objective-C class GLKMesh.
func MeshFromID ¶ added in v0.17.0
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
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
Description returns the object's -description text.
func (*Mesh) IsEqual ¶ added in v0.17.0
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Mesh) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Mesh) Name ¶ added in v0.17.0
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
String returns the object's -description text, so a wrapper prints usefully under fmt.
func (*Mesh) Submeshes ¶ added in v0.17.0
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
VertexCount returns number of verticies in the vertexBuffers
func (*Mesh) VertexDescriptor ¶ added in v0.17.0
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
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
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 )
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 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 )
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 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
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) 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
Submesh is an idiomatic wrapper over the Objective-C class GLKSubmesh.
func SubmeshFromID ¶ added in v0.17.0
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
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
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
IsEqual reports Objective-C equality (isEqual:) with another object.
func (*Submesh) IsKind ¶ added in v0.17.0
IsKind reports whether the object is an instance of the named class or a subclass.
func (*Submesh) Mesh ¶ added in v0.17.0
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
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
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.
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
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
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 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
func (e VirtualMemoryGuardExceptionCode) String() string
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.
Source Files
¶
- GLKBaseEffect_generated.go
- GLKEffectPropertyFog_generated.go
- GLKEffectPropertyLight_generated.go
- GLKEffectPropertyMaterial_generated.go
- GLKEffectPropertyTexture_generated.go
- GLKEffectPropertyTransform_generated.go
- GLKEffectProperty_generated.go
- GLKMeshBufferAllocator_generated.go
- GLKMeshBuffer_generated.go
- GLKMesh_generated.go
- GLKReflectionMapEffect_generated.go
- GLKSkyboxEffect_generated.go
- GLKSubmesh_generated.go
- GLKTextureInfo_generated.go
- GLKTextureLoader_generated.go
- doc.go
- glkit_cfunctions_generated.go
- glkit_classmethods_generated.go
- glkit_constants_generated.go
- glkit_enums_generated.go
- glkit_protocols_generated.go
- glkit_providers_generated.go
- glkit_runtime_generated.go
- glkit_structs_generated.go