Tilt Five NDK  1.4.1
TiltFiveNative.h File Reference

C interface definition for the Tilt Five™ API. More...

#include "errors.h"
#include "types.h"
#include <stddef.h>
Include dependency graph for TiltFiveNative.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define T5_EXPORT   __attribute__((visibility("default")))
 

Functions

T5_EXPORT T5_Result t5CreateContext (T5_Context *context, const T5_ClientInfo *clientInfo, void *platformContext)
 Create a context object. More...
 
T5_EXPORT void t5DestroyContext (T5_Context *context)
 Destroy a context object. More...
 
T5_EXPORT T5_Result t5ListGlasses (T5_Context context, char *buffer, size_t *bufferSize)
 Enumerate all glasses. More...
 
T5_EXPORT T5_Result t5CreateGlasses (T5_Context context, const char *id, T5_Glasses *glasses)
 Create a glasses access object. More...
 
T5_EXPORT void t5DestroyGlasses (T5_Glasses *glasses)
 Destroy a glasses object. More...
 
T5_EXPORT T5_Result t5GetSystemIntegerParam (T5_Context context, T5_ParamSys param, int64_t *value)
 Get a system-wide integer parameter. More...
 
T5_EXPORT T5_Result t5GetSystemFloatParam (T5_Context context, T5_ParamSys param, double *value)
 Get a system-wide floating point parameter. More...
 
T5_EXPORT T5_Result t5GetSystemUtf8Param (T5_Context context, T5_ParamSys param, char *buffer, size_t *bufferSize)
 Get a system-wide UTF-8 encoded string parameter. More...
 
T5_EXPORT T5_Result t5GetChangedSystemParams (T5_Context context, T5_ParamSys *buffer, uint16_t *count)
 Get a system-wide list of changed parameters. More...
 
T5_EXPORT T5_Result t5GetGameboardSize (T5_Context context, T5_GameboardType gameboardType, T5_GameboardSize *gameboardSize)
 Get the gameboard dimensions. More...
 
T5_EXPORT T5_Result t5ReserveGlasses (T5_Glasses glasses, const char *displayName)
 Reserve glasses for exclusive operations by the client. More...
 
T5_EXPORT T5_Result t5SetGlassesDisplayName (T5_Glasses glasses, const char *displayName)
 Set the display name for glasses that were previously reserved for exclusive operations. More...
 
T5_EXPORT T5_Result t5EnsureGlassesReady (T5_Glasses glasses)
 Ensure that reserved glasses are ready for exclusive operations. More...
 
T5_EXPORT T5_Result t5ReleaseGlasses (T5_Glasses glasses)
 
T5_EXPORT T5_Result t5GetGlassesConnectionState (T5_Glasses glasses, T5_ConnectionState *connectionState)
 Get the exclusivity/connection status of the glasses. More...
 
T5_EXPORT T5_Result t5GetGlassesIdentifier (T5_Glasses glasses, char *buffer, size_t *bufferSize)
 Get the device identifier of a glasses. More...
 
T5_EXPORT T5_Result t5GetGlassesPose (T5_Glasses glasses, T5_GlassesPoseUsage usage, T5_GlassesPose *pose)
 Get the latest pose of the glasses. More...
 
T5_EXPORT T5_Result t5InitGlassesGraphicsContext (T5_Glasses glasses, T5_GraphicsApi graphicsApi, void *graphicsContext)
 Initialize the graphics context to enable sending rendered frames to the glasses. More...
 
T5_EXPORT T5_Result t5ConfigureCameraStreamForGlasses (T5_Glasses glasses, T5_CameraStreamConfig config)
 Configure the camera stream. More...
 
T5_EXPORT T5_Result t5GetFilledCamImageBuffer (T5_Glasses glasses, T5_CamImage *image)
 
T5_EXPORT T5_Result t5SubmitEmptyCamImageBuffer (T5_Glasses glasses, T5_CamImage *image)
 Submit an empty image buffer to be filled by the camera frame stream. More...
 
T5_EXPORT T5_Result t5CancelCamImageBuffer (T5_Glasses glasses, uint8_t *buffer)
 Clear out the remaining buffers and return all buffers as a vector of camera images. More...
 
T5_EXPORT T5_Result t5SendFrameToGlasses (T5_Glasses glasses, const T5_FrameInfo *info)
 Send a frame to display on the glasses. More...
 
T5_EXPORT T5_Result t5ValidateFrameInfo (T5_Glasses glasses, const T5_FrameInfo *info, char *detail, size_t *detailSize)
 Validate a provided T5_FrameInfo. More...
 
T5_EXPORT T5_Result t5GetGlassesIntegerParam (T5_Glasses glasses, T5_WandHandle wand, T5_ParamGlasses param, int64_t *value)
 Get a glasses integer parameter. More...
 
T5_EXPORT T5_Result t5GetGlassesFloatParam (T5_Glasses glasses, T5_WandHandle wand, T5_ParamGlasses param, double *value)
 Get a glasses floating point parameter. More...
 
T5_EXPORT T5_Result t5GetGlassesUtf8Param (T5_Glasses glasses, T5_WandHandle wand, T5_ParamGlasses param, char *buffer, size_t *bufferSize)
 Get a glasses UTF-8 encoded string parameter. More...
 
T5_EXPORT T5_Result t5GetChangedGlassesParams (T5_Glasses glasses, T5_ParamGlasses *buffer, uint16_t *count)
 Get a glasses-specific list of changed parameters. More...
 
T5_EXPORT T5_Result t5GetProjection (T5_Glasses glasses, T5_CartesianCoordinateHandedness handedness, T5_DepthRange depthRange, T5_MatrixOrder matrixOrder, double nearPlane, double farPlane, double worldScale, T5_ProjectionInfo *projectionInfo)
 Get projection properties for glasses. More...
 
T5_EXPORT T5_Result t5ListWandsForGlasses (T5_Glasses glasses, T5_WandHandle *buffer, uint8_t *count)
 List available wands connected to this glasses. More...
 
T5_EXPORT T5_Result t5SendImpulse (T5_Glasses glasses, T5_WandHandle wand, float amplitude, uint16_t duration)
 Send a haptic data buffer to a wand. More...
 
T5_EXPORT T5_Result t5ConfigureWandStreamForGlasses (T5_Glasses glasses, const T5_WandStreamConfig *config)
 Configure the wand event stream. More...
 
T5_EXPORT T5_Result t5ReadWandStreamForGlasses (T5_Glasses glasses, T5_WandStreamEvent *event, uint32_t timeoutMs)
 Read from the wands event stream. More...
 

Detailed Description

C interface definition for the Tilt Five™ API.

Definition in file TiltFiveNative.h.

Macro Definition Documentation

◆ T5_EXPORT

#define T5_EXPORT   __attribute__((visibility("default")))

Definition at line 42 of file TiltFiveNative.h.