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

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

/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opengl;

import static org.lwjgl.system.Checks.*;

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

Blending capability is extended by defining a constant color that can be included in blending equations. A typical usage is blending two RGB images. * Without the constant blend factor, one image must have an alpha channel with each pixel set to the desired blend factor.

* *

Promoted to core in {@link GL14 OpenGL 1.4}.

*/ public class EXTBlendColor { /** Accepted by the {@code sfactor} and {@code dfactor} parameters of BlendFunc. */ public static final int GL_CONSTANT_COLOR_EXT = 0x8001, GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002, GL_CONSTANT_ALPHA_EXT = 0x8003, GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004; /** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */ public static final int GL_BLEND_COLOR_EXT = 0x8005; static { GL.initialize(); } protected EXTBlendColor() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLCapabilities caps) { return checkFunctions( caps.glBlendColorEXT ); } // --- [ glBlendColorEXT ] --- public static native void glBlendColorEXT(float red, float green, float blue, float alpha); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy