Examples of DisplayMode


Examples of org.lwjgl.opengl.DisplayMode

    private static float speed = 0.0f;
    //

    public static void main(String[] args) {
        try {
            Display.setDisplayMode(new DisplayMode(640, 480));
            Display.setTitle("Three Dee Demo");
            Display.setVSyncEnabled(true);
            Display.create();
        } catch (LWJGLException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.lwjgl.opengl.DisplayMode

        }
    }

    private static void setUpDisplay() {
        try {
            Display.setDisplayMode(new DisplayMode(WINDOW_DIMENSIONS[0], WINDOW_DIMENSIONS[1]));
            Display.setVSyncEnabled(true);
            Display.setTitle(WINDOW_TITLE);
            Display.create();
        } catch (LWJGLException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.lwjgl.opengl.DisplayMode

*/
public class ImmediateDemo {

    public static void main(String[] args) {
        try {
            Display.setDisplayMode(new DisplayMode(640, 480));
            Display.setTitle("Immediate Mode Demo");
            Display.create();
        } catch (LWJGLException e) {
            e.printStackTrace();
            Display.destroy();
View Full Code Here

Examples of org.lwjgl.opengl.DisplayMode

        }
    }

    private static void setUpDisplay() {
        try {
            Display.setDisplayMode(new DisplayMode(WINDOW_DIMENSIONS[0], WINDOW_DIMENSIONS[1]));
            Display.setTitle(WINDOW_TITLE);
            Display.create();
        } catch (LWJGLException e) {
            e.printStackTrace();
            cleanUp(true);
View Full Code Here

Examples of org.lwjgl.opengl.DisplayMode

        glMatrixMode(GL_MODELVIEW);
    }

    private static void setUpDisplay() {
        try {
            Display.setDisplayMode(new DisplayMode(DISPLAY_WIDTH, DISPLAY_HEIGHT));
            Display.setVSyncEnabled(true);
            Display.setTitle("Dynamic Text Demo");
            Display.create();
        } catch (LWJGLException e) {
            System.err.println("The display wasn't initialized correctly. :(");
View Full Code Here

Examples of org.lwjgl.opengl.DisplayMode

        }
    }

    private static void setUpDisplay() {
        try {
            Display.setDisplayMode(new DisplayMode(WINDOW_DIMENSIONS[0], WINDOW_DIMENSIONS[1]));
            Display.setTitle(WINDOW_TITLE);
            Display.create();
        } catch (LWJGLException e) {
            e.printStackTrace();
            cleanUp(true);
View Full Code Here

Examples of org.lwjgl.opengl.DisplayMode

    }

    /** Sets up a display. */
    private static void setUpDisplay() {
        try {
            Display.setDisplayMode(new DisplayMode(640, 480));
            Display.setTitle("Shadow Mapping Demo");
            Display.create();
        } catch (LWJGLException e) {
            System.err.println("Couldn't set up the display");
            Display.destroy();
View Full Code Here

Examples of org.lwjgl.opengl.DisplayMode

public class SideScrollerDemo {

    public static void main(String[] args) {
        // Create a Display with 640 width, 480 height, and title "Side Scroller"
        try {
            Display.setDisplayMode(new DisplayMode(640, 480));
            Display.setTitle("Side Scroller");
            Display.create();
        } catch (LWJGLException e) {
            e.printStackTrace();
            Display.destroy();
View Full Code Here

Examples of org.lwjgl.opengl.DisplayMode

*/
public class CameraTest {

    public static void main(String args[]) throws LWJGLException {
        Display.setVSyncEnabled(true);
        Display.setDisplayMode(new DisplayMode(640, 480));
        Display.setResizable(true);
        Display.create();
        EulerCamera camera = new EulerCamera.Builder().setAspectRatio(640f / 480f).setFieldOfView(60).build();
        camera.applyPerspectiveMatrix();
        camera.applyOptimalStates();
View Full Code Here

Examples of org.lwjgl.opengl.DisplayMode

        }
    }

    private static void setUpDisplay() {
        try {
            Display.setDisplayMode(new DisplayMode(WINDOW_DIMENSIONS[0], WINDOW_DIMENSIONS[1]));
            Display.setVSyncEnabled(true);
            Display.setTitle(WINDOW_TITLE);
            Display.create();
        } catch (LWJGLException e) {
            e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.