34 int main(
int argc,
char * argv[])
try 37 window app(1280, 720,
"RealSense Align Example");
67 frameset = align_to_depth.
process(frameset);
72 frameset = align_to_color.
process(frameset);
115 catch (
const std::exception & e)
frameset wait_for_frames(unsigned int timeout_ms=RS2_DEFAULT_TIMEOUT) const
void render(const rs2::frame &frame, const rect &rect, float alpha=1.f)
IMGUI_API void SetTooltip(const char *fmt,...) IM_PRINTFARGS(1)
video_frame colorize(frame depth) const
IMGUI_API void SetNextWindowPos(const ImVec2 &pos, ImGuiSetCond cond=0)
GLint GLint GLsizei GLsizei GLsizei depth
depth_frame get_depth_frame() const
video_frame get_color_frame() const
const std::string & get_failed_args() const
IMGUI_API void SameLine(float pos_x=0.0f, float spacing_w=-1.0f)
GLfloat GLfloat GLfloat alpha
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
frameset process(frameset frames)
bool ImGui_ImplGlfw_Init(GLFWwindow *window, bool install_callbacks)
int main(int argc, char *argv[])
IMGUI_API void SetNextWindowSize(const ImVec2 &size, ImGuiSetCond cond=0)
IMGUI_API void SetCursorPosX(float x)
IMGUI_API void PushItemWidth(float item_width)
void enable_stream(rs2_stream stream_type, int stream_index, int width, int height, rs2_format format=RS2_FORMAT_ANY, int framerate=0)
#define GL_ONE_MINUS_SRC_ALPHA
void ImGui_ImplGlfw_NewFrame(float scale_factor)
IMGUI_API bool SliderFloat(const char *label, float *v, float v_min, float v_max, const char *display_format="%.3f", float power=1.0f, bool render_bg=false)
IMGUI_API void PopItemWidth()
IMGUI_API bool Checkbox(const char *label, bool *v)
IMGUI_API bool IsItemHovered()
const std::string & get_failed_function() const
void render_slider(rect location, float *alpha, direction *dir)