pub struct SCNMaterial { /* private fields */ }SCNMaterial only.Expand description
A SCNMaterial determines how a geometry is rendered. It encapsulates the colors and textures that define the appearance of 3d geometries.
See also Apple’s documentation
Implementations§
Source§impl SCNMaterial
SCNModelIO.
impl SCNMaterial
SCNModelIO.
pub unsafe fn materialWithMDLMaterial( mdl_material: &MDLMaterial, ) -> Retained<Self>
ModelIO and crate feature objc2-model-io and non-watchOS only.Source§impl SCNMaterial
impl SCNMaterial
Sourcepub unsafe fn diffuse(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn diffuse(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.Specifies the receiver’s diffuse property.
The diffuse property specifies the amount of light diffusely reflected from the surface. The diffuse light is reflected equally in all directions and is therefore independent of the point of view.
Sourcepub unsafe fn ambient(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn ambient(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.Specifies the receiver’s ambient property.
The ambient property specifies the amount of ambient light to reflect. This property has no visual impact on scenes that have no ambient light. Setting the ambient has no effect if locksAmbientWithDiffuse is set to YES.
Sourcepub unsafe fn specular(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn specular(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.Specifies the receiver’s specular property.
The specular property specifies the amount of light to reflect in a mirror-like manner. The specular intensity increases when the point of view lines up with the direction of the reflected light.
Sourcepub unsafe fn emission(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn emission(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The emission property specifies the amount of light the material emits. This emission does not light up other surfaces in the scene.
Sourcepub unsafe fn transparent(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn transparent(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The transparent property specifies the transparent areas of the material.
Sourcepub unsafe fn reflective(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn reflective(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The reflective property specifies the reflectivity of the surface. The surface will not actually reflect other objects in the scene. This property may be used as a sphere mapping to reflect a precomputed environment.
Sourcepub unsafe fn multiply(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn multiply(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The multiply property specifies a color or an image used to multiply the output fragments with. The computed fragments are multiplied with the multiply value to produce the final fragments. This property may be used for shadow maps, to fade out or tint 3d objects.
Sourcepub unsafe fn normal(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn normal(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The normal property specifies the surface orientation.
When an image is set on the normal property the material is automatically lit per pixel. Setting a color has no effect.
Sourcepub unsafe fn displacement(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn displacement(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The displacement property specifies how vertex are translated in tangent space.
Pass a grayscale image for a simple ‘elevation’ or rgb image for a vector displacement.
Sourcepub unsafe fn ambientOcclusion(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn ambientOcclusion(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The ambientOcclusion property specifies the ambient occlusion of the surface. The ambient occlusion is multiplied with the ambient light, then the result is added to the lighting contribution. This property has no visual impact on scenes that have no ambient light. When an ambient occlusion map is set, the ambient property is ignored.
Sourcepub unsafe fn selfIllumination(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn selfIllumination(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The selfIllumination property specifies a texture or a color that is added to the lighting contribution of the surface. When a selfIllumination is set, the emission property is ignored.
Sourcepub unsafe fn metalness(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn metalness(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The metalness property specifies how metallic the material’s surface appears. Lower values (darker colors) cause the material to appear more like a dielectric surface. Higher values (brighter colors) cause the surface to appear more metallic. This property is only used when ‘lightingModelName’ is ‘SCNLightingModelPhysicallyBased’.
Sourcepub unsafe fn roughness(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn roughness(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The roughness property specifies the apparent smoothness of the surface. Lower values (darker colors) cause the material to appear shiny, with well-defined specular highlights. Higher values (brighter colors) cause specular highlights to spread out and the diffuse property of the material to become more retroreflective. This property is only used when ‘lightingModelName’ is ‘SCNLightingModelPhysicallyBased’.
Sourcepub unsafe fn clearCoat(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn clearCoat(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The clearCoat property specifies color and intensity of the coat layer.
Sourcepub unsafe fn clearCoatRoughness(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn clearCoatRoughness(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The clearCoat property specifies color and intensity of the coat roughness.
Sourcepub unsafe fn clearCoatNormal(&self) -> Retained<SCNMaterialProperty>
Available on crate feature SCNMaterialProperty only.
pub unsafe fn clearCoatNormal(&self) -> Retained<SCNMaterialProperty>
SCNMaterialProperty only.The clearCoatNormal property specifies color and intensity of the optional coat normal map.
Sourcepub unsafe fn shininess(&self) -> CGFloat
Available on crate feature objc2-core-foundation only.
pub unsafe fn shininess(&self) -> CGFloat
objc2-core-foundation only.Specifies the receiver’s shininess value. Defaults to 1.0. Animatable.
Sourcepub unsafe fn setShininess(&self, shininess: CGFloat)
Available on crate feature objc2-core-foundation only.
pub unsafe fn setShininess(&self, shininess: CGFloat)
objc2-core-foundation only.Setter for shininess.
Sourcepub unsafe fn transparency(&self) -> CGFloat
Available on crate feature objc2-core-foundation only.
pub unsafe fn transparency(&self) -> CGFloat
objc2-core-foundation only.Specifies the receiver’s transparency value. Defaults to 1.0. Animatable.
The color of the transparent property is multiplied by this property. The result is then used to produce the final transparency according to the rule defined by the transparencyMode property.
Sourcepub unsafe fn setTransparency(&self, transparency: CGFloat)
Available on crate feature objc2-core-foundation only.
pub unsafe fn setTransparency(&self, transparency: CGFloat)
objc2-core-foundation only.Setter for transparency.
Sourcepub unsafe fn lightingModelName(&self) -> Retained<SCNLightingModel>
pub unsafe fn lightingModelName(&self) -> Retained<SCNLightingModel>
Determines the receiver’s lighting model. See above for the list of lighting models. Defaults to SCNLightingModelBlinn.
Sourcepub unsafe fn setLightingModelName(
&self,
lighting_model_name: &SCNLightingModel,
)
pub unsafe fn setLightingModelName( &self, lighting_model_name: &SCNLightingModel, )
Setter for lightingModelName.
This is copied when set.
Sourcepub unsafe fn isLitPerPixel(&self) -> bool
pub unsafe fn isLitPerPixel(&self) -> bool
Determines whether the receiver is lit per pixel. Defaults to YES. Animatable.
Sourcepub unsafe fn setLitPerPixel(&self, lit_per_pixel: bool)
pub unsafe fn setLitPerPixel(&self, lit_per_pixel: bool)
Setter for isLitPerPixel.
Sourcepub unsafe fn isDoubleSided(&self) -> bool
pub unsafe fn isDoubleSided(&self) -> bool
Determines whether the receiver is double sided. Defaults to NO. Animatable.
Sourcepub unsafe fn setDoubleSided(&self, double_sided: bool)
pub unsafe fn setDoubleSided(&self, double_sided: bool)
Setter for isDoubleSided.
Sourcepub unsafe fn fillMode(&self) -> SCNFillMode
pub unsafe fn fillMode(&self) -> SCNFillMode
Determines of to how to rasterize the receiver’s primitives. Defaults to SCNFillModeFill.
Sourcepub unsafe fn setFillMode(&self, fill_mode: SCNFillMode)
pub unsafe fn setFillMode(&self, fill_mode: SCNFillMode)
Setter for fillMode.
Sourcepub unsafe fn cullMode(&self) -> SCNCullMode
pub unsafe fn cullMode(&self) -> SCNCullMode
Determines the culling mode of the receiver. Defaults to SCNCullModeBack. Animatable.
Sourcepub unsafe fn setCullMode(&self, cull_mode: SCNCullMode)
pub unsafe fn setCullMode(&self, cull_mode: SCNCullMode)
Setter for cullMode.
Sourcepub unsafe fn transparencyMode(&self) -> SCNTransparencyMode
pub unsafe fn transparencyMode(&self) -> SCNTransparencyMode
Determines the transparency mode of the receiver. See above for the transparency modes. Defaults to SCNTransparencyModeDefault.
Sourcepub unsafe fn setTransparencyMode(&self, transparency_mode: SCNTransparencyMode)
pub unsafe fn setTransparencyMode(&self, transparency_mode: SCNTransparencyMode)
Setter for transparencyMode.
Sourcepub unsafe fn locksAmbientWithDiffuse(&self) -> bool
pub unsafe fn locksAmbientWithDiffuse(&self) -> bool
Makes the ambient property automatically match the diffuse property. Defaults to NO on 10.9 and before, defaults to YES otherwise. Animatable.
Sourcepub unsafe fn setLocksAmbientWithDiffuse(
&self,
locks_ambient_with_diffuse: bool,
)
pub unsafe fn setLocksAmbientWithDiffuse( &self, locks_ambient_with_diffuse: bool, )
Setter for locksAmbientWithDiffuse.
Sourcepub unsafe fn writesToDepthBuffer(&self) -> bool
pub unsafe fn writesToDepthBuffer(&self) -> bool
Determines whether the receiver writes to the depth buffer when rendered. Defaults to YES.
Sourcepub unsafe fn setWritesToDepthBuffer(&self, writes_to_depth_buffer: bool)
pub unsafe fn setWritesToDepthBuffer(&self, writes_to_depth_buffer: bool)
Setter for writesToDepthBuffer.
Sourcepub unsafe fn colorBufferWriteMask(&self) -> SCNColorMask
Available on crate feature SceneKitTypes only.
pub unsafe fn colorBufferWriteMask(&self) -> SCNColorMask
SceneKitTypes only.Determines whether the receiver writes to the color buffer when rendered. Defaults to SCNColorMaskAll.
Sourcepub unsafe fn setColorBufferWriteMask(
&self,
color_buffer_write_mask: SCNColorMask,
)
Available on crate feature SceneKitTypes only.
pub unsafe fn setColorBufferWriteMask( &self, color_buffer_write_mask: SCNColorMask, )
SceneKitTypes only.Setter for colorBufferWriteMask.
Sourcepub unsafe fn readsFromDepthBuffer(&self) -> bool
pub unsafe fn readsFromDepthBuffer(&self) -> bool
Determines whether the receiver reads from the depth buffer when rendered. Defaults to YES.
Sourcepub unsafe fn setReadsFromDepthBuffer(&self, reads_from_depth_buffer: bool)
pub unsafe fn setReadsFromDepthBuffer(&self, reads_from_depth_buffer: bool)
Setter for readsFromDepthBuffer.
Sourcepub unsafe fn fresnelExponent(&self) -> CGFloat
Available on crate feature objc2-core-foundation only.
pub unsafe fn fresnelExponent(&self) -> CGFloat
objc2-core-foundation only.Specifies the receiver’s fresnel exponent value. Defaults to 0.0. Animatable.
The effect of the reflectivity property is modulated by this property. The fresnelExponent changes the exponent of the reflectance. The bigger the exponent, the more concentrated the reflection is around the edges.
Sourcepub unsafe fn setFresnelExponent(&self, fresnel_exponent: CGFloat)
Available on crate feature objc2-core-foundation only.
pub unsafe fn setFresnelExponent(&self, fresnel_exponent: CGFloat)
objc2-core-foundation only.Setter for fresnelExponent.
Sourcepub unsafe fn blendMode(&self) -> SCNBlendMode
pub unsafe fn blendMode(&self) -> SCNBlendMode
Specifies the receiver’s blend mode. Defaults to SCNBlendModeAlpha.
Sourcepub unsafe fn setBlendMode(&self, blend_mode: SCNBlendMode)
pub unsafe fn setBlendMode(&self, blend_mode: SCNBlendMode)
Setter for blendMode.
Methods from Deref<Target = NSObject>§
Sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
Sourcepub fn class(&self) -> &'static AnyClass
pub fn class(&self) -> &'static AnyClass
Dynamically find the class of this object.
§Panics
May panic if the object is invalid (which may be the case for objects
returned from unavailable init/new methods).
§Example
Check that an instance of NSObject has the precise class NSObject.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());Sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load instead.Use Ivar::load instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T.
See Ivar::load_ptr for details surrounding this.
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
Attempt to downcast the object to a class of type T.
This is the reference-variant. Use Retained::downcast if you want
to convert a retained object to another type.
§Mutable classes
Some classes have immutable and mutable variants, such as NSString
and NSMutableString.
When some Objective-C API signature says it gives you an immutable class, it generally expects you to not mutate that, even though it may technically be mutable “under the hood”.
So using this method to convert a NSString to a NSMutableString,
while not unsound, is generally frowned upon unless you created the
string yourself, or the API explicitly documents the string to be
mutable.
See Apple’s documentation on mutability and on
isKindOfClass: for more details.
§Generic classes
Objective-C generics are called “lightweight generics”, and that’s because they aren’t exposed in the runtime. This makes it impossible to safely downcast to generic collections, so this is disallowed by this method.
You can, however, safely downcast to generic collections where all the
type-parameters are AnyObject.
§Panics
This works internally by calling isKindOfClass:. That means that the
object must have the instance method of that name, and an exception
will be thrown (if CoreFoundation is linked) or the process will abort
if that is not the case. In the vast majority of cases, you don’t need
to worry about this, since both root objects NSObject and
NSProxy implement this method.
§Examples
Cast an NSString back and forth from NSObject.
use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSString};
let obj: Retained<NSObject> = NSString::new().into_super();
let string = obj.downcast_ref::<NSString>().unwrap();
// Or with `downcast`, if we do not need the object afterwards
let string = obj.downcast::<NSString>().unwrap();Try (and fail) to cast an NSObject to an NSString.
use objc2_foundation::{NSObject, NSString};
let obj = NSObject::new();
assert!(obj.downcast_ref::<NSString>().is_none());Try to cast to an array of strings.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
// This is invalid and doesn't type check.
let arr = arr.downcast_ref::<NSArray<NSString>>();This fails to compile, since it would require enumerating over the array to ensure that each element is of the desired type, which is a performance pitfall.
Downcast when processing each element instead.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
for elem in arr {
if let Some(data) = elem.downcast_ref::<NSString>() {
// handle `data`
}
}Trait Implementations§
Source§impl AsRef<AnyObject> for SCNMaterial
impl AsRef<AnyObject> for SCNMaterial
Source§impl AsRef<NSObject> for SCNMaterial
impl AsRef<NSObject> for SCNMaterial
Source§impl AsRef<SCNMaterial> for SCNMaterial
impl AsRef<SCNMaterial> for SCNMaterial
Source§impl Borrow<AnyObject> for SCNMaterial
impl Borrow<AnyObject> for SCNMaterial
Source§impl Borrow<NSObject> for SCNMaterial
impl Borrow<NSObject> for SCNMaterial
Source§impl ClassType for SCNMaterial
impl ClassType for SCNMaterial
Source§const NAME: &'static str = "SCNMaterial"
const NAME: &'static str = "SCNMaterial"
Source§type ThreadKind = <<SCNMaterial as ClassType>::Super as ClassType>::ThreadKind
type ThreadKind = <<SCNMaterial as ClassType>::Super as ClassType>::ThreadKind
Source§impl CopyingHelper for SCNMaterial
impl CopyingHelper for SCNMaterial
Source§type Result = SCNMaterial
type Result = SCNMaterial
Self if the type has no
immutable counterpart. Read moreSource§impl Debug for SCNMaterial
impl Debug for SCNMaterial
Source§impl Deref for SCNMaterial
impl Deref for SCNMaterial
Source§impl Hash for SCNMaterial
impl Hash for SCNMaterial
Source§impl Message for SCNMaterial
impl Message for SCNMaterial
Source§impl NSCoding for SCNMaterial
impl NSCoding for SCNMaterial
Source§impl NSCopying for SCNMaterial
impl NSCopying for SCNMaterial
Source§impl NSObjectProtocol for SCNMaterial
impl NSObjectProtocol for SCNMaterial
Source§fn isEqual(&self, other: Option<&AnyObject>) -> bool
fn isEqual(&self, other: Option<&AnyObject>) -> bool
Source§fn hash(&self) -> usize
fn hash(&self) -> usize
Source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
isKindOfClass directly, or cast your objects with AnyObject::downcast_refSource§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
Source§impl NSSecureCoding for SCNMaterial
impl NSSecureCoding for SCNMaterial
Source§impl PartialEq for SCNMaterial
impl PartialEq for SCNMaterial
Source§impl RefEncode for SCNMaterial
impl RefEncode for SCNMaterial
Source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
Source§impl SCNAnimatable for SCNMaterial
impl SCNAnimatable for SCNMaterial
Source§unsafe fn addAnimation_forKey(
&self,
animation: &ProtocolObject<dyn SCNAnimationProtocol>,
key: Option<&NSString>,
)
unsafe fn addAnimation_forKey( &self, animation: &ProtocolObject<dyn SCNAnimationProtocol>, key: Option<&NSString>, )
SCNAnimation only.Source§unsafe fn addAnimationPlayer_forKey(
&self,
player: &SCNAnimationPlayer,
key: Option<&NSString>,
)
unsafe fn addAnimationPlayer_forKey( &self, player: &SCNAnimationPlayer, key: Option<&NSString>, )
SCNAnimation only.Source§unsafe fn removeAllAnimations(&self)
unsafe fn removeAllAnimations(&self)
SCNAnimation only.Source§unsafe fn removeAllAnimationsWithBlendOutDuration(&self, duration: CGFloat)
unsafe fn removeAllAnimationsWithBlendOutDuration(&self, duration: CGFloat)
SCNAnimation and objc2-core-foundation only.Source§unsafe fn removeAnimationForKey(&self, key: &NSString)
unsafe fn removeAnimationForKey(&self, key: &NSString)
SCNAnimation only.Source§unsafe fn removeAnimationForKey_blendOutDuration(
&self,
key: &NSString,
duration: CGFloat,
)
unsafe fn removeAnimationForKey_blendOutDuration( &self, key: &NSString, duration: CGFloat, )
SCNAnimation and objc2-core-foundation only.Source§unsafe fn animationKeys(&self) -> Retained<NSArray<NSString>>
unsafe fn animationKeys(&self) -> Retained<NSArray<NSString>>
SCNAnimation only.Source§unsafe fn animationPlayerForKey(
&self,
key: &NSString,
) -> Option<Retained<SCNAnimationPlayer>>
unsafe fn animationPlayerForKey( &self, key: &NSString, ) -> Option<Retained<SCNAnimationPlayer>>
SCNAnimation only.Source§unsafe fn removeAnimationForKey_fadeOutDuration(
&self,
key: &NSString,
duration: CGFloat,
)
unsafe fn removeAnimationForKey_fadeOutDuration( &self, key: &NSString, duration: CGFloat, )
SCNAnimation and objc2-core-foundation only.Source§unsafe fn animationForKey(
&self,
key: &NSString,
) -> Option<Retained<CAAnimation>>
unsafe fn animationForKey( &self, key: &NSString, ) -> Option<Retained<CAAnimation>>
SCNAnimation and crate feature objc2-quartz-core and non-watchOS only.Source§unsafe fn pauseAnimationForKey(&self, key: &NSString)
unsafe fn pauseAnimationForKey(&self, key: &NSString)
SCNAnimation only.Source§unsafe fn resumeAnimationForKey(&self, key: &NSString)
unsafe fn resumeAnimationForKey(&self, key: &NSString)
SCNAnimation only.Source§impl SCNShadable for SCNMaterial
impl SCNShadable for SCNMaterial
Source§unsafe fn program(&self) -> Option<Retained<SCNProgram>>
unsafe fn program(&self) -> Option<Retained<SCNProgram>>
SCNShadable only.Source§unsafe fn setProgram(&self, program: Option<&SCNProgram>)
unsafe fn setProgram(&self, program: Option<&SCNProgram>)
SCNShadable only.program.Source§unsafe fn handleBindingOfSymbol_usingBlock(
&self,
symbol: &NSString,
block: SCNBindingBlock,
)
unsafe fn handleBindingOfSymbol_usingBlock( &self, symbol: &NSString, block: SCNBindingBlock, )
SCNShadable and SCNNode and SCNRenderer and block2 only.Source§unsafe fn handleUnbindingOfSymbol_usingBlock(
&self,
symbol: &NSString,
block: SCNBindingBlock,
)
unsafe fn handleUnbindingOfSymbol_usingBlock( &self, symbol: &NSString, block: SCNBindingBlock, )
SCNShadable and SCNNode and SCNRenderer and block2 only.Source§unsafe fn shaderModifiers(
&self,
) -> Option<Retained<NSDictionary<SCNShaderModifierEntryPoint, NSString>>>
unsafe fn shaderModifiers( &self, ) -> Option<Retained<NSDictionary<SCNShaderModifierEntryPoint, NSString>>>
SCNShadable only.Source§unsafe fn setShaderModifiers(
&self,
shader_modifiers: Option<&NSDictionary<SCNShaderModifierEntryPoint, NSString>>,
)
unsafe fn setShaderModifiers( &self, shader_modifiers: Option<&NSDictionary<SCNShaderModifierEntryPoint, NSString>>, )
SCNShadable only.shaderModifiers. Read moreSource§unsafe fn minimumLanguageVersion(&self) -> Option<Retained<NSNumber>>
unsafe fn minimumLanguageVersion(&self) -> Option<Retained<NSNumber>>
SCNShadable only.Source§unsafe fn setMinimumLanguageVersion(
&self,
minimum_language_version: Option<&NSNumber>,
)
unsafe fn setMinimumLanguageVersion( &self, minimum_language_version: Option<&NSNumber>, )
SCNShadable only.minimumLanguageVersion.