Banuba SDK
Instance Methods | List of all members
BNBTexture Class Reference

#import <BNBTexture.h>

Inheritance diagram for BNBTexture:

Instance Methods

(void) - load:
 Load texture from specified file. More...
 
(void) - loadKtx:
 
(int32_t) - getWidth
 Get width of loaded image. More...
 
(int32_t) - getHeight
 Get height of loaded image. More...
 
(int32_t) - getLevels
 Get number of images in mipmap chain. More...
 
(int32_t) - getLayers
 
(void) - setMips:
 Enable/disable mipmaps generation (on by default) More...
 
(BOOL) - hasMips
 Get current mipmaps generation setting. More...
 
(void) - setTiling:
 Enable/disable texture tiling. More...
 
(BOOL) - getTiling
 Get current tiling setting. More...
 
(void) - setFiltering:
 Set texture filtering mode (linear by default) More...
 
(BNBTextureFilteringMode) - getFilteringMode
 Get current filtering mode. More...
 
(void) - setVflip:
 Set vertical flip on load. More...
 
(BOOL) - isVflipped
 Get vertical flip setting. More...
 

Detailed Description

Definition at line 8 of file BNBTexture.h.

Method Documentation

◆ getFilteringMode

- (BNBTextureFilteringMode) getFilteringMode

Get current filtering mode.

◆ getHeight

- (int32_t) getHeight

Get height of loaded image.

◆ getLayers

- (int32_t) getLayers

◆ getLevels

- (int32_t) getLevels

Get number of images in mipmap chain.

◆ getTiling

- (BOOL) getTiling

Get current tiling setting.

◆ getWidth

- (int32_t) getWidth

Get width of loaded image.

◆ hasMips

- (BOOL) hasMips

Get current mipmaps generation setting.

◆ isVflipped

- (BOOL) isVflipped

Get vertical flip setting.

◆ load:

- (void) load: (nonnull NSString *)  fileName

Load texture from specified file.

◆ loadKtx:

- (void) loadKtx: (nonnull NSString *)  fileName

◆ setFiltering:

- (void) setFiltering: (BNBTextureFilteringMode)  type

Set texture filtering mode (linear by default)

◆ setMips:

- (void) setMips: (BOOL)  enable

Enable/disable mipmaps generation (on by default)

◆ setTiling:

- (void) setTiling: (BOOL)  enable

Enable/disable texture tiling.

◆ setVflip:

- (void) setVflip: (BOOL)  enable

Set vertical flip on load.


The documentation for this class was generated from the following file: