本文整理了Java中org.lwjgl.glfw.GLFW.glfwGetMonitorPhysicalSize()
方法的一些代码示例,展示了GLFW.glfwGetMonitorPhysicalSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwGetMonitorPhysicalSize()
方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwGetMonitorPhysicalSize
[英]Returns the size, in millimetres, of the display area of the specified monitor.
Some systems do not provide accurate monitor size information, either because the monitor EDID data is incorrect or because the driver does not report it accurately.
Any or all of the size arguments may be NULL. If an error occurs, all non- NULL size arguments will be set to zero.
代码示例来源:origin: libgdx/libgdx
@Override
public float getPpcY() {
Lwjgl3Monitor monitor = (Lwjgl3Monitor) getMonitor();
GLFW.glfwGetMonitorPhysicalSize(monitor.monitorHandle, tmpBuffer, tmpBuffer2);
int sizeY = tmpBuffer2.get(0);
DisplayMode mode = getDisplayMode();
return mode.height / (float) sizeY * 10;
}
代码示例来源:origin: libgdx/libgdx
@Override
public float getPpcX() {
Lwjgl3Monitor monitor = (Lwjgl3Monitor) getMonitor();
GLFW.glfwGetMonitorPhysicalSize(monitor.monitorHandle, tmpBuffer, tmpBuffer2);
int sizeX = tmpBuffer.get(0);
DisplayMode mode = getDisplayMode();
return mode.width / (float) sizeX * 10;
}
代码示例来源:origin: libgdx/libgdx
@Override
public float getPpcY() {
Lwjgl3Monitor monitor = (Lwjgl3Monitor) getMonitor();
GLFW.glfwGetMonitorPhysicalSize(monitor.monitorHandle, tmpBuffer, tmpBuffer2);
int sizeY = tmpBuffer2.get(0);
DisplayMode mode = getDisplayMode();
return mode.height / (float) sizeY * 10;
}
代码示例来源:origin: libgdx/libgdx
@Override
public float getPpcX() {
Lwjgl3Monitor monitor = (Lwjgl3Monitor) getMonitor();
GLFW.glfwGetMonitorPhysicalSize(monitor.monitorHandle, tmpBuffer, tmpBuffer2);
int sizeX = tmpBuffer.get(0);
DisplayMode mode = getDisplayMode();
return mode.width / (float) sizeX * 10;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3
@Override
public float getPpcX() {
Lwjgl3Monitor monitor = (Lwjgl3Monitor) getMonitor();
GLFW.glfwGetMonitorPhysicalSize(monitor.monitorHandle, tmpBuffer, tmpBuffer2);
int sizeX = tmpBuffer.get(0);
DisplayMode mode = getDisplayMode();
return mode.width / (float) sizeX * 10;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl3
@Override
public float getPpcY() {
Lwjgl3Monitor monitor = (Lwjgl3Monitor) getMonitor();
GLFW.glfwGetMonitorPhysicalSize(monitor.monitorHandle, tmpBuffer, tmpBuffer2);
int sizeY = tmpBuffer2.get(0);
DisplayMode mode = getDisplayMode();
return mode.height / (float) sizeY * 10;
}
内容来源于网络,如有侵权,请联系作者删除!