YARP
Yet Another Robot Platform
TextureBuffer Class Reference

#include <ovrheadset/TextureBuffer.h>

Public Member Functions

void fromImage (ovrSession inSession, const yarp::sig::Image &img, double alpha=1.0)
 
 TextureBuffer ()
 
 TextureBuffer (int w, int h, int eye, ovrSession session)
 
 ~TextureBuffer ()
 
void resize (size_t w=0, size_t h=0)
 
void update (const yarp::sig::Image &img)
 
void update ()
 
void lock ()
 
void unlock ()
 

Public Attributes

ovrSession session
 
ovrTextureSwapChain textureSwapChain
 
int textureSwapChainSize
 
size_t width
 
size_t height
 
unsigned int components
 
unsigned int padding
 
size_t rowSize
 
size_t bufferSize
 
double alpha
 
ovrPosef eyePose
 
GLuint * pboIds
 
GLubyte * ptr
 
bool dataReady
 
std::mutex mutex
 
unsigned int missingFrames
 
size_t imageWidth
 
size_t imageHeight
 

Detailed Description

Definition at line 28 of file TextureBuffer.h.

Constructor & Destructor Documentation

◆ TextureBuffer() [1/2]

TextureBuffer::TextureBuffer ( )

Definition at line 82 of file TextureBuffer.cpp.

◆ TextureBuffer() [2/2]

TextureBuffer::TextureBuffer ( int  w,
int  h,
int  eye,
ovrSession  session 
)

Definition at line 97 of file TextureBuffer.cpp.

◆ ~TextureBuffer()

TextureBuffer::~TextureBuffer ( )

Definition at line 124 of file TextureBuffer.cpp.

Member Function Documentation

◆ fromImage()

void TextureBuffer::fromImage ( ovrSession  inSession,
const yarp::sig::Image img,
double  alpha = 1.0 
)

Definition at line 46 of file TextureBuffer.cpp.

◆ lock()

void TextureBuffer::lock ( )

Definition at line 159 of file TextureBuffer.cpp.

◆ resize()

void TextureBuffer::resize ( size_t  w = 0,
size_t  h = 0 
)

Definition at line 131 of file TextureBuffer.cpp.

◆ unlock()

void TextureBuffer::unlock ( )

Definition at line 169 of file TextureBuffer.cpp.

◆ update() [1/2]

void TextureBuffer::update ( )

Definition at line 179 of file TextureBuffer.cpp.

◆ update() [2/2]

void TextureBuffer::update ( const yarp::sig::Image img)

Definition at line 146 of file TextureBuffer.cpp.

Member Data Documentation

◆ alpha

double TextureBuffer::alpha

Definition at line 58 of file TextureBuffer.h.

◆ bufferSize

size_t TextureBuffer::bufferSize

Definition at line 57 of file TextureBuffer.h.

◆ components

unsigned int TextureBuffer::components

Definition at line 54 of file TextureBuffer.h.

◆ dataReady

bool TextureBuffer::dataReady

Definition at line 65 of file TextureBuffer.h.

◆ eyePose

ovrPosef TextureBuffer::eyePose

Definition at line 60 of file TextureBuffer.h.

◆ height

size_t TextureBuffer::height

Definition at line 53 of file TextureBuffer.h.

◆ imageHeight

size_t TextureBuffer::imageHeight

Definition at line 71 of file TextureBuffer.h.

◆ imageWidth

size_t TextureBuffer::imageWidth

Definition at line 70 of file TextureBuffer.h.

◆ missingFrames

unsigned int TextureBuffer::missingFrames

Definition at line 68 of file TextureBuffer.h.

◆ mutex

std::mutex TextureBuffer::mutex

Definition at line 66 of file TextureBuffer.h.

◆ padding

unsigned int TextureBuffer::padding

Definition at line 55 of file TextureBuffer.h.

◆ pboIds

GLuint* TextureBuffer::pboIds

Definition at line 62 of file TextureBuffer.h.

◆ ptr

GLubyte* TextureBuffer::ptr

Definition at line 64 of file TextureBuffer.h.

◆ rowSize

size_t TextureBuffer::rowSize

Definition at line 56 of file TextureBuffer.h.

◆ session

ovrSession TextureBuffer::session

Definition at line 48 of file TextureBuffer.h.

◆ textureSwapChain

ovrTextureSwapChain TextureBuffer::textureSwapChain

Definition at line 49 of file TextureBuffer.h.

◆ textureSwapChainSize

int TextureBuffer::textureSwapChainSize

Definition at line 50 of file TextureBuffer.h.

◆ width

size_t TextureBuffer::width

Definition at line 52 of file TextureBuffer.h.


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