1

根据网上的很多文章,我正在使用 GLKTextureLoader 加载纹理图集 [XCode 5.1.1,IOS 6.1],因此:

    NSDictionary * options = [NSDictionary dictionaryWithObjectsAndKeys:
                              [NSNumber numberWithBool:YES],
                              GLKTextureLoaderOriginBottomLeft,
                              nil];

    NSError * error;
    NSString *path = [[NSBundle mainBundle] pathForResource:fileName ofType:nil];

    self.textureInfo = [GLKTextureLoader textureWithContentsOfFile:path options:options error:&error];

    if (self.textureInfo == nil) {
        NSLog(@"Error loading file: %@ %@",fileName, [error localizedDescription]);
        return nil;
    }

我已经搜索和搜索,但无法找到如何获取指向实际像素数据的指针。我想使用 glReadPixels 覆盖屏幕外帧缓冲区中的一些像素数据。

最大限度

4

0 回答 0