C# Class vke.glTF.glTFLoader

Loading context with I as the vertex index type (uint16,uint32)
Inheritance: IDisposable
Show file Open project: jpbruyere/vke.net Class Usage Examples

Public Properties

Property Type Description
baseDirectory string
cmdPool CommandPool
gltf glTFLoader.Schema.Gltf
loadedBuffers Memory[]
transferQ Queue

Private Properties

Property Type Description
loadDataUri byte[]
loadDataUri byte[]

Public Methods

Method Description
BuildTexArray ( Image &texArray, uint firstImg ) : void

build texture array

Dispose ( ) : void
GetVertexCount ( ulong &vertexCount, ulong &indexCount, VkIndexType &largestIndexType ) : void
LoadImages ( ) : Image[]

Load model images as separate texture in a c# array

LoadMaterial ( ) : Material[]
LoadMeshes ( VkIndexType indexType, Buffer vbo, ulong vboOffset, Buffer ibo, ulong iboOffset ) : Mesh[]
LoadScenes ( int &defaultScene ) : Scene[]
ensureBufferIsLoaded ( int bufferIdx ) : void
glTFLoader ( string path, Queue _transferQ, CommandPool _cmdPool ) : System
loadNode ( Node parentNode, glTFLoader.Schema.Node gltfNode ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
loadDataUri ( glTFLoader.Schema.Buffer buff ) : byte[]
loadDataUri ( glTFLoader.Schema.Image img ) : byte[]

Method Details

BuildTexArray() public method

build texture array
public BuildTexArray ( Image &texArray, uint firstImg ) : void
texArray Image
firstImg uint
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetVertexCount() public method

public GetVertexCount ( ulong &vertexCount, ulong &indexCount, VkIndexType &largestIndexType ) : void
vertexCount ulong
indexCount ulong
largestIndexType VkIndexType
return void

LoadImages() public method

Load model images as separate texture in a c# array
public LoadImages ( ) : Image[]
return Image[]

LoadMaterial() public method

public LoadMaterial ( ) : Material[]
return Material[]

LoadMeshes() public method

public LoadMeshes ( VkIndexType indexType, Buffer vbo, ulong vboOffset, Buffer ibo, ulong iboOffset ) : Mesh[]
indexType VkIndexType
vbo Buffer
vboOffset ulong
ibo Buffer
iboOffset ulong
return Mesh[]

LoadScenes() public method

public LoadScenes ( int &defaultScene ) : Scene[]
defaultScene int
return Scene[]

ensureBufferIsLoaded() public method

public ensureBufferIsLoaded ( int bufferIdx ) : void
bufferIdx int
return void

glTFLoader() public method

public glTFLoader ( string path, Queue _transferQ, CommandPool _cmdPool ) : System
path string
_transferQ Queue
_cmdPool CommandPool
return System

loadNode() public method

public loadNode ( Node parentNode, glTFLoader.Schema.Node gltfNode ) : void
parentNode Node
gltfNode glTFLoader.Schema.Node
return void

Property Details

baseDirectory public property

public string baseDirectory
return string

cmdPool public property

public CommandPool cmdPool
return CommandPool

gltf public property

public Gltf,glTFLoader.Schema gltf
return glTFLoader.Schema.Gltf

loadedBuffers public property

public Memory[] loadedBuffers
return Memory[]

transferQ public property

public Queue transferQ
return Queue