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

org.lwjgl.opengles.NVFramebufferMultisample 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.*;
import static org.lwjgl.system.JNI.*;

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

This extension extends the framebuffer object framework to enable multisample rendering.

* *

The new operation RenderbufferStorageMultisampleNV() allocates storage for a renderbuffer object that can be used as a multisample buffer. A * multisample render buffer image differs from a single-sample render buffer image in that a multisample image has a number of SAMPLES that is greater * than zero. No method is provided for creating multisample texture images.

* *

All of the framebuffer-attachable images attached to a framebuffer object must have the same number of SAMPLES or else the framebuffer object is not * "framebuffer complete". If a framebuffer object with multisample attachments is "framebuffer complete", then the framebuffer object behaves as if * SAMPLE_BUFFERS is one.

* *

A resolve operation is executed by calling BlitFramebufferNV (provided by the NV_framebuffer_blit extension) where the source is a multisample * framebuffer object and the destination is a single-sample framebuffer object. Source and destination framebuffer may be either application-created or * window-system provided.

* *

Requires {@link GLES20 GLES 2.0} and {@link NVFramebufferBlit NV_framebuffer_blit}.

*/ public class NVFramebufferMultisample { /** Accepted by the {@code pname} parameter of GetRenderbufferParameteriv. */ public static final int GL_RENDERBUFFER_SAMPLES_NV = 0x8CAB; /** Returned by CheckFramebufferStatus. */ public static final int GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV = 0x8D56; /** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, and GetFloatv. */ public static final int GL_MAX_SAMPLES_NV = 0x8D57; protected NVFramebufferMultisample() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glRenderbufferStorageMultisampleNV ); } // --- [ glRenderbufferStorageMultisampleNV ] --- public static void glRenderbufferStorageMultisampleNV(int target, int samples, int internalformat, int width, int height) { long __functionAddress = GLES.getCapabilities().glRenderbufferStorageMultisampleNV; if ( CHECKS ) checkFunctionAddress(__functionAddress); callV(__functionAddress, target, samples, internalformat, width, height); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy