Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryStack.*;
import static org.lwjgl.system.MemoryUtil.*;
/** Native bindings to the OpenGL 1.2 optional imaging subset. */
public class ARBImaging {
/**
* Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the {@code target} parameter of ColorTable, CopyColorTable, ColorTableParameteriv, ColorTableParameterfv,
* GetColorTable, GetColorTableParameteriv, and GetColorTableParameterfv.
*/
public static final int
GL_COLOR_TABLE = 0x80D0,
GL_POST_CONVOLUTION_COLOR_TABLE = 0x80D1,
GL_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2;
/** Accepted by the {@code target} parameter of ColorTable, GetColorTableParameteriv, and GetColorTableParameterfv. */
public static final int
GL_PROXY_COLOR_TABLE = 0x80D3,
GL_PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4,
GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5;
/**
* Accepted by the {@code pname} parameter of ColorTableParameteriv, ColorTableParameterfv, GetColorTableParameteriv, and
* GetColorTableParameterfv.
*/
public static final int
GL_COLOR_TABLE_SCALE = 0x80D6,
GL_COLOR_TABLE_BIAS = 0x80D7;
/** Accepted by the {@code pname} parameter of GetColorTableParameteriv and GetColorTableParameterfv. */
public static final int
GL_COLOR_TABLE_FORMAT = 0x80D8,
GL_COLOR_TABLE_WIDTH = 0x80D9,
GL_COLOR_TABLE_RED_SIZE = 0x80DA,
GL_COLOR_TABLE_GREEN_SIZE = 0x80DB,
GL_COLOR_TABLE_BLUE_SIZE = 0x80DC,
GL_COLOR_TABLE_ALPHA_SIZE = 0x80DD,
GL_COLOR_TABLE_LUMINANCE_SIZE = 0x80DE,
GL_COLOR_TABLE_INTENSITY_SIZE = 0x80DF;
/** ErrorCode */
public static final int GL_TABLE_TOO_LARGE = 0x8031;
/**
* Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the {@code target} parameter of ConvolutionFilter1D, CopyConvolutionFilter1D, GetConvolutionFilter, ConvolutionParameteri,
* ConvolutionParameterf, ConvolutionParameteriv, ConvolutionParameterfv, GetConvolutionParameteriv, and GetConvolutionParameterfv.
*/
public static final int GL_CONVOLUTION_1D = 0x8010;
/**
* Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the {@code target} parameter of ConvolutionFilter2D, CopyConvolutionFilter2D, GetConvolutionFilter, ConvolutionParameteri,
* ConvolutionParameterf, ConvolutionParameteriv, ConvolutionParameterfv, GetConvolutionParameteriv, and GetConvolutionParameterfv.
*/
public static final int GL_CONVOLUTION_2D = 0x8011;
/**
* Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the {@code target} parameter of SeparableFilter2D, SeparableFilter2D, GetSeparableFilter, ConvolutionParameteri,
* ConvolutionParameterf, ConvolutionParameteriv, ConvolutionParameterfv, GetConvolutionParameteriv, and GetConvolutionParameterfv.
*/
public static final int GL_SEPARABLE_2D = 0x8012;
/**
* Accepted by the {@code pname} parameter of ConvolutionParameteri, ConvolutionParameterf, ConvolutionParameteriv, ConvolutionParameterfv,
* GetConvolutionParameteriv, and GetConvolutionParameterfv.
*/
public static final int GL_CONVOLUTION_BORDER_MODE = 0x8013;
/** Accepted by the {@code pname} parameter of ConvolutionParameteriv, ConvolutionParameterfv, GetConvolutionParameteriv, and GetConvolutionParameterfv. */
public static final int
GL_CONVOLUTION_FILTER_SCALE = 0x8014,
GL_CONVOLUTION_FILTER_BIAS = 0x8015;
/**
* Accepted by the {@code param} parameter of ConvolutionParameteri, and ConvolutionParameterf, and by the {@code params} parameter of
* ConvolutionParameteriv and ConvolutionParameterfv, when the {@code pname} parameter is CONVOLUTION_BORDER_MODE.
*/
public static final int GL_REDUCE = 0x8016;
/** Accepted by the {@code pname} parameter of GetConvolutionParameteriv and GetConvolutionParameterfv. */
public static final int
GL_CONVOLUTION_FORMAT = 0x8017,
GL_CONVOLUTION_WIDTH = 0x8018,
GL_CONVOLUTION_HEIGHT = 0x8019,
GL_MAX_CONVOLUTION_WIDTH = 0x801A,
GL_MAX_CONVOLUTION_HEIGHT = 0x801B;
/**
* Accepted by the {@code pname} parameter of PixelTransferi, PixelTransferf, and by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv,
* and GetDoublev.
*/
public static final int
GL_POST_CONVOLUTION_RED_SCALE = 0x801C,
GL_POST_CONVOLUTION_GREEN_SCALE = 0x801D,
GL_POST_CONVOLUTION_BLUE_SCALE = 0x801E,
GL_POST_CONVOLUTION_ALPHA_SCALE = 0x801F,
GL_POST_CONVOLUTION_RED_BIAS = 0x8020,
GL_POST_CONVOLUTION_GREEN_BIAS = 0x8021,
GL_POST_CONVOLUTION_BLUE_BIAS = 0x8022,
GL_POST_CONVOLUTION_ALPHA_BIAS = 0x8023;
/**
* Accepted by the {@code param} parameter of ConvolutionParameteri, and ConvolutionParameterf, and by the {@code params} parameter of
* ConvolutionParameteriv and ConvolutionParameterfv, when the {@code pname} parameter is CONVOLUTION_BORDER_MODE.
*/
public static final int
GL_CONSTANT_BORDER = 0x8151,
GL_REPLICATE_BORDER = 0x8153;
/** Accepted by the {@code pname} parameter of ConvolutionParameteriv, ConvolutionParameterfv, GetConvolutionParameteriv, and GetConvolutionParameterfv. */
public static final int GL_CONVOLUTION_BORDER_COLOR = 0x8154;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int
GL_COLOR_MATRIX = 0x80B1,
GL_COLOR_MATRIX_STACK_DEPTH = 0x80B2,
GL_MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3;
/** Accepted by the {@code pname} parameter of PixelTransfer*, and by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int
GL_POST_COLOR_MATRIX_RED_SCALE = 0x80B4,
GL_POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5,
GL_POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6,
GL_POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7,
GL_POST_COLOR_MATRIX_RED_BIAS = 0x80B8,
GL_POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9,
GL_POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA,
GL_POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB;
/**
* Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the {@code target} parameter of Histogram, ResetHistogram, GetHistogram, GetHistogramParameteriv, and
* GetHistogramParameterfv.
*/
public static final int GL_HISTOGRAM = 0x8024;
/** Accepted by the {@code target} parameter of Histogram, GetHistogramParameteriv, and GetHistogramParameterfv. */
public static final int GL_PROXY_HISTOGRAM = 0x8025;
/** Accepted by the {@code pname} parameter of GetHistogramParameteriv and GetHistogramParameterfv. */
public static final int
GL_HISTOGRAM_WIDTH = 0x8026,
GL_HISTOGRAM_FORMAT = 0x8027,
GL_HISTOGRAM_RED_SIZE = 0x8028,
GL_HISTOGRAM_GREEN_SIZE = 0x8029,
GL_HISTOGRAM_BLUE_SIZE = 0x802A,
GL_HISTOGRAM_ALPHA_SIZE = 0x802B,
GL_HISTOGRAM_LUMINANCE_SIZE = 0x802C,
GL_HISTOGRAM_SINK = 0x802D;
/**
* Accepted by the {@code cap} parameter of Enable, Disable, and IsEnabled, by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and
* GetDoublev, and by the {@code target} parameter of Minmax, ResetMinmax, GetMinmax, GetMinmaxParameteriv, and GetMinmaxParameterfv.
*/
public static final int GL_MINMAX = 0x802E;
/** Accepted by the {@code pname} parameter of GetMinmaxParameteriv and GetMinmaxParameterfv. */
public static final int
GL_MINMAX_FORMAT = 0x802F,
GL_MINMAX_SINK = 0x8030;
/** Accepted by the {@code sfactor} and {@code dfactor} parameters of BlendFunc. */
public static final int
GL_CONSTANT_COLOR = 0x8001,
GL_ONE_MINUS_CONSTANT_COLOR = 0x8002,
GL_CONSTANT_ALPHA = 0x8003,
GL_ONE_MINUS_CONSTANT_ALPHA = 0x8004;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int GL_BLEND_COLOR = 0x8005;
/** Accepted by the {@code mode} parameter of BlendEquation. */
public static final int
GL_FUNC_ADD = 0x8006,
GL_MIN = 0x8007,
GL_MAX = 0x8008;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int GL_BLEND_EQUATION = 0x8009;
/** Accepted by the {@code mode} parameter of BlendEquation. */
public static final int
GL_FUNC_SUBTRACT = 0x800A,
GL_FUNC_REVERSE_SUBTRACT = 0x800B;
static { GL.initialize(); }
protected ARBImaging() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps, boolean fc) {
return (fc || checkFunctions(
caps.glColorTable, caps.glCopyColorTable, caps.glColorTableParameteriv, caps.glColorTableParameterfv, caps.glGetColorTable,
caps.glGetColorTableParameteriv, caps.glGetColorTableParameterfv, caps.glColorSubTable, caps.glCopyColorSubTable, caps.glConvolutionFilter1D,
caps.glConvolutionFilter2D, caps.glCopyConvolutionFilter1D, caps.glCopyConvolutionFilter2D, caps.glGetConvolutionFilter, caps.glSeparableFilter2D,
caps.glGetSeparableFilter, caps.glConvolutionParameteri, caps.glConvolutionParameteriv, caps.glConvolutionParameterf, caps.glConvolutionParameterfv,
caps.glGetConvolutionParameteriv, caps.glGetConvolutionParameterfv, caps.glHistogram, caps.glResetHistogram, caps.glGetHistogram,
caps.glGetHistogramParameteriv, caps.glGetHistogramParameterfv, caps.glMinmax, caps.glResetMinmax, caps.glGetMinmax, caps.glGetMinmaxParameteriv,
caps.glGetMinmaxParameterfv
)) && checkFunctions(
caps.glBlendColor, caps.glBlendEquation
);
}
// --- [ glColorTable ] ---
/** Unsafe version of: {@link #glColorTable ColorTable} */
public static native void nglColorTable(int target, int internalformat, int width, int format, int type, long table);
/**
* Specifies a color lookup table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glColorTable(int target, int internalformat, int width, int format, int type, ByteBuffer table) {
nglColorTable(target, internalformat, width, format, type, memAddress(table));
}
/**
* Specifies a color lookup table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glColorTable(int target, int internalformat, int width, int format, int type, long table) {
nglColorTable(target, internalformat, width, format, type, table);
}
/**
* Specifies a color lookup table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glColorTable(int target, int internalformat, int width, int format, int type, ShortBuffer table) {
nglColorTable(target, internalformat, width, format, type, memAddress(table));
}
/**
* Specifies a color lookup table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glColorTable(int target, int internalformat, int width, int format, int type, IntBuffer table) {
nglColorTable(target, internalformat, width, format, type, memAddress(table));
}
/**
* Specifies a color lookup table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glColorTable(int target, int internalformat, int width, int format, int type, FloatBuffer table) {
nglColorTable(target, internalformat, width, format, type, memAddress(table));
}
// --- [ glCopyColorTable ] ---
/**
* Defines a color table in exactly the manner of {@link #glColorTable ColorTable}, except that the image data are taken from the framebuffer rather than from client memory.
*
* @param target the color table target. One of:
* @param x the left framebuffer pixel coordinate
* @param y the lower framebuffer pixel coordinate
* @param width the color table width
*/
public static native void glCopyColorTable(int target, int internalformat, int x, int y, int width);
// --- [ glColorTableParameteriv ] ---
/** Unsafe version of: {@link #glColorTableParameteriv ColorTableParameteriv} */
public static native void nglColorTableParameteriv(int target, int pname, long params);
/**
* Specifies the scale and bias parameters for a color table.
*
* @param target the color table target. One of:
* @param params the parameter value
*/
public static void glColorTableParameteriv(int target, int pname, IntBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglColorTableParameteriv(target, pname, memAddress(params));
}
// --- [ glColorTableParameterfv ] ---
/** Unsafe version of: {@link #glColorTableParameterfv ColorTableParameterfv} */
public static native void nglColorTableParameterfv(int target, int pname, long params);
/**
* Float version of {@link #glColorTableParameteriv ColorTableParameteriv}.
*
* @param target the color table target
* @param pname the parameter to set
* @param params the parameter value
*/
public static void glColorTableParameterfv(int target, int pname, FloatBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglColorTableParameterfv(target, pname, memAddress(params));
}
// --- [ glGetColorTable ] ---
/** Unsafe version of: {@link #glGetColorTable GetColorTable} */
public static native void nglGetColorTable(int target, int format, int type, long table);
/**
* Returns the current contents of a color table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glGetColorTable(int target, int format, int type, ByteBuffer table) {
nglGetColorTable(target, format, type, memAddress(table));
}
/**
* Returns the current contents of a color table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glGetColorTable(int target, int format, int type, long table) {
nglGetColorTable(target, format, type, table);
}
/**
* Returns the current contents of a color table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glGetColorTable(int target, int format, int type, ShortBuffer table) {
nglGetColorTable(target, format, type, memAddress(table));
}
/**
* Returns the current contents of a color table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glGetColorTable(int target, int format, int type, IntBuffer table) {
nglGetColorTable(target, format, type, memAddress(table));
}
/**
* Returns the current contents of a color table.
*
* @param target the color table target. One of:
* @param table the color table data
*/
public static void glGetColorTable(int target, int format, int type, FloatBuffer table) {
nglGetColorTable(target, format, type, memAddress(table));
}
// --- [ glGetColorTableParameteriv ] ---
/** Unsafe version of: {@link #glGetColorTableParameteriv GetColorTableParameteriv} */
public static native void nglGetColorTableParameteriv(int target, int pname, long params);
/**
* Returns the integer value of the specified color table parameter.
*
* @param target the color table target. One of:
* @param params a buffer in which to place the returned value
*/
public static void glGetColorTableParameteriv(int target, int pname, IntBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglGetColorTableParameteriv(target, pname, memAddress(params));
}
/**
* Returns the integer value of the specified color table parameter.
*
* @param target the color table target. One of:
*/
public static int glGetColorTableParameteri(int target, int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.callocInt(1);
nglGetColorTableParameteriv(target, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetColorTableParameterfv ] ---
/** Unsafe version of: {@link #glGetColorTableParameterfv GetColorTableParameterfv} */
public static native void nglGetColorTableParameterfv(int target, int pname, long params);
/**
* Float version of {@link #glGetColorTableParameteriv GetColorTableParameteriv}.
*
* @param target the color table target
* @param pname the parameter to query
* @param params a buffer in which to place the returned value
*/
public static void glGetColorTableParameterfv(int target, int pname, FloatBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglGetColorTableParameterfv(target, pname, memAddress(params));
}
/**
* Float version of {@link #glGetColorTableParameteriv GetColorTableParameteriv}.
*
* @param target the color table target
* @param pname the parameter to query
*/
public static float glGetColorTableParameterf(int target, int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
FloatBuffer params = stack.callocFloat(1);
nglGetColorTableParameterfv(target, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glColorSubTable ] ---
/** Unsafe version of: {@link #glColorSubTable ColorSubTable} */
public static native void nglColorSubTable(int target, int start, int count, int format, int type, long data);
/**
* Respecifies a portion of an existing color table.
*
* @param target the color table target. One of:
* @param start the starting index of the subregion to respecify
* @param count the number of colors in the subregion to respecify
* @param format the color data format. One of:
* @param data the color table data
*/
public static void glColorSubTable(int target, int start, int count, int format, int type, ByteBuffer data) {
nglColorSubTable(target, start, count, format, type, memAddress(data));
}
/**
* Respecifies a portion of an existing color table.
*
* @param target the color table target. One of:
* @param start the starting index of the subregion to respecify
* @param count the number of colors in the subregion to respecify
* @param format the color data format. One of:
* @param data the color table data
*/
public static void glColorSubTable(int target, int start, int count, int format, int type, long data) {
nglColorSubTable(target, start, count, format, type, data);
}
// --- [ glCopyColorSubTable ] ---
/**
* Respecifies a portion of an existing color table using image taken from the framebuffer.
*
* @param target the color table target. One of:
* @param start the start index of the subregion to respecify
* @param x the left framebuffer pixel coordinate
* @param y the lower framebuffer pixel coordinate
* @param width the number of colors in the subregion to respecify
*/
public static native void glCopyColorSubTable(int target, int start, int x, int y, int width);
// --- [ glConvolutionFilter1D ] ---
/** Unsafe version of: {@link #glConvolutionFilter1D ConvolutionFilter1D} */
public static native void nglConvolutionFilter1D(int target, int internalformat, int width, int format, int type, long data);
/**
* Defines a one-dimensional convolution filter.
*
* @param target the convolution target. Must be:
{@link #GL_CONVOLUTION_1D CONVOLUTION_1D}
* @param internalformat the filter internal format. One of:
* @param data the filter data
*/
public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, ByteBuffer data) {
nglConvolutionFilter1D(target, internalformat, width, format, type, memAddress(data));
}
/**
* Defines a one-dimensional convolution filter.
*
* @param target the convolution target. Must be:
{@link #GL_CONVOLUTION_1D CONVOLUTION_1D}
* @param internalformat the filter internal format. One of:
* @param data the filter data
*/
public static void glConvolutionFilter1D(int target, int internalformat, int width, int format, int type, long data) {
nglConvolutionFilter1D(target, internalformat, width, format, type, data);
}
// --- [ glConvolutionFilter2D ] ---
/** Unsafe version of: {@link #glConvolutionFilter2D ConvolutionFilter2D} */
public static native void nglConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, long data);
/**
* Defines a two-dimensional convolution filter.
*
* @param target the convolution target. Must be:
{@link #GL_CONVOLUTION_2D CONVOLUTION_2D}
* @param internalformat the filter internal format. One of:
* @param data the filter data
*/
public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, ByteBuffer data) {
nglConvolutionFilter2D(target, internalformat, width, height, format, type, memAddress(data));
}
/**
* Defines a two-dimensional convolution filter.
*
* @param target the convolution target. Must be:
{@link #GL_CONVOLUTION_2D CONVOLUTION_2D}
* @param internalformat the filter internal format. One of:
* @param data the filter data
*/
public static void glConvolutionFilter2D(int target, int internalformat, int width, int height, int format, int type, long data) {
nglConvolutionFilter2D(target, internalformat, width, height, format, type, data);
}
// --- [ glCopyConvolutionFilter1D ] ---
/**
* Defines a one-dimensional filter in exactly the manner of {@link #glConvolutionFilter1D ConvolutionFilter1D}, except that image data are taken from the framebuffer, rather than from
* client memory.
*
* @param target the convolution target. Must be:
{@link #GL_CONVOLUTION_1D CONVOLUTION_1D}
* @param internalformat the filter internal format. One of:
* @param x the left framebuffer pixel coordinate
* @param y the lower framebuffer pixel coordinate
* @param width the filter width
*/
public static native void glCopyConvolutionFilter1D(int target, int internalformat, int x, int y, int width);
// --- [ glCopyConvolutionFilter2D ] ---
/**
* Defines a two-dimensional filter in exactly the manner of {@link #glConvolutionFilter1D ConvolutionFilter1D}, except that image data are taken from the framebuffer, rather than from
* client memory.
*
* @param target the convolution target. Must be:
{@link #GL_CONVOLUTION_2D CONVOLUTION_2D}
* @param internalformat the filter internal format. One of:
* @param x the left framebuffer pixel coordinate
* @param y the lower framebuffer pixel coordinate
* @param width the filter width
* @param height the filter height
*/
public static native void glCopyConvolutionFilter2D(int target, int internalformat, int x, int y, int width, int height);
// --- [ glGetConvolutionFilter ] ---
/** Unsafe version of: {@link #glGetConvolutionFilter GetConvolutionFilter} */
public static native void nglGetConvolutionFilter(int target, int format, int type, long image);
/**
* Returns the contents of a convolution filter.
*
* @param target the convolution target. One of:
* @param image the filter data
*/
public static void glGetConvolutionFilter(int target, int format, int type, ByteBuffer image) {
nglGetConvolutionFilter(target, format, type, memAddress(image));
}
/**
* Returns the contents of a convolution filter.
*
* @param target the convolution target. One of:
* @param image the filter data
*/
public static void glGetConvolutionFilter(int target, int format, int type, long image) {
nglGetConvolutionFilter(target, format, type, image);
}
// --- [ glSeparableFilter2D ] ---
/** Unsafe version of: {@link #glSeparableFilter2D SeparableFilter2D} */
public static native void nglSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, long row, long column);
/**
* Specifies a two-dimensional separable convolution filter.
*
* @param target the filter target. Must be:
{@link #GL_SEPARABLE_2D SEPARABLE_2D}
* @param internalformat the filter internal format. One of:
* @param row the horizontal filter data
* @param column the vertical filter data
*/
public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, ByteBuffer row, ByteBuffer column) {
nglSeparableFilter2D(target, internalformat, width, height, format, type, memAddress(row), memAddress(column));
}
/**
* Specifies a two-dimensional separable convolution filter.
*
* @param target the filter target. Must be:
{@link #GL_SEPARABLE_2D SEPARABLE_2D}
* @param internalformat the filter internal format. One of:
* @param row the horizontal filter data
* @param column the vertical filter data
*/
public static void glSeparableFilter2D(int target, int internalformat, int width, int height, int format, int type, long row, long column) {
nglSeparableFilter2D(target, internalformat, width, height, format, type, row, column);
}
// --- [ glGetSeparableFilter ] ---
/** Unsafe version of: {@link #glGetSeparableFilter GetSeparableFilter} */
public static native void nglGetSeparableFilter(int target, int format, int type, long row, long column, long span);
/**
* Returns the current contents of a separable convolution filter.
*
* @param target the filter target. Must be:
* @param row a buffer in which to return the filter row
* @param column a buffer in which to return the filter column
* @param span unused
*/
public static void glGetSeparableFilter(int target, int format, int type, ByteBuffer row, ByteBuffer column, ByteBuffer span) {
nglGetSeparableFilter(target, format, type, memAddress(row), memAddress(column), memAddressSafe(span));
}
/**
* Returns the current contents of a separable convolution filter.
*
* @param target the filter target. Must be:
* @param row a buffer in which to return the filter row
* @param column a buffer in which to return the filter column
* @param span unused
*/
public static void glGetSeparableFilter(int target, int format, int type, long row, long column, ByteBuffer span) {
nglGetSeparableFilter(target, format, type, row, column, memAddressSafe(span));
}
// --- [ glConvolutionParameteri ] ---
/**
* Specifies the scale and bias of a convolution filter.
*
* @param target the filter target. One of:
* @param param the parameter value
*/
public static native void glConvolutionParameteri(int target, int pname, int param);
// --- [ glConvolutionParameteriv ] ---
/** Unsafe version of: {@link #glConvolutionParameteriv ConvolutionParameteriv} */
public static native void nglConvolutionParameteriv(int target, int pname, long params);
/**
* Pointer version of {@link #glConvolutionParameteri ConvolutionParameteri}.
*
* @param target the filter target
* @param pname the parameter to set. One of:
* @param params the parameter value
*/
public static void glConvolutionParameteriv(int target, int pname, IntBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglConvolutionParameteriv(target, pname, memAddress(params));
}
// --- [ glConvolutionParameterf ] ---
/**
* Float version of {@link #glConvolutionParameteri ConvolutionParameteri}
*
* @param target the filter target
* @param pname the parameter to set
* @param param the parameter value
*/
public static native void glConvolutionParameterf(int target, int pname, float param);
// --- [ glConvolutionParameterfv ] ---
/** Unsafe version of: {@link #glConvolutionParameterfv ConvolutionParameterfv} */
public static native void nglConvolutionParameterfv(int target, int pname, long params);
/**
* Pointer version of {@link #glConvolutionParameterf ConvolutionParameterf}.
*
* @param target the filter target
* @param pname the parameter to set. One of:
* @param params the parameter value
*/
public static void glConvolutionParameterfv(int target, int pname, FloatBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglConvolutionParameterfv(target, pname, memAddress(params));
}
// --- [ glGetConvolutionParameteriv ] ---
/** Unsafe version of: {@link #glGetConvolutionParameteriv GetConvolutionParameteriv} */
public static native void nglGetConvolutionParameteriv(int target, int pname, long params);
/**
* Returns the value of a convolution filter parameter.
*
* @param target the filter target. One of:
* @param params a buffer in which to return the parameter value
*/
public static void glGetConvolutionParameteriv(int target, int pname, IntBuffer params) {
if (CHECKS) {
check(params, 4);
}
nglGetConvolutionParameteriv(target, pname, memAddress(params));
}
/**
* Returns the value of a convolution filter parameter.
*
* @param target the filter target. One of:
* @param sink whether pixel groups will be consumed by the histogram operation ({@link GL11#GL_TRUE TRUE}) or passed on to the minmax operation ({@link GL11#GL_FALSE FALSE})
*/
public static native void glHistogram(int target, int width, int internalformat, boolean sink);
// --- [ glResetHistogram ] ---
/**
* Resets all counters of all elements of the histogram table to zero.
*
* @param target the histogram target. Must be:
{@link #GL_HISTOGRAM HISTOGRAM}
*/
public static native void glResetHistogram(int target);
// --- [ glGetHistogram ] ---
/** Unsafe version of: {@link #glGetHistogram GetHistogram} */
public static native void nglGetHistogram(int target, boolean reset, int format, int type, long values);
/**
* Returns the current contents of the histogram table.
*
* @param target the histogram target. Must be:
{@link #GL_HISTOGRAM HISTOGRAM}
* @param reset if {@link GL11#GL_TRUE TRUE}, then all counters of all elements of the histogram are reset to zero. Counters are reset whether returned or not.
* @param format the pixel data format. One of:
* @param values the pixel data
*/
public static void glGetHistogram(int target, boolean reset, int format, int type, ByteBuffer values) {
nglGetHistogram(target, reset, format, type, memAddress(values));
}
/**
* Returns the current contents of the histogram table.
*
* @param target the histogram target. Must be:
{@link #GL_HISTOGRAM HISTOGRAM}
* @param reset if {@link GL11#GL_TRUE TRUE}, then all counters of all elements of the histogram are reset to zero. Counters are reset whether returned or not.
* @param format the pixel data format. One of:
* @param values the pixel data
*/
public static void glGetHistogram(int target, boolean reset, int format, int type, long values) {
nglGetHistogram(target, reset, format, type, values);
}
// --- [ glGetHistogramParameteriv ] ---
/** Unsafe version of: {@link #glGetHistogramParameteriv GetHistogramParameteriv} */
public static native void nglGetHistogramParameteriv(int target, int pname, long params);
/**
* Returns the integer values of the specified histogram parameter
*
* @param target the histogram target. Must be:
* @param params a buffer in which to return the parameter values
*/
public static void glGetHistogramParameteriv(int target, int pname, IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetHistogramParameteriv(target, pname, memAddress(params));
}
/**
* Returns the integer values of the specified histogram parameter
*
* @param target the histogram target. Must be:
* @param sink whether pixel groups will be consumed by the minmax operation ({@link GL11#GL_TRUE TRUE}) or passed on to final conversion ({@link GL11#GL_FALSE FALSE})
*/
public static native void glMinmax(int target, int internalformat, boolean sink);
// --- [ glResetMinmax ] ---
/**
* Resets all minimum and maximum values of {@code target} to to their maximum and minimum representable values, respectively.
*
* @param target the minmax target. Must be:
{@link #GL_MINMAX MINMAX}
*/
public static native void glResetMinmax(int target);
// --- [ glGetMinmax ] ---
/** Unsafe version of: {@link #glGetMinmax GetMinmax} */
public static native void nglGetMinmax(int target, boolean reset, int format, int type, long values);
/**
* Returns the current contents of the minmax table.
*
* @param target the minmax target. Must be:
{@link #GL_MINMAX MINMAX}
* @param reset If {@link GL11#GL_TRUE TRUE}, then each minimum value is reset to the maximum representable value, and each maximum value is reset to the minimum
* representable value. All values are reset, whether returned or not.
* @param format the pixel data format. One of:
* @param values a buffer in which to place the minmax values
*/
public static void glGetMinmax(int target, boolean reset, int format, int type, ByteBuffer values) {
nglGetMinmax(target, reset, format, type, memAddress(values));
}
/**
* Returns the current contents of the minmax table.
*
* @param target the minmax target. Must be:
{@link #GL_MINMAX MINMAX}
* @param reset If {@link GL11#GL_TRUE TRUE}, then each minimum value is reset to the maximum representable value, and each maximum value is reset to the minimum
* representable value. All values are reset, whether returned or not.
* @param format the pixel data format. One of:
* @param values a buffer in which to place the minmax values
*/
public static void glGetMinmax(int target, boolean reset, int format, int type, long values) {
nglGetMinmax(target, reset, format, type, values);
}
// --- [ glGetMinmaxParameteriv ] ---
/** Unsafe version of: {@link #glGetMinmaxParameteriv GetMinmaxParameteriv} */
public static native void nglGetMinmaxParameteriv(int target, int pname, long params);
/**
* Returns the integer value of the specified minmax parameter.
*
* @param target the minmax target. Must be:
{@link #GL_MINMAX MINMAX}
* @param pname the parameter to query
* @param params a buffer in which to place the returned value
*/
public static void glGetMinmaxParameteriv(int target, int pname, IntBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetMinmaxParameteriv(target, pname, memAddress(params));
}
/**
* Returns the integer value of the specified minmax parameter.
*
* @param target the minmax target. Must be:
{@link #GL_MINMAX MINMAX}
* @param pname the parameter to query
*/
public static int glGetMinmaxParameteri(int target, int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
IntBuffer params = stack.callocInt(1);
nglGetMinmaxParameteriv(target, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glGetMinmaxParameterfv ] ---
/** Unsafe version of: {@link #glGetMinmaxParameterfv GetMinmaxParameterfv} */
public static native void nglGetMinmaxParameterfv(int target, int pname, long params);
/**
* Float version of {@link #glGetMinmaxParameteriv GetMinmaxParameteriv}.
*
* @param target the minmax target. Must be:
{@link #GL_MINMAX MINMAX}
* @param pname the parameter to query
* @param params a buffer in which to place the returned value
*/
public static void glGetMinmaxParameterfv(int target, int pname, FloatBuffer params) {
if (CHECKS) {
check(params, 1);
}
nglGetMinmaxParameterfv(target, pname, memAddress(params));
}
/**
* Float version of {@link #glGetMinmaxParameteriv GetMinmaxParameteriv}.
*
* @param target the minmax target. Must be:
{@link #GL_MINMAX MINMAX}
* @param pname the parameter to query
*/
public static float glGetMinmaxParameterf(int target, int pname) {
MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();
try {
FloatBuffer params = stack.callocFloat(1);
nglGetMinmaxParameterfv(target, pname, memAddress(params));
return params.get(0);
} finally {
stack.setPointer(stackPointer);
}
}
// --- [ glBlendColor ] ---
/**
* Specifies the constant color Cc to be used in blending.
*
* @param red the red color component
* @param green the green color component
* @param blue the blue color component
* @param alpha the alpha color component
*/
public static native void glBlendColor(float red, float green, float blue, float alpha);
// --- [ glBlendEquation ] ---
/**
* Controls the blend equations used for per-fragment blending.
*
* @param mode the blend equation. One of: