org.lwjgl.glfw.GLFW.glfwDefaultWindowHints()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(224)

本文整理了Java中org.lwjgl.glfw.GLFW.glfwDefaultWindowHints()方法的一些代码示例,展示了GLFW.glfwDefaultWindowHints()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GLFW.glfwDefaultWindowHints()方法的具体详情如下:
包路径:org.lwjgl.glfw.GLFW
类名称:GLFW
方法名:glfwDefaultWindowHints

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

  1. static long createGlfwWindow(Lwjgl3ApplicationConfiguration config, long sharedContextWindow) {
  2. GLFW.glfwDefaultWindowHints();
  3. GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GLFW.GLFW_FALSE);
  4. GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, config.windowResizable ? GLFW.GLFW_TRUE : GLFW.GLFW_FALSE);

代码示例来源:origin: libgdx/libgdx

  1. static long createGlfwWindow(Lwjgl3ApplicationConfiguration config, long sharedContextWindow) {
  2. GLFW.glfwDefaultWindowHints();
  3. GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GLFW.GLFW_FALSE);
  4. GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, config.windowResizable ? GLFW.GLFW_TRUE : GLFW.GLFW_FALSE);

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

  1. glfwDefaultWindowHints();

代码示例来源:origin: jMonkeyEngine/jmonkeyengine

  1. glfwDefaultWindowHints();

代码示例来源:origin: sriharshachilakapati/SilenceEngine

  1. /**
  2. * This method resets all the window hints to their default values.
  3. */
  4. public static void setDefaultHints()
  5. {
  6. glfwDefaultWindowHints();
  7. }

代码示例来源:origin: fynnfluegge/oreon-engine

  1. @Override
  2. public void create() {
  3. glfwDefaultWindowHints();
  4. glfwWindowHint(GLFW_RESIZABLE, GL_TRUE);
  5. glfwWindowHint(GLFW_CLIENT_API, GLFW_NO_API);
  6. setId(glfwCreateWindow(getWidth(), getHeight(), getTitle(), 0, 0));
  7. if(getId() == 0) {
  8. throw new RuntimeException("Failed to create window");
  9. }
  10. setIcon("textures/logo/oreon_lwjgl_icon32.png");
  11. }

代码示例来源:origin: Renanse/Ardor3D

  1. @Override
  2. public void init() {
  3. if (_inited) {
  4. return;
  5. }
  6. GLFWErrorCallback.createPrint(System.err).set();
  7. if (!GLFW.glfwInit()) {
  8. throw new IllegalStateException("Unable to initialize GLFW");
  9. }
  10. try {
  11. GLFW.glfwDefaultWindowHints();
  12. GLFW.glfwWindowHint(GLFW.GLFW_RESIZABLE, GL11C.GL_FALSE);
  13. GLFW.glfwWindowHint(GLFW.GLFW_VISIBLE, GL11C.GL_FALSE);
  14. GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MAJOR, 3);
  15. GLFW.glfwWindowHint(GLFW.GLFW_CONTEXT_VERSION_MINOR, 3);
  16. GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_DEBUG_CONTEXT, GLFW.GLFW_TRUE);
  17. GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_PROFILE, GLFW.GLFW_OPENGL_CORE_PROFILE);
  18. GLFW.glfwWindowHint(GLFW.GLFW_OPENGL_FORWARD_COMPAT, GLFW.GLFW_TRUE);
  19. GLFW.glfwSetErrorCallback(_errorCallback = GLFWErrorCallback.createPrint(System.err));
  20. _windowId = GLFW.glfwCreateWindow(_settings.getWidth(), _settings.getHeight(), "Ardor3D", 0, 0);
  21. } catch (final Exception e) {
  22. logger.severe("Cannot create window");
  23. logger.logp(Level.SEVERE, this.getClass().toString(), "initDisplay()", "Exception", e);
  24. throw new Ardor3dException("Cannot create window: " + e.getMessage());
  25. }
  26. _canvasRenderer.init(_settings, true); // true - do swap in renderer.
  27. _inited = true;
  28. }

代码示例来源:origin: badlogic/lwjgl3-maven-gradle

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: badlogic/lwjgl3-maven-gradle

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: playn/playn

  1. glfwDefaultWindowHints();

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

代码示例来源:origin: lwjglgamedev/lwjglbook

  1. glfwDefaultWindowHints(); // optional, the current window hints are already the default

相关文章

GLFW类方法