#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 |
Definition at line 28 of file TextureBuffer.h.
| TextureBuffer::TextureBuffer | ( | ) |
Definition at line 82 of file TextureBuffer.cpp.
| TextureBuffer::TextureBuffer | ( | int | w, |
| int | h, | ||
| int | eye, | ||
| ovrSession | session | ||
| ) |
Definition at line 97 of file TextureBuffer.cpp.
| TextureBuffer::~TextureBuffer | ( | ) |
Definition at line 124 of file TextureBuffer.cpp.
| void TextureBuffer::fromImage | ( | ovrSession | inSession, |
| const yarp::sig::Image & | img, | ||
| double | alpha = 1.0 |
||
| ) |
Definition at line 46 of file TextureBuffer.cpp.
| void TextureBuffer::lock | ( | ) |
Definition at line 159 of file TextureBuffer.cpp.
| void TextureBuffer::resize | ( | size_t | w = 0, |
| size_t | h = 0 |
||
| ) |
Definition at line 131 of file TextureBuffer.cpp.
| void TextureBuffer::unlock | ( | ) |
Definition at line 169 of file TextureBuffer.cpp.
| void TextureBuffer::update | ( | ) |
Definition at line 179 of file TextureBuffer.cpp.
| void TextureBuffer::update | ( | const yarp::sig::Image & | img | ) |
Definition at line 146 of file TextureBuffer.cpp.
| double TextureBuffer::alpha |
Definition at line 58 of file TextureBuffer.h.
| size_t TextureBuffer::bufferSize |
Definition at line 57 of file TextureBuffer.h.
| unsigned int TextureBuffer::components |
Definition at line 54 of file TextureBuffer.h.
| bool TextureBuffer::dataReady |
Definition at line 65 of file TextureBuffer.h.
| ovrPosef TextureBuffer::eyePose |
Definition at line 60 of file TextureBuffer.h.
| size_t TextureBuffer::height |
Definition at line 53 of file TextureBuffer.h.
| size_t TextureBuffer::imageHeight |
Definition at line 71 of file TextureBuffer.h.
| size_t TextureBuffer::imageWidth |
Definition at line 70 of file TextureBuffer.h.
| unsigned int TextureBuffer::missingFrames |
Definition at line 68 of file TextureBuffer.h.
| std::mutex TextureBuffer::mutex |
Definition at line 66 of file TextureBuffer.h.
| unsigned int TextureBuffer::padding |
Definition at line 55 of file TextureBuffer.h.
| GLuint* TextureBuffer::pboIds |
Definition at line 62 of file TextureBuffer.h.
| GLubyte* TextureBuffer::ptr |
Definition at line 64 of file TextureBuffer.h.
| size_t TextureBuffer::rowSize |
Definition at line 56 of file TextureBuffer.h.
| ovrSession TextureBuffer::session |
Definition at line 48 of file TextureBuffer.h.
| ovrTextureSwapChain TextureBuffer::textureSwapChain |
Definition at line 49 of file TextureBuffer.h.
| int TextureBuffer::textureSwapChainSize |
Definition at line 50 of file TextureBuffer.h.
| size_t TextureBuffer::width |
Definition at line 52 of file TextureBuffer.h.