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

org.lwjgl.opengles.OESDrawBuffersIndexed 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 org.lwjgl.system.*;

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

/**
 * Native bindings to the OES_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.

*/ public class OESDrawBuffersIndexed { static { GLES.initialize(); } protected OESDrawBuffersIndexed() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glEnableiOES, caps.glDisableiOES, caps.glBlendEquationiOES, caps.glBlendEquationSeparateiOES, caps.glBlendFunciOES, caps.glBlendFuncSeparateiOES, caps.glColorMaskiOES, caps.glIsEnablediOES ); } // --- [ glEnableiOES ] --- public static native void glEnableiOES(@NativeType("GLenum") int target, @NativeType("GLuint") int index); // --- [ glDisableiOES ] --- public static native void glDisableiOES(@NativeType("GLenum") int target, @NativeType("GLuint") int index); // --- [ glBlendEquationiOES ] --- public static native void glBlendEquationiOES(@NativeType("GLuint") int buf, @NativeType("GLenum") int mode); // --- [ glBlendEquationSeparateiOES ] --- public static native void glBlendEquationSeparateiOES(@NativeType("GLuint") int buf, @NativeType("GLenum") int modeRGB, @NativeType("GLenum") int modeAlpha); // --- [ glBlendFunciOES ] --- public static native void glBlendFunciOES(@NativeType("GLuint") int buf, @NativeType("GLenum") int src, @NativeType("GLenum") int dst); // --- [ glBlendFuncSeparateiOES ] --- public static native void glBlendFuncSeparateiOES(@NativeType("GLuint") int buf, @NativeType("GLenum") int srcRGB, @NativeType("GLenum") int dstRGB, @NativeType("GLenum") int srcAlpha, @NativeType("GLenum") int dstAlpha); // --- [ glColorMaskiOES ] --- public static native void glColorMaskiOES(@NativeType("GLuint") int index, @NativeType("GLboolean") boolean r, @NativeType("GLboolean") boolean g, @NativeType("GLboolean") boolean b, @NativeType("GLboolean") boolean a); // --- [ glIsEnablediOES ] --- @NativeType("GLboolean") public static native boolean glIsEnablediOES(@NativeType("GLenum") int target, @NativeType("GLuint") int index); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy