protected ContextAttribs createContextAttribs() { if (settings.getBoolean("GraphicsDebug") || settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { ContextAttribs attr; if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { attr = new ContextAttribs(3, 2); attr = attr.withProfileCore(true).withForwardCompatible(true).withProfileCompatibility(false); } else { attr = new ContextAttribs(); } if (settings.getBoolean("GraphicsDebug")) { attr = attr.withDebug(true); } return attr; } else { return null; } } protected int determineMaxSamples(int requestedSamples) {
ContextAttribs ctxAttribs = new ContextAttribs().withDebug(true); Display.create(config.getPixelFormat(), ctxAttribs);
private void createDisplayPixelFormat (boolean useGL30, int gles30ContextMajor, int gles30ContextMinor) { try { if (useGL30) { ContextAttribs context = new ContextAttribs(gles30ContextMajor, gles30ContextMinor).withForwardCompatible(false) .withProfileCore(true); try {
private void createDisplayPixelFormat (boolean useGL30, int gles30ContextMajor, int gles30ContextMinor) { try { if (useGL30) { ContextAttribs context = new ContextAttribs(gles30ContextMajor, gles30ContextMinor).withForwardCompatible(false) .withProfileCore(true); try {
ContextAttribs contextAtrributes = new ContextAttribs(3, 2) .withForwardCompatible(true) .withProfileCore(true);
ContextAttribs contextAtrributes = new ContextAttribs(3, 3).withProfileCore(true);
PixelFormat pixelFormat = new PixelFormat(); ContextAttribs contextAtrributes = new ContextAttribs(3, 2) .withForwardCompatible(true) .withProfileCore(true); Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT)); Display.setTitle(WINDOW_TITLE); Display.create(pixelFormat, contextAtrributes);
ContextAttribs attribs = new ContextAttribs(3,3) .withForwardCompatible(true) .withProfileCore(true); try { Display.setDisplayMode(new DisplayMode(WIDTH,HEIGHT)); Display.create(new PixelFormat(),attribs); } catch (LWJGLException e) { e.printStackTrace(); }
PixelFormat pixelFormat = new PixelFormat(); ContextAttribs contextAtrributes = new ContextAttribs(3, 2) .withForwardCompatible(true) .withProfileCore(true); try { Display.setDisplayMode(new DisplayMode(320, 240)); Display.setTitle("Version selection"); Display.create(pixelFormat, contextAtrributes); } catch (LWJGLException e) { e.printStackTrace(); System.exit(-1); }
protected ContextAttribs createContextAttribs() { if (settings.getBoolean("GraphicsDebug") || settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { ContextAttribs attr; if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL3)) { attr = new ContextAttribs(3, 2); attr = attr.withProfileCore(true).withForwardCompatible(true).withProfileCompatibility(false); } else { attr = new ContextAttribs(); } if (settings.getBoolean("GraphicsDebug")) { attr = attr.withDebug(true); } return attr; } else { return null; } }
public AWTGLCanvas_sceDisplay() throws LWJGLException { super(null, new PixelFormat().withBitsPerPixel(8).withAlphaBits(8).withStencilBits(8).withSamples(antiAliasSamplesNum), null, new ContextAttribs().withDebug(useDebugGL)); }
private void createDisplayPixelFormat (boolean useGL30, int gles30ContextMajor, int gles30ContextMinor) { try { if (useGL30) { ContextAttribs context = new ContextAttribs(gles30ContextMajor, gles30ContextMinor).withForwardCompatible(false) .withProfileCore(true); try {