Banuba SDK
libs
djinni
generated
objc
BNBTexture.h
Go to the documentation of this file.
1
// AUTOGENERATED FILE - DO NOT MODIFY!
2
// This file was generated by Djinni from scene.djinni
3
4
#import "
BNBTextureFilteringMode.h
"
5
#import <Foundation/Foundation.h>
6
@class
BNBImage
;
7
@class
BNBResource
;
8
9
10
/**Class, which repesent 2D texture interface. Subclass of image */
11
12
#ifndef DJINNI_EXPORT
13
#define DJINNI_EXPORT __attribute__((__visibility__("default")))
14
#endif
15
16
DJINNI_EXPORT
17
@interface
BNBTexture
: NSObject
18
19
- (void)loadResource:(nullable
BNBResource
*)res;
20
21
/**
22
*Load texture data from specified file descriptor.
23
*@param fd (i32): file descriptor, should be closed on the caller side.
24
*/
25
- (void)loadByFd:(int32_t)fd;
26
27
/**
28
*Load texture data from specified file name. For now only supported .png, .jpeg, .jpg, .ktx (2d) images.
29
*@param fileName (string): absolute path for image file
30
*/
31
- (void)load:(nonnull NSString *)fileName;
32
33
/**@return width (int) of loaded image */
34
- (int32_t)
getWidth
;
35
36
/**@return height (int) of loaded image */
37
- (int32_t)
getHeight
;
38
39
/**@return channels count of loaded image (R, RG, RGBA, i.e. 1, 2, or 4). */
40
- (int32_t)
getLayers
;
41
42
/**
43
*set mimpap generation flag. (affect only on ogl backend).
44
*@param enable (bool): mipmap generation enable flag.
45
*/
46
- (void)setMips:(BOOL)enable;
47
48
/**@return flag (bool) : mimpap generation flag */
49
- (BOOL)
hasMips
;
50
51
/**
52
*enable/disable texture tiling
53
*@param enable (bool): tiled wrapping flag
54
*/
55
- (void)setTiling:(BOOL)enable;
56
57
/**@return tiled texture wrapping flag (bool). */
58
- (BOOL)
getTiling
;
59
60
/**
61
*set texture filtering mode
62
*param mode (texture_filtering_mode)
63
*/
64
- (void)setFiltering:(BNBTextureFilteringMode)type;
65
66
/**@return filtering mode (texture_filtering_mode) */
67
- (BNBTextureFilteringMode)
getFilteringMode
;
68
69
/**@return upcast to base type */
70
- (nullable
BNBImage
*)
asImage
;
71
72
@end
-[BNBTexture getHeight]
int32_t getHeight()
-[BNBTexture asImage]
nullable BNBImage * asImage()
BNBImage
Definition:
BNBImage.h:24
-[BNBTexture getTiling]
BOOL getTiling()
BNBResource
Definition:
BNBResource.h:14
-[BNBTexture getFilteringMode]
BNBTextureFilteringMode getFilteringMode()
-[BNBTexture getWidth]
int32_t getWidth()
-[BNBTexture hasMips]
BOOL hasMips()
-[BNBTexture getLayers]
int32_t getLayers()
BNBTextureFilteringMode.h
BNBTexture
Definition:
BNBTexture.h:17
DJINNI_EXPORT
#define DJINNI_EXPORT
Class, which repesent 2D texture interface.
Definition:
BNBTexture.h:13
Generated by
1.8.17