BNBCubemap

Objective-C

@interface BNBCubemap : NSObject

- (void)loadResource:(nullable BNBResource *)res;

/**
 *Load cubemap texture data from specified file name. For now only supported .ktx (cuemap) images.
 *@param file_name (string): absolute path for image file.
 */
- (void)load:(nonnull NSString *)filename;

/**@return upcast to base type */
- (nullable BNBImage *)asImage;

@end

Swift

class BNBCubemap : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (void)loadResource:(nullable BNBResource *)res;

    Swift

    func load(_ res: BNBResource?)
  • Load cubemap texture data from specified file name. For now only supported .ktx (cuemap) images.

    Declaration

    Objective-C

    - (void)load:(nonnull NSString *)filename;

    Swift

    func load(_ filename: String)

    Parameters

    file_name

    (string): absolute path for image file.

  • Declaration

    Objective-C

    - (nullable BNBImage *)asImage;

    Swift

    func asImage() -> BNBImage?

    Return Value

    upcast to base type