IntersectionApi

Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

AttachShape
void AttachShape(Shape shape)
Undocumented in source.
Commit
void Commit()
Undocumented in source.
CreateBuffer
Buffer CreateBuffer(size_t size, void* initdata)

Memory management

CreateInstance
Shape CreateInstance(Shape shape)
Undocumented in source.
CreateMesh
Shape CreateMesh(float* vertices, int vnum, int vstride, int* indices, int istride, int* numfacevertices, int numfaces)

Geometry manipulation

DeleteBuffer
void DeleteBuffer(Buffer buffer)
Undocumented in source.
DeleteEvent
void DeleteEvent(Event event)

Events handling

DeleteShape
void DeleteShape(Shape shape)
Undocumented in source.
DetachAll
void DetachAll()
Undocumented in source.
DetachShape
void DetachShape(Shape shape)
Undocumented in source.
IsWorldEmpty
bool IsWorldEmpty()
Undocumented in source.
MapBuffer
void MapBuffer(Buffer buffer, MapType type, size_t offset, size_t size, void** data, Event* event)
Undocumented in source.
QueryIntersection
void QueryIntersection(Buffer rays, int numrays, Buffer hitinfos, Event waitevent, Event* event)

Ray casting

QueryIntersection
void QueryIntersection(Buffer rays, Buffer numrays, int maxrays, Buffer hitinfos, Event waitevent, Event* event)
Undocumented in source.
QueryOcclusion
void QueryOcclusion(Buffer rays, int numrays, Buffer hitresults, Event waitevent, Event* event)
Undocumented in source.
QueryOcclusion
void QueryOcclusion(Buffer rays, Buffer numrays, int maxrays, Buffer hitresults, Event waitevent, Event* event)
Undocumented in source.
ResetIdCounter
void ResetIdCounter()
Undocumented in source.
SetOption
void SetOption(char* name, char* value)

Utility

SetOption
void SetOption(char* name, float value)
Undocumented in source.
UnmapBuffer
void UnmapBuffer(Buffer buffer, void* ptr, Event* event)
Undocumented in source.

Static functions

Create
IntersectionApi Create(uint32_t devidx)

API lifetime management

Delete
void Delete(IntersectionApi api)
Undocumented in source.
GetDeviceCount
uint32_t GetDeviceCount()

Device management

GetDeviceInfo
void GetDeviceInfo(uint32_t devidx, DeviceInfo devinfo)
Undocumented in source.
SetPlatform
void SetPlatform(DeviceInfo.Platform platform)

Backend management

Meta