Example usage for com.badlogic.gdx.graphics GL11 GL_PREVIOUS

List of usage examples for com.badlogic.gdx.graphics GL11 GL_PREVIOUS

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics GL11 GL_PREVIOUS.

Prototype

int GL_PREVIOUS

To view the source code for com.badlogic.gdx.graphics GL11 GL_PREVIOUS.

Click Source Link

Usage

From source file:com.badlogic.gdx.graphics.g3d.test.QbobViewer.java

License:Apache License

private void setCombiners() {
    Gdx.gl11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, GL11.GL_COMBINE);
    Gdx.gl11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_COMBINE_RGB, GL11.GL_ADD_SIGNED);
    Gdx.gl11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_SRC0_RGB, GL11.GL_PREVIOUS);
    Gdx.gl11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_SRC1_RGB, GL11.GL_TEXTURE);
}

From source file:com.badlogic.gdx.graphics.g3d.test.StillModelViewer.java

License:Apache License

private void setCombiners(int mod) {
    Gdx.gl11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_TEXTURE_ENV_MODE, GL11.GL_COMBINE);
    Gdx.gl11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_COMBINE_RGB, mod);
    Gdx.gl11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_SRC0_RGB, GL11.GL_PREVIOUS);
    Gdx.gl11.glTexEnvi(GL11.GL_TEXTURE_ENV, GL11.GL_SRC1_RGB, GL11.GL_TEXTURE);
}