在swift中缺少GLKMatrix4(和其他类似的)?

Dan*_*ton 14 opengl-es swift ios8

我在使用swift创建一个4X4 openGL矩阵时遇到了问题.我导入了以下在Obj-C中使用的以下内容:

import UIKit
import GLKit
import OpenGLES
Run Code Online (Sandbox Code Playgroud)

GLKMatrix4不可用,但我可以访问其他GL数学资源,GLKMathDegreesToRadians()例如.

还有其他人遇到过这个问题吗?

Mar*_*sel 0

这在 Playground 中按预期工作,并生成 4x4 矩阵版本 6.3.2 (6D2105)

import GLKit

let someMatrix: GLKMatrix4 = GLKMatrix4Make(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
Run Code Online (Sandbox Code Playgroud)