#include <example.hpp>
Public Member Functions | |
GLuint | get_gl_handle () const |
void | print (int x, int y, const char *text) |
void | show (float rx, float ry, float rw, float rh) const |
void | show (rs::device &dev, rs::stream stream, int rx, int ry, int rw, int rh) |
void | show (rs::stream stream, rs::format format, int stream_framerate, unsigned long long frame_number, double timestamp, int rx, int ry, int rw, int rh, int width, int height) |
void | show (int rx, int ry, int rw, int rh, int width, int height) |
void | show (const void *data, int width, int height, rs::format format, const std::string &caption, int rx, int ry, int rw, int rh) |
texture_buffer () | |
void | upload (const void *data, int width, int height, rs::format format, int stride=0) |
void | upload (rs::device &dev, rs::stream stream) |
void | upload (rs::frame &frame) |
Private Attributes | |
int | fps |
double | last_timestamp |
double | next_time |
int | num_frames |
std::vector< uint8_t > | rgb |
GLuint | texture |
Definition at line 59 of file example.hpp.
texture_buffer::texture_buffer | ( | ) | [inline] |
Definition at line 69 of file example.hpp.
GLuint texture_buffer::get_gl_handle | ( | ) | const [inline] |
Definition at line 71 of file example.hpp.
void texture_buffer::print | ( | int | x, |
int | y, | ||
const char * | text | ||
) | [inline] |
Definition at line 203 of file example.hpp.
void texture_buffer::show | ( | float | rx, |
float | ry, | ||
float | rw, | ||
float | rh | ||
) | const [inline] |
Definition at line 189 of file example.hpp.
void texture_buffer::show | ( | rs::device & | dev, |
rs::stream | stream, | ||
int | rx, | ||
int | ry, | ||
int | rw, | ||
int | rh | ||
) | [inline] |
Definition at line 213 of file example.hpp.
void texture_buffer::show | ( | rs::stream | stream, |
rs::format | format, | ||
int | stream_framerate, | ||
unsigned long long | frame_number, | ||
double | timestamp, | ||
int | rx, | ||
int | ry, | ||
int | rw, | ||
int | rh, | ||
int | width, | ||
int | height | ||
) | [inline] |
Definition at line 236 of file example.hpp.
Definition at line 247 of file example.hpp.
void texture_buffer::show | ( | const void * | data, |
int | width, | ||
int | height, | ||
rs::format | format, | ||
const std::string & | caption, | ||
int | rx, | ||
int | ry, | ||
int | rw, | ||
int | rh | ||
) | [inline] |
Definition at line 260 of file example.hpp.
void texture_buffer::upload | ( | const void * | data, |
int | width, | ||
int | height, | ||
rs::format | format, | ||
int | stride = 0 |
||
) | [inline] |
Definition at line 73 of file example.hpp.
void texture_buffer::upload | ( | rs::device & | dev, |
rs::stream | stream | ||
) | [inline] |
Definition at line 150 of file example.hpp.
void texture_buffer::upload | ( | rs::frame & | frame | ) | [inline] |
Definition at line 171 of file example.hpp.
int texture_buffer::fps [private] |
Definition at line 65 of file example.hpp.
double texture_buffer::last_timestamp [private] |
Definition at line 62 of file example.hpp.
double texture_buffer::next_time [private] |
Definition at line 66 of file example.hpp.
int texture_buffer::num_frames [private] |
Definition at line 65 of file example.hpp.
std::vector<uint8_t> texture_buffer::rgb [private] |
Definition at line 63 of file example.hpp.
GLuint texture_buffer::texture [private] |
Definition at line 61 of file example.hpp.