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

org.lwjgl.opengl.NVFragmentCoverageToColor Maven / Gradle / Ivy

/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengl;

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

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

This extension allows the fragment coverage value, represented as an * integer bitfield, to be substituted for a color output being written to a * single-component color buffer with integer components (e.g., R8UI). The * capability provided by this extension is different from simply writing the * gl_SampleMask fragment shader output in that the coverage value written to * the framebuffer is taken after alpha test, stencil test, and depth test, * as well as after the multisample fragment operations such as * alpha-to-coverage.

*/ public class NVFragmentCoverageToColor { /** Accepted by the {@code cap} parameter of Enable, Disable, IsEnabled. */ public static final int GL_FRAGMENT_COVERAGE_TO_COLOR_NV = 0x92DD; /** Accepted by the {@code pname} parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv. */ public static final int GL_FRAGMENT_COVERAGE_COLOR_NV = 0x92DE; static { GL.initialize(); } protected NVFragmentCoverageToColor() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLCapabilities caps) { return checkFunctions( caps.glFragmentCoverageColorNV ); } // --- [ glFragmentCoverageColorNV ] --- /** @param color the draw buffer index that the coverage value will be written to. Must be between 0 and the value of MAX_DRAW_BUFFERS minus one, inclusive. */ public static native void glFragmentCoverageColorNV(int color); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy