All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opengles.EXTDrawBuffersIndexed Maven / Gradle / Ivy

Go to download

A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengles;

import static org.lwjgl.system.Checks.*;

/**
 * Native bindings to the EXT_draw_buffers_indexed extension.
 * 
 * 

This extension builds upon the EXT_draw_buffers extension. In EXT_draw_buffers (part of OpenGL ES 3.0), separate values could be written to each color * buffer, but the blend enable, blend functions, blend equations and color write masks are global and apply to all color outputs.

* *

This extension provides the ability to independently

* *
    *
  • enable or disable blending
  • *
  • set the blend equations
  • *
  • set the blend functions, and
  • *
  • set the color write masks per color output.
  • *
* *

This extension introduces indexed versions of the enable, blend equation, blend function, and color mask commands, as well as associated indexed * queries in order to control and query these states independently on a per-color output basis.

* *

Requres {@link GLES30 GLES 3.0} or {@link EXTDrawBuffers EXT_draw_buffers}.

*/ public class EXTDrawBuffersIndexed { static { GLES.initialize(); } protected EXTDrawBuffersIndexed() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glEnableiEXT, caps.glDisableiEXT, caps.glBlendEquationiEXT, caps.glBlendEquationSeparateiEXT, caps.glBlendFunciEXT, caps.glBlendFuncSeparateiEXT, caps.glColorMaskiEXT, caps.glIsEnablediEXT ); } // --- [ glEnableiEXT ] --- public static native void glEnableiEXT(int target, int index); // --- [ glDisableiEXT ] --- public static native void glDisableiEXT(int target, int index); // --- [ glBlendEquationiEXT ] --- public static native void glBlendEquationiEXT(int buf, int mode); // --- [ glBlendEquationSeparateiEXT ] --- public static native void glBlendEquationSeparateiEXT(int buf, int modeRGB, int modeAlpha); // --- [ glBlendFunciEXT ] --- public static native void glBlendFunciEXT(int buf, int src, int dst); // --- [ glBlendFuncSeparateiEXT ] --- public static native void glBlendFuncSeparateiEXT(int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha); // --- [ glColorMaskiEXT ] --- public static native void glColorMaskiEXT(int index, boolean r, boolean g, boolean b, boolean a); // --- [ glIsEnablediEXT ] --- public static native boolean glIsEnablediEXT(int target, int index); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy