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

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

Go to download

The most widely adopted 2D and 3D graphics API in the industry, bringing thousands of applications to a wide variety of computer platforms.

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.opengl;

import java.nio.*;

import org.lwjgl.system.*;

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

In unextended OpenGL textures are considered to be sets of image data (mip-chains, arrays, cube-map face sets, etc.) and sampling state (sampling mode, * mip-mapping state, coordinate wrapping and clamping rules, etc.) combined into a single object. It is typical for an application to use many textures * with a limited set of sampling states that are the same between them. In order to use textures in this way, an application must generate and configure * many texture names, adding overhead both to applications and to implementations. Furthermore, should an application wish to sample from a texture in * more than one way (with and without mip-mapping, for example) it must either modify the state of the texture or create two textures, each with a copy of * the same image data. This can introduce runtime and memory costs to the application.

* *

This extension separates sampler state from texture image data. A new object type is introduced, the sampler (representing generic sampling parameters). * The new sampler objects are represented by a new named type encapsulating the sampling parameters of a traditional texture object. Sampler objects may * be bound to texture units to supplant the bound texture's sampling state. A single sampler may be bound to more than one texture unit simultaneously, * allowing different textures to be accessed with a single set of shared sampling parameters. Also, by binding different sampler objects to texture units * to which the same texture has been bound, the same texture image data may be sampled with different sampling parameters.

* *

Promoted to core in {@link GL33 OpenGL 3.3}.

*/ public class ARBSamplerObjects { static { GL.initialize(); } /** Accepted by the {@code value} parameter of the GetBooleanv, GetIntegerv, GetInteger64v, GetFloatv and GetDoublev functions. */ public static final int GL_SAMPLER_BINDING = 0x8919; protected ARBSamplerObjects() { throw new UnsupportedOperationException(); } // --- [ glGenSamplers ] --- /** * Unsafe version of: {@link #glGenSamplers GenSamplers} * * @param count the number of sampler object names to generate */ public static void nglGenSamplers(int count, long samplers) { GL33C.nglGenSamplers(count, samplers); } /** * Generates sampler object names. * * @param samplers a buffer in which the generated sampler object names are stored */ public static void glGenSamplers(@NativeType("GLuint *") IntBuffer samplers) { GL33C.glGenSamplers(samplers); } /** Generates sampler object names. */ @NativeType("void") public static int glGenSamplers() { return GL33C.glGenSamplers(); } // --- [ glDeleteSamplers ] --- /** * Unsafe version of: {@link #glDeleteSamplers DeleteSamplers} * * @param count the number of sampler objects to be deleted */ public static void nglDeleteSamplers(int count, long samplers) { GL33C.nglDeleteSamplers(count, samplers); } /** * Deletes named sampler objects. * * @param samplers an array of sampler objects to be deleted */ public static void glDeleteSamplers(@NativeType("GLuint const *") IntBuffer samplers) { GL33C.glDeleteSamplers(samplers); } /** Deletes named sampler objects. */ public static void glDeleteSamplers(@NativeType("GLuint const *") int sampler) { GL33C.glDeleteSamplers(sampler); } // --- [ glIsSampler ] --- /** * Determines if a name corresponds to a sampler object. * * @param sampler a value that may be the name of a sampler object */ @NativeType("GLboolean") public static boolean glIsSampler(@NativeType("GLuint") int sampler) { return GL33C.glIsSampler(sampler); } // --- [ glBindSampler ] --- /** * Binds a named sampler to a texturing target. * * @param unit the index of the texture unit to which the sampler is bound * @param sampler the name of a sampler */ public static void glBindSampler(@NativeType("GLuint") int unit, @NativeType("GLuint") int sampler) { GL33C.glBindSampler(unit, sampler); } // --- [ glSamplerParameteri ] --- /** * Set the integer value of a sampler parameter. * * @param sampler the sampler object whose parameter to modify * @param pname the symbolic name of a single-valued sampler parameter. One of:
{@link GL11#GL_TEXTURE_WRAP_S TEXTURE_WRAP_S}{@link GL11#GL_TEXTURE_WRAP_T TEXTURE_WRAP_T}{@link GL12#GL_TEXTURE_WRAP_R TEXTURE_WRAP_R}{@link GL11#GL_TEXTURE_MIN_FILTER TEXTURE_MIN_FILTER}{@link GL11#GL_TEXTURE_MAG_FILTER TEXTURE_MAG_FILTER}
{@link GL12#GL_TEXTURE_MIN_LOD TEXTURE_MIN_LOD}{@link GL12#GL_TEXTURE_MAX_LOD TEXTURE_MAX_LOD}{@link GL14#GL_TEXTURE_LOD_BIAS TEXTURE_LOD_BIAS}{@link GL14#GL_TEXTURE_COMPARE_MODE TEXTURE_COMPARE_MODE}{@link GL14#GL_TEXTURE_COMPARE_FUNC TEXTURE_COMPARE_FUNC}
* @param param the value of {@code pname} */ public static void glSamplerParameteri(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint") int param) { GL33C.glSamplerParameteri(sampler, pname, param); } // --- [ glSamplerParameterf ] --- /** * Float version of {@link #glSamplerParameteri SamplerParameteri}. * * @param sampler the sampler object whose parameter to modify * @param pname the symbolic name of a single-valued sampler parameter * @param param the value of {@code pname} */ public static void glSamplerParameterf(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLfloat") float param) { GL33C.glSamplerParameterf(sampler, pname, param); } // --- [ glSamplerParameteriv ] --- /** Unsafe version of: {@link #glSamplerParameteriv SamplerParameteriv} */ public static void nglSamplerParameteriv(int sampler, int pname, long params) { GL33C.nglSamplerParameteriv(sampler, pname, params); } /** * Pointer version of {@link #glSamplerParameteri SamplerParameteri}. * * @param sampler the sampler object whose parameter to modify * @param pname the symbolic name of a sampler parameter. One of:
{@link GL11#GL_TEXTURE_BORDER_COLOR TEXTURE_BORDER_COLOR}{@link GL11#GL_TEXTURE_WRAP_S TEXTURE_WRAP_S}{@link GL11#GL_TEXTURE_WRAP_T TEXTURE_WRAP_T}{@link GL12#GL_TEXTURE_WRAP_R TEXTURE_WRAP_R}
{@link GL11#GL_TEXTURE_MIN_FILTER TEXTURE_MIN_FILTER}{@link GL11#GL_TEXTURE_MAG_FILTER TEXTURE_MAG_FILTER}{@link GL12#GL_TEXTURE_MIN_LOD TEXTURE_MIN_LOD}{@link GL12#GL_TEXTURE_MAX_LOD TEXTURE_MAX_LOD}
{@link GL14#GL_TEXTURE_LOD_BIAS TEXTURE_LOD_BIAS}{@link GL14#GL_TEXTURE_COMPARE_MODE TEXTURE_COMPARE_MODE}{@link GL14#GL_TEXTURE_COMPARE_FUNC TEXTURE_COMPARE_FUNC}
* @param params an array where the value or values of {@code pname} are stored */ public static void glSamplerParameteriv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint const *") IntBuffer params) { GL33C.glSamplerParameteriv(sampler, pname, params); } // --- [ glSamplerParameterfv ] --- /** Unsafe version of: {@link #glSamplerParameterfv SamplerParameterfv} */ public static void nglSamplerParameterfv(int sampler, int pname, long params) { GL33C.nglSamplerParameterfv(sampler, pname, params); } /** * Float version of {@link #glSamplerParameteriv SamplerParameteriv}. * * @param sampler the sampler object whose parameter to modify * @param pname the symbolic name of a sampler parameter * @param params an array where the value or values of {@code pname} are stored */ public static void glSamplerParameterfv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLfloat const *") FloatBuffer params) { GL33C.glSamplerParameterfv(sampler, pname, params); } // --- [ glSamplerParameterIiv ] --- /** Unsafe version of: {@link #glSamplerParameterIiv SamplerParameterIiv} */ public static void nglSamplerParameterIiv(int sampler, int pname, long params) { GL33C.nglSamplerParameterIiv(sampler, pname, params); } /** * Pure integer version of {@link #glSamplerParameteriv SamplerParameteriv}. * * @param sampler the sampler object whose parameter to modify * @param pname the symbolic name of a sampler parameter * @param params an array where the value or values of {@code pname} are stored */ public static void glSamplerParameterIiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint const *") IntBuffer params) { GL33C.glSamplerParameterIiv(sampler, pname, params); } // --- [ glSamplerParameterIuiv ] --- /** Unsafe version of: {@link #glSamplerParameterIuiv SamplerParameterIuiv} */ public static void nglSamplerParameterIuiv(int sampler, int pname, long params) { GL33C.nglSamplerParameterIuiv(sampler, pname, params); } /** * Unsigned pure integer version of {@link #glSamplerParameteriv SamplerParameteriv}. * * @param sampler the sampler object whose parameter to modify * @param pname the symbolic name of a sampler parameter * @param params an array where the value or values of {@code pname} are stored */ public static void glSamplerParameterIuiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLuint const *") IntBuffer params) { GL33C.glSamplerParameterIuiv(sampler, pname, params); } // --- [ glGetSamplerParameteriv ] --- /** Unsafe version of: {@link #glGetSamplerParameteriv GetSamplerParameteriv} */ public static void nglGetSamplerParameteriv(int sampler, int pname, long params) { GL33C.nglGetSamplerParameteriv(sampler, pname, params); } /** * Return the integer value(s) of a sampler parameter. * * @param sampler the name of the sampler object from which to retrieve parameters * @param pname the symbolic name of a sampler parameter. One of:
{@link GL11#GL_TEXTURE_WRAP_S TEXTURE_WRAP_S}{@link GL11#GL_TEXTURE_WRAP_T TEXTURE_WRAP_T}{@link GL12#GL_TEXTURE_WRAP_R TEXTURE_WRAP_R}{@link GL11#GL_TEXTURE_MIN_FILTER TEXTURE_MIN_FILTER}{@link GL11#GL_TEXTURE_MAG_FILTER TEXTURE_MAG_FILTER}
{@link GL12#GL_TEXTURE_MIN_LOD TEXTURE_MIN_LOD}{@link GL12#GL_TEXTURE_MAX_LOD TEXTURE_MAX_LOD}{@link GL14#GL_TEXTURE_LOD_BIAS TEXTURE_LOD_BIAS}{@link GL14#GL_TEXTURE_COMPARE_MODE TEXTURE_COMPARE_MODE}{@link GL14#GL_TEXTURE_COMPARE_FUNC TEXTURE_COMPARE_FUNC}
,{@link GL11#GL_TEXTURE_BORDER_COLOR TEXTURE_BORDER_COLOR}
* @param params the sampler parameters */ public static void glGetSamplerParameteriv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint *") IntBuffer params) { GL33C.glGetSamplerParameteriv(sampler, pname, params); } /** * Return the integer value(s) of a sampler parameter. * * @param sampler the name of the sampler object from which to retrieve parameters * @param pname the symbolic name of a sampler parameter. One of:
{@link GL11#GL_TEXTURE_WRAP_S TEXTURE_WRAP_S}{@link GL11#GL_TEXTURE_WRAP_T TEXTURE_WRAP_T}{@link GL12#GL_TEXTURE_WRAP_R TEXTURE_WRAP_R}{@link GL11#GL_TEXTURE_MIN_FILTER TEXTURE_MIN_FILTER}{@link GL11#GL_TEXTURE_MAG_FILTER TEXTURE_MAG_FILTER}
{@link GL12#GL_TEXTURE_MIN_LOD TEXTURE_MIN_LOD}{@link GL12#GL_TEXTURE_MAX_LOD TEXTURE_MAX_LOD}{@link GL14#GL_TEXTURE_LOD_BIAS TEXTURE_LOD_BIAS}{@link GL14#GL_TEXTURE_COMPARE_MODE TEXTURE_COMPARE_MODE}{@link GL14#GL_TEXTURE_COMPARE_FUNC TEXTURE_COMPARE_FUNC}
,{@link GL11#GL_TEXTURE_BORDER_COLOR TEXTURE_BORDER_COLOR}
*/ @NativeType("void") public static int glGetSamplerParameteri(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname) { return GL33C.glGetSamplerParameteri(sampler, pname); } // --- [ glGetSamplerParameterfv ] --- /** Unsafe version of: {@link #glGetSamplerParameterfv GetSamplerParameterfv} */ public static void nglGetSamplerParameterfv(int sampler, int pname, long params) { GL33C.nglGetSamplerParameterfv(sampler, pname, params); } /** * Float version of {@link #glGetSamplerParameteriv GetSamplerParameteriv}. * * @param sampler the name of the sampler object from which to retrieve parameters * @param pname the symbolic name of a sampler parameter * @param params the sampler parameters */ public static void glGetSamplerParameterfv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLfloat *") FloatBuffer params) { GL33C.glGetSamplerParameterfv(sampler, pname, params); } /** * Float version of {@link #glGetSamplerParameteriv GetSamplerParameteriv}. * * @param sampler the name of the sampler object from which to retrieve parameters * @param pname the symbolic name of a sampler parameter */ @NativeType("void") public static float glGetSamplerParameterf(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname) { return GL33C.glGetSamplerParameterf(sampler, pname); } // --- [ glGetSamplerParameterIiv ] --- /** Unsafe version of: {@link #glGetSamplerParameterIiv GetSamplerParameterIiv} */ public static void nglGetSamplerParameterIiv(int sampler, int pname, long params) { GL33C.nglGetSamplerParameterIiv(sampler, pname, params); } /** * Pure integer version of {@link #glGetSamplerParameteriv GetSamplerParameteriv}. * * @param sampler the name of the sampler object from which to retrieve parameters * @param pname the symbolic name of a sampler parameter * @param params the sampler parameters */ public static void glGetSamplerParameterIiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint *") IntBuffer params) { GL33C.glGetSamplerParameterIiv(sampler, pname, params); } /** * Pure integer version of {@link #glGetSamplerParameteriv GetSamplerParameteriv}. * * @param sampler the name of the sampler object from which to retrieve parameters * @param pname the symbolic name of a sampler parameter */ @NativeType("void") public static int glGetSamplerParameterIi(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname) { return GL33C.glGetSamplerParameterIi(sampler, pname); } // --- [ glGetSamplerParameterIuiv ] --- /** Unsafe version of: {@link #glGetSamplerParameterIuiv GetSamplerParameterIuiv} */ public static void nglGetSamplerParameterIuiv(int sampler, int pname, long params) { GL33C.nglGetSamplerParameterIuiv(sampler, pname, params); } /** * Unsigned pure integer version of {@link #glGetSamplerParameteriv GetSamplerParameteriv}. * * @param sampler the name of the sampler object from which to retrieve parameters * @param pname the symbolic name of a sampler parameter * @param params the sampler parameters */ public static void glGetSamplerParameterIuiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLuint *") IntBuffer params) { GL33C.glGetSamplerParameterIuiv(sampler, pname, params); } /** * Unsigned pure integer version of {@link #glGetSamplerParameteriv GetSamplerParameteriv}. * * @param sampler the name of the sampler object from which to retrieve parameters * @param pname the symbolic name of a sampler parameter */ @NativeType("void") public static int glGetSamplerParameterIui(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname) { return GL33C.glGetSamplerParameterIui(sampler, pname); } /** Array version of: {@link #glGenSamplers GenSamplers} */ public static void glGenSamplers(@NativeType("GLuint *") int[] samplers) { GL33C.glGenSamplers(samplers); } /** Array version of: {@link #glDeleteSamplers DeleteSamplers} */ public static void glDeleteSamplers(@NativeType("GLuint const *") int[] samplers) { GL33C.glDeleteSamplers(samplers); } /** Array version of: {@link #glSamplerParameteriv SamplerParameteriv} */ public static void glSamplerParameteriv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint const *") int[] params) { GL33C.glSamplerParameteriv(sampler, pname, params); } /** Array version of: {@link #glSamplerParameterfv SamplerParameterfv} */ public static void glSamplerParameterfv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLfloat const *") float[] params) { GL33C.glSamplerParameterfv(sampler, pname, params); } /** Array version of: {@link #glSamplerParameterIiv SamplerParameterIiv} */ public static void glSamplerParameterIiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint const *") int[] params) { GL33C.glSamplerParameterIiv(sampler, pname, params); } /** Array version of: {@link #glSamplerParameterIuiv SamplerParameterIuiv} */ public static void glSamplerParameterIuiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLuint const *") int[] params) { GL33C.glSamplerParameterIuiv(sampler, pname, params); } /** Array version of: {@link #glGetSamplerParameteriv GetSamplerParameteriv} */ public static void glGetSamplerParameteriv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint *") int[] params) { GL33C.glGetSamplerParameteriv(sampler, pname, params); } /** Array version of: {@link #glGetSamplerParameterfv GetSamplerParameterfv} */ public static void glGetSamplerParameterfv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLfloat *") float[] params) { GL33C.glGetSamplerParameterfv(sampler, pname, params); } /** Array version of: {@link #glGetSamplerParameterIiv GetSamplerParameterIiv} */ public static void glGetSamplerParameterIiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLint *") int[] params) { GL33C.glGetSamplerParameterIiv(sampler, pname, params); } /** Array version of: {@link #glGetSamplerParameterIuiv GetSamplerParameterIuiv} */ public static void glGetSamplerParameterIuiv(@NativeType("GLuint") int sampler, @NativeType("GLenum") int pname, @NativeType("GLuint *") int[] params) { GL33C.glGetSamplerParameterIuiv(sampler, pname, params); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy