List of usage examples for com.badlogic.gdx.graphics GL10 GL_LESS
int GL_LESS
To view the source code for com.badlogic.gdx.graphics GL10 GL_LESS.
Click Source Link
From source file:org.interreg.docexplore.reader.book.BookPageStack.java
License:Open Source License
public void render(Bindable pageTexture, Bindable regionMask) { if (nStackPages == 0) return;/*from w ww. j a v a 2s . c o m*/ stackSide.render(GL10.GL_TRIANGLES); spineFill.render(GL10.GL_TRIANGLES); Gdx.gl10.glColor4f(1, 1, 1, 1); Gdx.gl10.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR); Gdx.gl10.glEnable(GL10.GL_TEXTURE_2D); pageTexture.bind(); stackFront.render(GL10.GL_TRIANGLES); if (regionMask != null) { Gdx.gl10.glDisable(GL10.GL_LIGHTING); Gdx.gl10.glDepthFunc(GL10.GL_LEQUAL); float shade = book.app.bookEngine.roiOverlay.active || book.app.bookEngine.roiOverlay.leaving ? .5f * book.app.bookEngine.roiOverlay.alpha : .5f * (cnt > 100 ? 200 - cnt : cnt) / 100f; Gdx.gl10.glColor4f(1, 1, 1, shade); regionMask.bind(); stackFront.render(GL10.GL_TRIANGLES); Gdx.gl10.glEnable(GL10.GL_LIGHTING); } Gdx.gl10.glDisable(GL10.GL_TEXTURE_2D); Gdx.gl10.glDepthFunc(GL10.GL_LESS); cnt = (cnt + 1) % 200; }