GLKEffectPropertyTransform Doesn’t Expose Properties to Swift

Originator:SlaunchaMan
Number:rdar://17969170 Date Originated:09-Aug-2014
Status:Duplicate/17969200 Resolved:
Product:iOS SDK Product Version:Xcode 6 Beta 5
Classification:Serious Bug Reproducible:Always
 
Summary:
When trying to use GLKit on Swift, I can’t set up my projection matrix because GLKEffectPropertyTransform doesn’t expose its symbols to Swift. Going to the documentation at https://developer.apple.com/library/prerelease/ios/documentation/GLkit/Reference/GLKEffectPropertyTransform_ClassRef/index.html, I see that the symbols are there for Objective-C, but not for Swift.

Steps to Reproduce:
1. Create a GLKViewController subclass in Swift and start implementing your OpenGL setup method.
2. Create a GLKBaseEffect.
3. Attempt to set the projection matrix of its “transform” property.

Expected Results:
The GLKEffectPropertyTransform class exposes modelViewMatrix, normalMatrix, and projectionMatrix.

Actual Results:
Those properties are not available.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!