Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
iPhone のカメラ ビューの前に 3D オブジェクトを配置しようとしています。私が使用しているカメラビューのためにAVFoundation。GLKViewを作成して、カメラビューを表示するビューにサブビューとして追加しようとしました。今私が直面している問題は、update関数を呼び出す方法です。drawInRect毎回オブジェクトを再描画するために手動で呼び出す必要がありますか?. ありがとう
AVFoundation
GLKView
update
drawInRect
自分が何をしているのか本当にわからない限り、自分で drawInRect を呼び出さないでください。
タイマーを設定し (CADisplayLink タイプにすることができます)、glkview 表示メソッドを呼び出します。
[self.drawingSpace display];