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

org.lwjgl.opengl.EXTBlendColor 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 org.lwjgl.system.*;

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(@NativeType("GLfloat") float red, @NativeType("GLfloat") float green, @NativeType("GLfloat") float blue, @NativeType("GLfloat") float alpha); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy