Tanoda
Leap.Unity.LeapImageRetriever Class Reference

Acquires images from a LeapServiceProvider and uploads image data as shader global data for use by any shaders that render those images. More...

Inheritance diagram for Leap.Unity.LeapImageRetriever:

Classes

class  EyeTextureData
 
class  LeapDistortionData
 
class  LeapTextureData
 

Public Member Functions

void ApplyGammaCorrectionValues ()
 

Static Public Attributes

const string GLOBAL_COLOR_SPACE_GAMMA_NAME = "_LeapGlobalColorSpaceGamma"
 
const string GLOBAL_GAMMA_CORRECTION_EXPONENT_NAME = "_LeapGlobalGammaCorrectionExponent"
 
const string GLOBAL_CAMERA_PROJECTION_NAME = "_LeapGlobalProjection"
 
const int IMAGE_WARNING_WAIT = 10
 
const int LEFT_IMAGE_INDEX = 0
 
const int RIGHT_IMAGE_INDEX = 1
 
const float IMAGE_SETTING_POLL_RATE = 2.0f
 

Protected Attributes

ProduceConsumeBuffer< Image_imageQueue = new ProduceConsumeBuffer<Image>(128)
 
Image _currentImage = null
 

Properties

EyeTextureData TextureData [get]
 

Detailed Description

Acquires images from a LeapServiceProvider and uploads image data as shader global data for use by any shaders that render those images.

Note: To use the LeapImageRetriever, you must be on version 2.1 or newer and you must enable "Allow Images" in your Leap Motion settings.

Definition at line 26 of file LeapImageRetriever.cs.

Member Function Documentation

◆ ApplyGammaCorrectionValues()

void Leap.Unity.LeapImageRetriever.ApplyGammaCorrectionValues ( )

Definition at line 367 of file LeapImageRetriever.cs.

Member Data Documentation

◆ _currentImage

Image Leap.Unity.LeapImageRetriever._currentImage = null
protected

Definition at line 44 of file LeapImageRetriever.cs.

◆ _imageQueue

ProduceConsumeBuffer<Image> Leap.Unity.LeapImageRetriever._imageQueue = new ProduceConsumeBuffer<Image>(128)
protected

Definition at line 43 of file LeapImageRetriever.cs.

◆ GLOBAL_CAMERA_PROJECTION_NAME

const string Leap.Unity.LeapImageRetriever.GLOBAL_CAMERA_PROJECTION_NAME = "_LeapGlobalProjection"
static

Definition at line 29 of file LeapImageRetriever.cs.

◆ GLOBAL_COLOR_SPACE_GAMMA_NAME

const string Leap.Unity.LeapImageRetriever.GLOBAL_COLOR_SPACE_GAMMA_NAME = "_LeapGlobalColorSpaceGamma"
static

Definition at line 27 of file LeapImageRetriever.cs.

◆ GLOBAL_GAMMA_CORRECTION_EXPONENT_NAME

const string Leap.Unity.LeapImageRetriever.GLOBAL_GAMMA_CORRECTION_EXPONENT_NAME = "_LeapGlobalGammaCorrectionExponent"
static

Definition at line 28 of file LeapImageRetriever.cs.

◆ IMAGE_SETTING_POLL_RATE

const float Leap.Unity.LeapImageRetriever.IMAGE_SETTING_POLL_RATE = 2.0f
static

Definition at line 33 of file LeapImageRetriever.cs.

◆ IMAGE_WARNING_WAIT

const int Leap.Unity.LeapImageRetriever.IMAGE_WARNING_WAIT = 10
static

Definition at line 30 of file LeapImageRetriever.cs.

◆ LEFT_IMAGE_INDEX

const int Leap.Unity.LeapImageRetriever.LEFT_IMAGE_INDEX = 0
static

Definition at line 31 of file LeapImageRetriever.cs.

◆ RIGHT_IMAGE_INDEX

const int Leap.Unity.LeapImageRetriever.RIGHT_IMAGE_INDEX = 1
static

Definition at line 32 of file LeapImageRetriever.cs.

Property Documentation

◆ TextureData

EyeTextureData Leap.Unity.LeapImageRetriever.TextureData
get

Definition at line 49 of file LeapImageRetriever.cs.


The documentation for this class was generated from the following file: