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);
The header of the GLFW 3 API.
bool is_gui_aligned(GLFWwindow *win)
struct GLFWwindow GLFWwindow


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:13