List of usage examples for org.lwjgl.opengl ARBSeamlessCubeMap GL_TEXTURE_CUBE_MAP_SEAMLESS
int GL_TEXTURE_CUBE_MAP_SEAMLESS
To view the source code for org.lwjgl.opengl ARBSeamlessCubeMap GL_TEXTURE_CUBE_MAP_SEAMLESS.
Click Source Link
From source file:uk.co.zutty.glarena.engine.Game.java
License:Open Source License
private void setupOpenGL() { // Setup an OpenGL context with API version 3.2 try {// ww w. jav a2 s . com PixelFormat pixelFormat = new PixelFormat(); ContextAttribs contextAttributes = new ContextAttribs(3, 2).withForwardCompatible(true) .withProfileCore(true); Display.setDisplayMode(new DisplayMode(1024, 768)); Display.setTitle("3D Game"); Display.create(pixelFormat, contextAttributes); glViewport(0, 0, Display.getWidth(), Display.getHeight()); } catch (LWJGLException e) { e.printStackTrace(); System.exit(-1); } // Setup an XNA like background color glClearColor(0.4f, 0.6f, 0.9f, 0f); //glClearColor(0f, 0f, 0f, 0f); glEnable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); glEnable(ARBSeamlessCubeMap.GL_TEXTURE_CUBE_MAP_SEAMLESS); glCullFace(GL_BACK); glClearDepth(1); Util.checkGLError(); }