Inherits from NSObject
Declared in SPPVRData.h

Overview

A class that can be used to parse PVR texture data.

Tasks

Initialization

Properties

  •   width

    The width of the PVR texture in pixels.

    property
  •   height

    The height of the PVR texture in pixels.

    property
  •   numMipmaps

    The number of mipmaps that’s included in the PVR texture.

    property
  •   format

    The texture format of the PVR texture.

    property
  •   imageData

    A pointer to the raw image data of the PVR data.

    property

Properties

format

The texture format of the PVR texture.

@property (nonatomic, readonly) SPTextureFormat format

Discussion

The texture format of the PVR texture.

Declared In

SPPVRData.h

height

The height of the PVR texture in pixels.

@property (nonatomic, readonly) int height

Discussion

The height of the PVR texture in pixels.

Declared In

SPPVRData.h

imageData

A pointer to the raw image data of the PVR data.

@property (nonatomic, readonly) void *imageData

Discussion

A pointer to the raw image data of the PVR data.

Declared In

SPPVRData.h

numMipmaps

The number of mipmaps that’s included in the PVR texture.

@property (nonatomic, readonly) int numMipmaps

Discussion

The number of mipmaps that’s included in the PVR texture.

Declared In

SPPVRData.h

width

The width of the PVR texture in pixels.

@property (nonatomic, readonly) int width

Discussion

The width of the PVR texture in pixels.

Declared In

SPPVRData.h

Instance Methods

initWithData:

Initializes the object with uncompressed PVR data.

- (instancetype)initWithData:(NSData *)data

Discussion

Initializes the object with uncompressed PVR data.

Declared In

SPPVRData.h

initWithData:compressed:

Initialzes the object with PVR data that’s optional GZIP compressed.

- (instancetype)initWithData:(NSData *)data compressed:(BOOL)isCompressed

Discussion

Initialzes the object with PVR data that’s optional GZIP compressed.

Declared In

SPPVRData.h