BNBState

Objective-C

@interface BNBState : NSObject
- (nonnull instancetype)initWithBlending:(BNBBlendingMode)blending
                                  zWrite:(BOOL)zWrite
                                   zTest:(BOOL)zTest
                              colorWrite:(BOOL)colorWrite
                               backFaces:(BOOL)backFaces
                                coverage:(BOOL)coverage;
+ (nonnull instancetype)stateWithBlending:(BNBBlendingMode)blending
                                   zWrite:(BOOL)zWrite
                                    zTest:(BOOL)zTest
                               colorWrite:(BOOL)colorWrite
                                backFaces:(BOOL)backFaces
                                 coverage:(BOOL)coverage;

@property (nonatomic, readonly) BNBBlendingMode blending;

@property (nonatomic, readonly) BOOL zWrite;

@property (nonatomic, readonly) BOOL zTest;

@property (nonatomic, readonly) BOOL colorWrite;

@property (nonatomic, readonly) BOOL backFaces;

@property (nonatomic, readonly) BOOL coverage;

@end

Swift

class BNBState : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBlending:(BNBBlendingMode)blending
                                      zWrite:(BOOL)zWrite
                                       zTest:(BOOL)zTest
                                  colorWrite:(BOOL)colorWrite
                                   backFaces:(BOOL)backFaces
                                    coverage:(BOOL)coverage;

    Swift

    init(blending: BNBBlendingMode, zWrite: Bool, zTest: Bool, colorWrite: Bool, backFaces: Bool, coverage: Bool)
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)stateWithBlending:(BNBBlendingMode)blending
                                       zWrite:(BOOL)zWrite
                                        zTest:(BOOL)zTest
                                   colorWrite:(BOOL)colorWrite
                                    backFaces:(BOOL)backFaces
                                     coverage:(BOOL)coverage;
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BNBBlendingMode blending

    Swift

    var blending: BNBBlendingMode { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL zWrite

    Swift

    var zWrite: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL zTest

    Swift

    var zTest: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL colorWrite

    Swift

    var colorWrite: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL backFaces

    Swift

    var backFaces: Bool { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL coverage

    Swift

    var coverage: Bool { get }