27#ifndef EASY3D_RENDERER_OPENGL_READ_PIXEL_H
28#define EASY3D_RENDERER_OPENGL_READ_PIXEL_H
45 void read_color(
unsigned char rgba[4],
int x,
int y);
46 void read_color_ms(
int index,
unsigned char rgba[4],
int x,
int y);
50 void read_depth(
float& depth,
int x,
int y);
51 void read_depth_ms(
float& depth,
int x,
int y);
55 void read_color(
int index, std::vector<unsigned char>& buffer,
unsigned int format,
bool flip_vertically =
true);
56 void read_color_ms(
int index, std::vector<unsigned char>& buffer,
unsigned int format,
bool flip_vertically =
true);
59 void read_depth(std::vector<float>& buffer,
bool flip_vertically =
true);
60 void read_depth_ms(std::vector<float>& buffer,
bool flip_vertically =
true);
67 void snapshot_color(
const std::string& file_name);
68 void snapshot_color_ms(
int index,
const std::string& file_name);
72 void snapshot_depth(
const std::string& file_name);
73 void snapshot_depth_ms(
const std::string& file_name);
Definition: collider.cpp:182