Banuba SDK
BNBTexture.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from scene.djinni
3 
5 #import <Foundation/Foundation.h>
6 
7 
8 @interface BNBTexture : NSObject
9 
10 /** Load texture from specified file */
11 - (void)load:(nonnull NSString *)fileName;
12 
13 - (void)loadKtx:(nonnull NSString *)fileName;
14 
15 /** Get width of loaded image */
16 - (int32_t)getWidth;
17 
18 /** Get height of loaded image */
19 - (int32_t)getHeight;
20 
21 /** Get number of images in mipmap chain */
22 - (int32_t)getLevels;
23 
24 - (int32_t)getLayers;
25 
26 /** Enable/disable mipmaps generation (on by default) */
27 - (void)setMips:(BOOL)enable;
28 
29 /** Get current mipmaps generation setting */
30 - (BOOL)hasMips;
31 
32 /** Enable/disable texture tiling */
33 - (void)setTiling:(BOOL)enable;
34 
35 /** Get current tiling setting */
36 - (BOOL)getTiling;
37 
38 /** Set texture filtering mode (linear by default) */
39 - (void)setFiltering:(BNBTextureFilteringMode)type;
40 
41 /** Get current filtering mode */
42 - (BNBTextureFilteringMode)getFilteringMode;
43 
44 /** Set vertical flip on load */
45 - (void)setVflip:(BOOL)enable;
46 
47 /** Get vertical flip setting */
48 - (BOOL)isVflipped;
49 
50 @end
-[BNBTexture getHeight]
int32_t getHeight()
Get height of loaded image.
-[BNBTexture getLevels]
int32_t getLevels()
Get number of images in mipmap chain.
-[BNBTexture getTiling]
BOOL getTiling()
Get current tiling setting.
-[BNBTexture getFilteringMode]
BNBTextureFilteringMode getFilteringMode()
Get current filtering mode.
-[BNBTexture getWidth]
int32_t getWidth()
Get width of loaded image.
-[BNBTexture isVflipped]
BOOL isVflipped()
Get vertical flip setting.
-[BNBTexture hasMips]
BOOL hasMips()
Get current mipmaps generation setting.
-[BNBTexture getLayers]
int32_t getLayers()
BNBTextureFilteringMode.h
BNBTexture
Definition: BNBTexture.h:9