/*********************************************************************** * mt4j Copyright (c) 2008 - 2009 C.Ruff, Fraunhofer-Gesellschaft All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * ***********************************************************************/ package org.mt4j.util.opengl; /** * This interface class defines constants used in the glgraphics package. * Original file Copyright (c) by Andr�s Colubri */ public interface GLConstants { /** This constant identifies the GLGraphics renderer. */ static final String GLGRAPHICS = "codeanticode.glgraphics.GLGraphics"; /** This constant identifies the texture target GL_TEXTURE_2D, that is, textures with normalized coordinates. */ public static final int NORMAL = 0; /** This constant identifies the texture target GL_TEXTURE_RECTANGLE, that is, textures with non-normalized coordinates. */ public static final int RECTANGULAR = 1; /** This constant identifies the texture target GL_TEXTURE_1D, that is, one-dimensional textures. */ public static final int ONEDIM = 2; /** This constant identifies the texture internal format GL_RGBA: 4 color components of 8 bits each. */ public static final int COLOR = 0; /** This constant identifies the texture internal format GL_RGBA16F_ARB: 4 float compontents of 16 bits each. */ public static final int FLOAT4 = 1; /** This constant identifies the texture internal format GL_RGBA32F_ARB: 4 float compontents of 32 bits each. */ public static final int DOUBLE4 = 2; /** This constant identifies a texture with only 1 color component. */ public static final int TEX1 = 0; /** This constant identifies a texture with 3 color components. */ public static final int TEX3 = 1; /** This constant identifies a texture with 4 color components. */ public static final int TEX4 = 2; /** This constant identifies an integer texture buffer. */ public static final int TEX_INT = 0; /** This constant identifies an unsigned byte texture buffer. */ public static final int TEX_UBYTE = 1; /** This constant identifies the nearest texture filter . */ public static final int NEAREST = 0; /** This constant identifies the linear texture filter . */ public static final int LINEAR = 1; /** This constant identifies the nearest/nearest function to build mipmaps . */ public static final int NEAREST_MIPMAP_NEAREST = 2; /** This constant identifies the linear/nearest function to build mipmaps . */ public static final int LINEAR_MIPMAP_NEAREST = 3; /** This constant identifies the nearest/linear function to build mipmaps . */ public static final int NEAREST_MIPMAP_LINEAR = 4; /** This constant identifies the linear/linear function to build mipmaps . */ public static final int LINEAR_MIPMAP_LINEAR = 5; /** The Constant GL_DEPTH_STENCIL. */ public static final int GL_DEPTH_STENCIL = 0x84F9; /** The Constant GL_UNSIGNED_INT_24_8. */ public static final int GL_UNSIGNED_INT_24_8 = 0x84FA; /** The Constant GL_DEPTH24_STENCIL8. */ public static final int GL_DEPTH24_STENCIL8 = 0x88F0; }