Java Code Examples for com.badlogic.gdx.Gdx#gl30()
The following examples show how to use
com.badlogic.gdx.Gdx#gl30() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IOSMini2DxGraphics.java From mini2Dx with Apache License 2.0 | 5 votes |
public void setGL30 (GL30 gl30) { this.gl30 = gl30; if (gl30 != null) { this.gl20 = gl30; Gdx.gl = gl20; Gdx.gl20 = gl20; Gdx.gl30 = gl30; } }
Example 2
Source File: Lwjgl3Mini2DxWindow.java From mini2Dx with Apache License 2.0 | 5 votes |
void makeCurrent() { Gdx.graphics = graphics; Gdx.gl30 = graphics.getGL30(); Gdx.gl20 = Gdx.gl30 != null ? Gdx.gl30 : graphics.getGL20(); Gdx.gl = Gdx.gl30 != null ? Gdx.gl30 : Gdx.gl20; Gdx.input = input; GLFW.glfwMakeContextCurrent(windowHandle); }
Example 3
Source File: Main.java From graphicsfuzz with Apache License 2.0 | 4 votes |
@Override public void create() { if(this.overrideLogger != null){ Gdx.app.setApplicationLogger(overrideLogger); } // Only DesktopLauncher sets this. if(gl30 == null) { // Gdx.gl30 could also be null though. gl30 = Gdx.gl30; } Gdx.graphics.getGL20().glEnable(GL20.GL_TEXTURE_2D); Gdx.graphics.getGL20().glEnable(GL20.GL_DEPTH_TEST); Gdx.graphics.getGL20().glDepthFunc(GL20.GL_LESS); standardMesh = buildFullScreenQuadMesh(); if(standaloneRenderJob != null) { if (standaloneRenderJob.isSetComputeSource()) { updateState(WorkerState.COMPUTE_STANDALONE_PREPARE); } else { updateState(WorkerState.IMAGE_STANDALONE_PREPARE); } return; } PlatformInfoUtil.getPlatformDetails(platformInfoJson); PlatformInfoUtil.getGlVersionInfo(platformInfoJson, gl30); sanityReferenceImage = createPixelBuffer(); sanityCheckImage = createPixelBuffer(); sanityCheckImageTmp = createPixelBuffer(); GdxStage = new Stage(new ScreenViewport()); Label.LabelStyle label1Style = new Label.LabelStyle(); label1Style.font = new BitmapFont(); label1Style.fontColor = Color.WHITE; DisplayContent = new StringBuilder(); DisplayLabel = new Label(DisplayContent.toString(), label1Style); DisplayLabel.setPosition(WIDTH + DISPLAY_TXT_MARGIN, 0); DisplayLabel .setSize(Gdx.graphics.getWidth() - WIDTH - DISPLAY_TXT_MARGIN - 10, Gdx.graphics.getHeight() - 10); DisplayLabel.setAlignment(Align.topLeft); DisplayContent = new StringBuilder(); GdxStage.addActor(DisplayLabel); }