Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
common
ux-alignment.h
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
3
4
#pragma once
5
6
#define GLFW_INCLUDE_GLU
7
#include <
GLFW/glfw3.h
>
8
9
//This function checks whether there is UI misalignment,
10
//sometimes caused by outdated graphics card drivers,
11
//it puts a red pixel (1x1 rect) on the top left corner of the window,
12
//take a snapshot and check the value of the top left corner pixel
13
//if its red - there is no misalignment
14
//otherwise - there is misalignment
15
16
bool
is_gui_aligned
(
GLFWwindow
*win);
glfw3.h
The header of the GLFW 3 API.
is_gui_aligned
bool is_gui_aligned(GLFWwindow *win)
Definition:
ux-alignment.cpp:18
GLFWwindow
struct GLFWwindow GLFWwindow
Definition:
rs_processing_gl.h:43
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:50:13