Codota Logo
LwjglWindow.runLoop
Code IndexAdd Codota to your IDE (free)

How to use
runLoop
method
in
com.jme3.system.lwjgl.LwjglWindow

Best Java code snippets using com.jme3.system.lwjgl.LwjglWindow.runLoop (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public void run() {
  if (listener == null) {
    throw new IllegalStateException("SystemListener is not set on context!"
        + "Must set with JmeContext.setSystemListener().");
  }
  LOGGER.log(Level.FINE, "Using LWJGL {0}", Version.getVersion());
  if (!initInThread()) {
    LOGGER.log(Level.SEVERE, "Display initialization failed. Cannot continue.");
    return;
  }
  while (true) {
    runLoop();
    if (needClose.get()) {
      break;
    }
    if (glfwWindowShouldClose(window)) {
      listener.requestClose(false);
    }
  }
  deinitInThread();
}
origin: org.jmonkeyengine/jme3-lwjgl3

@Override
public void run() {
  if (listener == null) {
    throw new IllegalStateException("SystemListener is not set on context!"
        + "Must set with JmeContext.setSystemListener().");
  }
  LOGGER.log(Level.FINE, "Using LWJGL {0}", Version.getVersion());
  if (!initInThread()) {
    LOGGER.log(Level.SEVERE, "Display initialization failed. Cannot continue.");
    return;
  }
  while (true) {
    runLoop();
    if (needClose.get()) {
      break;
    }
    if (glfwWindowShouldClose(window)) {
      listener.requestClose(false);
    }
  }
  deinitInThread();
}
com.jme3.system.lwjglLwjglWindowrunLoop

Javadoc

execute one iteration of the render loop in the OpenGL thread

Popular methods of LwjglWindow

  • getWindowHandle
  • createContext
    Apply the settings, changing resolution, etc.
  • deinitInThread
    De-initialize in the OpenGL thread.
  • destroyContext
    Destroy the context.
  • getSettings
  • imageToGLFWImage
    Convert the BufferedImage to the GLFWImage.
  • imagesToGLFWImages
    Convert array of images to array of GLFWImage.
  • initInThread
    Does LWJGL display initialization in the OpenGL thread
  • initOpenCL
  • isRenderable
  • printContextInitInfo
  • run
  • printContextInitInfo,
  • run,
  • setFrameRateLimit,
  • setWindowIcon,
  • showWindow,
  • waitFor

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getApplicationContext (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JTextField (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now