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

org.lwjgl.opengles.NVPolygonMode Maven / Gradle / Ivy

Go to download

A royalty-free, cross-platform API for full-function 2D and 3D graphics on embedded systems - including consoles, phones, appliances and vehicles.

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

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

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

This extension adds a PolygonModeNV entry point which can be used to change the polygon rasterization method. Using this extension, state consistent * with rendering triangle primitives can trivially be toggled to render primitives as lines or points. In addition, independent enables are provided for * polygon offset in conjunction with these new point and line polygon modes.

* *

This introduces a level of support for PolygonMode comparable with the OpenGL 4.3 core profile.

*/ public class NVPolygonMode { /** Accepted by the {@code pname} parameter to GetIntegerv. */ public static final int GL_POLYGON_MODE_NV = 0xB40; /** Accepted by the {@code pname} parameter to IsEnabled. */ public static final int GL_POLYGON_OFFSET_POINT_NV = 0x2A01, GL_POLYGON_OFFSET_LINE_NV = 0x2A02; /** Returned by GetIntegerv, GetFloatv, and GetInteger64v when {@code pname} is POLYGON_MODE_NV. */ public static final int GL_POINT_NV = 0x1B00, GL_LINE_NV = 0x1B01, GL_FILL_NV = 0x1B02; static { GLES.initialize(); } protected NVPolygonMode() { throw new UnsupportedOperationException(); } static boolean isAvailable(GLESCapabilities caps) { return checkFunctions( caps.glPolygonModeNV ); } // --- [ glPolygonModeNV ] --- public static native void glPolygonModeNV(int face, int mode); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy