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

org.lwjgl.opengles.EXTRasterMultisample 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_raster_multisample extension.
 * 
 * 

This extension allows rendering to a non-multisample color buffer while rasterizing with more than one sample. The result of rasterization (coverage) * is available in the gl_SampleMaskIn[] fragment shader input, multisample rasterization is enabled for all primitives, and several per- fragment * operations operate at the raster sample rate.

* *

When using the functionality provided by this extension, depth, stencil, and depth bounds tests must be disabled, and a multisample draw framebuffer * must not be used.

* *

A fragment's "coverage", or "effective raster samples" is considered to have "N bits" (as opposed to "one bit" corresponding to the single color * sample) through the fragment shader, in the sample mask output, through the multisample fragment operations and occlusion query, until the coverage is * finally "reduced" to a single bit in a new "Coverage Reduction" stage that occurs before blending.

* *

Requires {@link GLES30 GLES 3.0}.

*/ public class EXTRasterMultisample { /** Accepted by the {@code cap} parameter of Enable, Disable, IsEnabled. */ public static final int GL_RASTER_MULTISAMPLE_EXT = 0x9327; /** Accepted by the {@code pname} parameter of GetBooleanv, GetDoublev, GetIntegerv, and GetFloatv. */ public static final int GL_RASTER_SAMPLES_EXT = 0x9328, GL_MAX_RASTER_SAMPLES_EXT = 0x9329, GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT = 0x932A, GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT = 0x932B, GL_EFFECTIVE_RASTER_SAMPLES_EXT = 0x932C; static { GLES.initialize(); } protected EXTRasterMultisample() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glRasterSamplesEXT ); } // --- [ glRasterSamplesEXT ] --- public static native void nglRasterSamplesEXT(int samples, boolean fixedsamplelocations); public static void glRasterSamplesEXT(int samples, boolean fixedsamplelocations) { nglRasterSamplesEXT(samples, fixedsamplelocations); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy