本文整理了Java中org.lwjgl.glfw.GLFW.glfwDefaultWindowHints()
方法的一些代码示例,展示了GLFW.glfwDefaultWindowHints()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwDefaultWindowHints()
方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwDefaultWindowHints
[英]Resets all window hints to their default values. See #glfwWindowHint for details.
This function must only be called from the main thread.
[中]将所有窗口提示重置为其默认值。有关详细信息,请参见#glfwWindowHint。
只能从主线程调用此函数。
代码示例来源:origin: libgdx/libgdx
static long createGlfwWindow(Lwjgl3ApplicationConfiguration config, long sharedContextWindow) {
GLFW.glfwDefaultWindowHints();
GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GLFW.GLFW_FALSE);
GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, config.windowResizable ? GLFW.GLFW_TRUE : GLFW.GLFW_FALSE);
代码示例来源:origin: libgdx/libgdx
static long createGlfwWindow(Lwjgl3ApplicationConfiguration config, long sharedContextWindow) {
GLFW.glfwDefaultWindowHints();
GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GLFW.GLFW_FALSE);
GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, config.windowResizable ? GLFW.GLFW_TRUE : GLFW.GLFW_FALSE);
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
glfwDefaultWindowHints();
代码示例来源:origin: jMonkeyEngine/jmonkeyengine
glfwDefaultWindowHints();
代码示例来源:origin: sriharshachilakapati/SilenceEngine
/**
* This method resets all the window hints to their default values.
*/
public static void setDefaultHints()
{
glfwDefaultWindowHints();
}
代码示例来源:origin: fynnfluegge/oreon-engine
@Override
public void create() {
glfwDefaultWindowHints();
glfwWindowHint(GLFW_RESIZABLE, GL_TRUE);
glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
setId(glfwCreateWindow(getWidth(), getHeight(), getTitle(), 0, 0));
if(getId() == 0) {
throw new RuntimeException("Failed to create window");
}
setIcon("textures/logo/oreon_lwjgl_icon32.png");
}
代码示例来源:origin: Renanse/Ardor3D
@Override
public void init() {
if (_inited) {
return;
}
GLFWErrorCallback.createPrint(System.err).set();
if (!GLFW.glfwInit()) {
throw new IllegalStateException("Unable to initialize GLFW");
}
try {
GLFW.glfwDefaultWindowHints();
GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, GL11C.GL_FALSE);
GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GL11C.GL_FALSE);
GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MAJOR, 3);
GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MINOR, 3);
GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_DEBUG_CONTEXT, GLFW.GLFW_TRUE);
GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_PROFILE, GLFW.GLFW_OPENGL_CORE_PROFILE);
GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_FORWARD_COMPAT, GLFW.GLFW_TRUE);
GLFW.glfwSetErrorCallback(_errorCallback = GLFWErrorCallback.createPrint(System.err));
_windowId = GLFW.glfwCreateWindow(_settings.getWidth(), _settings.getHeight(), "Ardor3D", 0, 0);
} catch (final Exception e) {
logger.severe("Cannot create window");
logger.logp(Level.SEVERE, this.getClass().toString(), "initDisplay()", "Exception", e);
throw new Ardor3dException("Cannot create window: " + e.getMessage());
}
_canvasRenderer.init(_settings, true); // true - do swap in renderer.
_inited = true;
}
代码示例来源:origin: badlogic/lwjgl3-maven-gradle
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: badlogic/lwjgl3-maven-gradle
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: playn/playn
glfwDefaultWindowHints();
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
代码示例来源:origin: lwjglgamedev/lwjglbook
glfwDefaultWindowHints(); // optional, the current window hints are already the default
内容来源于网络,如有侵权,请联系作者删除!