Apple Developer Connection
Advanced Search
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page >

QCRendererオブジェクトを作成する

QCRendererオブジェクトには、OpenGLコンテキスト、OpenGLピクセル形式、およびファイルパス名が必要です。何らかの理由でレンダラを作成できない場合、アプリケーションを終了する必要があります。次のコードを使用してレンダラの作成と作成確認を行います。

_renderer = [[QCRenderer alloc]
            initWithOpenGLContext:_openGLContext
            pixelFormat:format
            file:_filePath];
if(_renderer == nil)
    {
        NSLog(@"Cannot create QCRenderer");
        [NSApp terminate:nil];
    }


< Previous PageNext Page >


Last updated: 2006-12-05




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice