org.lwjgl.opengl.Display.setTitle()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(176)

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

Display.setTitle介绍

暂无

代码示例

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

@Override
public void setTitle (String title) {
  Display.setTitle(title);
}

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

@Override
public void setTitle (String title) {
  Display.setTitle(title);
}

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

public void setTitle(String title){
  if (created.get())
    Display.setTitle(title);
}

代码示例来源:origin: MovingBlocks/Terasology

Display.setTitle("Terasology" + " | " + "Alpha");
try {

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

Display.setTitle(config.title);
Display.setResizable(config.resizable);
Display.setInitialBackground(config.initialBackgroundColor.r, config.initialBackgroundColor.g,

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

Display.setTitle(config.title);
Display.setResizable(config.resizable);
Display.setInitialBackground(config.initialBackgroundColor.r, config.initialBackgroundColor.g,

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

Display.setTitle(settings.getTitle());
Display.setResizable(settings.isResizable());

代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl

@Override
public void setTitle (String title) {
  Display.setTitle(title);
}

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

/**
 * Sets the title of the window.
 *
 * @param title the window title
 */
public void setTitle(String title) {
 Display.setTitle(title);
}

代码示例来源:origin: com.googlecode.playn/playn-java

/**
 * Sets the title of the window.
 *
 * @param title the window title
 */
public void setTitle(String title) {
 Display.setTitle(title);
}

代码示例来源:origin: org.slick2d/slick2d-core

/**
 * Set the title of the window
 * 
 * @param title The title to set on the window
 */
public void setTitle(String title) {
  Display.setTitle(title);
}

代码示例来源:origin: com.ardor3d/ardor3d-lwjgl

public void setTitle(final String title) {
  Display.setTitle(title);
}

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

@Override public void setTitle (String title) { Display.setTitle(title); }

代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-lwjgl

public void setTitle(String title){
  if (created.get())
    Display.setTitle(title);
}

代码示例来源:origin: Var3D/var3dframe

private void msg(Actor actor, Data data, String xy) {
  String name, type = "";
  if (data.variableType == -1) {
    name = "޷Actor";
  } else if (data.variableType == 1) {
    type = "Ա";
    name = data.name;
  } else if (data.variableType == 2) {
    type = "ֲ";
    name = data.name;
  } else {
    type = "";
    name = "";
  }
  Display.setTitle(type + ":" + name + " :" + actor.getClass().getSimpleName()
      + " :" + xy + " Ϣ:" + messeg);
}

代码示例来源:origin: Var3D/var3dframe

@SuppressWarnings("resource")
private void jem(File load) throws Exception {
  FileInputStream fis = new FileInputStream(load);
  fis.read(defByte, 0, 2);
  String str_head = game.bytesToHexString(defByte);
  if (str_head.equals("8950") || str_head.equals("ffd8")) {
    // ͼƬ,
    return;
  }
  File defFile = new File(load.getPath() + "_var3d_def");
  FileOutputStream fos = new FileOutputStream(defFile);
  int XOR_CONST = defByte[0] & 0xFF;
  fos.write(defByte[1] ^ XOR_CONST);
  int read;
  while ((read = fis.read()) > -1) {
    fos.write(read ^ XOR_CONST);
  }
  fos.flush();
  fos.close();
  fis.close();
  load.delete();
  defFile.renameTo(load);
  Display.setTitle(load.getName() + "");
}

代码示例来源:origin: Var3D/var3dframe

@SuppressWarnings("resource")
private void jam(File load) throws Exception {
  int XOR_CONST = MathUtils.random(0xFF);
  FileInputStream fis = new FileInputStream(load);
  fis.read(defByte, 0, 2);
  String str_head = game.bytesToHexString(defByte);
  if (!str_head.equals("8950") && !str_head.equals("ffd8")) {
    // ͼƬ,
    return;
  }
  File defFile = new File(load.getPath() + "_var3d_def");
  FileOutputStream fos = new FileOutputStream(defFile);
  fos.write(XOR_CONST);
  for (byte b : defByte) {
    fos.write(b ^ XOR_CONST);
  }
  int read;
  while ((read = fis.read()) > -1) {
    fos.write(read ^ XOR_CONST);
  }
  fos.flush();
  fos.close();
  fis.close();
  load.delete();
  defFile.renameTo(load);
  Display.setTitle(load.getName() + "");
}

代码示例来源:origin: bladecoder/bladecoder-adventure-engine

modified = false;
Display.setTitle("Adventure Editor v" + Versions.getVersion() + " - " + projectFile.getAbsolutePath());

代码示例来源:origin: CallForSanity/Gaalop

/**
 * Starts the lwjgl engine and shows a window, where the point clouds are rendered
 */
public void startEngine() {
  int width = 800;
  int height = 600;
  
  try {
    Display.setDisplayMode(new DisplayMode(width, height));
    Display.setFullscreen(false);
    Display.setTitle("Gaalop Visualization Window");
    Display.create();
  } catch (LWJGLException e) {
    e.printStackTrace();
    System.exit(0);
  }
  
  GL11.glEnable(GL11.GL_DEPTH_TEST);
  GL11.glShadeModel(GL11.GL_SMOOTH);
  changeSize(width, height);
  GL11.glDisable(GL11.GL_LIGHTING);
  // init OpenGL
  GL11.glViewport(0, 0, width, height);
  GL11.glMatrixMode(GL11.GL_PROJECTION);
  GL11.glLoadIdentity();
  GLU.gluPerspective((float) 65.0, (float) width / (float) height, (float) 0.1, 100);
  GL11.glMatrixMode(GL11.GL_MODELVIEW);
  
  
}

代码示例来源:origin: org.slick2d/slick2d-core

Display.setTitle(game.getTitle());

相关文章