Back to class index
Mesh[Class Summary]
vb
boundingAABB
boundingSphere
ib
material
vsInput
psInput
texture
textureSampler
RenderOrderID()[const]
Deinit()
LoadFromFile(...)
LoadFromMSHFile(...) (+1 overload)
SaveToMSHFile(mshFilename) (+1 overload)
LoadFromOBJFile(...)
DeserializeFromXml(...)

Mesh::LoadFromFile

Syntax

bool Mesh::LoadFromFile(const char *filename, int submeshInFile=0, bool hasCpuMemory=false, bool hasGpuMemory=true, ResourceUsage usage=UsageImmutable, bool cpuReadAccess=false, bool cpuWriteAccess=false);

Return Value

True on success.

Work in progress:

Todo: in bool Mesh::LoadFromFile(const char *filename, int submeshInFile=0, bool hasCpuMemory=false, bool hasGpuMemory=true, ResourceUsage usage=UsageImmutable, bool cpuReadAccess=false, bool cpuWriteAccess=false):
Review hasCpuMemory, hasGpuMemory, usage, cpuReadAccess and cpuWriteAccess flags.
Todo: in bool Mesh::LoadFromFile(const char *filename, int submeshInFile=0, bool hasCpuMemory=false, bool hasGpuMemory=true, ResourceUsage usage=UsageImmutable, bool cpuReadAccess=false, bool cpuWriteAccess=false):
Remove this hardcoded .obj -> .msh loading!

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index