NChartRealityKitModelDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NChartRealityKit.h |
Overview
The NChartRealityKitModelDelegate protocol provides methods to create 3D objects compatible with the RealityKit framework based on the models rendered by NChart3D.
– modelReadyWithPositions:normals:texCoords:primitives:vertexCount:indexCount:texture:color:shading:
required method
Method that is triggered whenever a new model is being created by NChart3D.
- (void)modelReadyWithPositions:(const simd_float3 *)positions normals:(const simd_float3 *)normals texCoords:(const simd_float2 *)texCoords primitives:(const unsigned int *)primitives vertexCount:(int)vertexCount indexCount:(int)indexCount texture:(CGImageRef)texture color:(UIColor *)color shading:(BOOL)shading
Parameters
positions |
|
---|---|
normals |
|
texCoords |
|
primitives |
|
vertexCount |
|
indexCount |
|
texture |
|
color |
|
shading |
|
Declared In
NChartRealityKit.h