27#ifndef EASY3D_RENDERER_OPENGL_READ_PIXEL_H
28#define EASY3D_RENDERER_OPENGL_READ_PIXEL_H
52 void read_color(
unsigned char rgba[4],
int x,
int y);
87 void read_color(std::vector<unsigned char>& buffer,
unsigned int format,
bool flip_vertically =
true);
97 void read_color_ms(std::vector<unsigned char>& buffer,
unsigned int format,
bool flip_vertically =
true);
107 void read_depth(std::vector<float>& buffer,
bool flip_vertically =
true);
116 void read_depth_ms(std::vector<float>& buffer,
bool flip_vertically =
true);
OpenGL-related functionalities for reading pixel/depth data from the framebuffer.
Definition opengl_error.cpp:35
void read_depth(float &depth, int x, int y)
Read depth value at pixel (x, y) from the current non-multisample framebuffer.
Definition read_pixel.cpp:123
void snapshot_color(const std::string &file_name)
Snapshot the color render buffer of the current non-multisample framebuffer into an image file....
Definition read_pixel.cpp:332
void snapshot_depth_ms(const std::string &file_name)
Snapshot the depth render buffer of the current multisample framebuffer into an image file....
Definition read_pixel.cpp:529
void snapshot_color_ms(const std::string &file_name)
Snapshot the color render buffer of the current multisample framebuffer into an image file....
Definition read_pixel.cpp:367
void read_color(unsigned char rgba[4], int x, int y)
Read color value at pixel (x, y) from the current non-multisample framebuffer.
Definition read_pixel.cpp:44
void read_depth_ms(float &depth, int x, int y)
Read depth value at pixel (x, y) from the current multisample framebuffer.
Definition read_pixel.cpp:141
void read_color_ms(unsigned char rgba[4], int x, int y)
Read color value at pixel (x, y) from the current multisample framebuffer.
Definition read_pixel.cpp:60
void snapshot_depth(const std::string &file_name)
Snapshot the depth render buffer of the current non-multisample framebuffer into an image file....
Definition read_pixel.cpp:505
Definition collider.cpp:182