com.jogamp.opengl.GLEventListener Java Examples

The following examples show how to use com.jogamp.opengl.GLEventListener. 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: GLEventListenerButton.java    From jogl-samples with MIT License 5 votes vote down vote up
public GLEventListenerButton(final Factory<? extends Vertex> factory, final int renderModes,
                             final float width, final float height, final int textureUnit,
                             final GLEventListener glel, final boolean useAlpha, final int fboWidth, final int fboHeight) {
    super(factory, renderModes, width, height, new ImageSequence(textureUnit, true));
    this.glel = glel;
    this.useAlpha = useAlpha;

    setColor(0.95f, 0.95f, 0.95f, 1.0f);
    setPressedColorMod(1f, 1f, 1f, 0.9f);
    setToggleOffColorMod(0.8f, 0.8f, 0.8f, 1.0f);
    setToggleOnColorMod(1.0f, 1.0f, 1.0f, 1.0f);

    this.fboWidth = fboWidth;
    this.fboHeight = fboHeight;
}