JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
GLLightingFunc.java
Go to the documentation of this file.
1/*
2 * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
3 * Copyright 2010 JogAmp Community. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without modification, are
6 * permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice, this list of
9 * conditions and the following disclaimer.
10 *
11 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
12 * of conditions and the following disclaimer in the documentation and/or other materials
13 * provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY JogAmp Community ``AS IS'' AND ANY EXPRESS OR IMPLIED
16 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JogAmp Community OR
18 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
21 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * The views and conclusions contained in the software and documentation are those of the
26 * authors and should not be interpreted as representing official policies, either expressed
27 * or implied, of JogAmp Community.
28 */
29
30package com.jogamp.opengl.fixedfunc;
31
32public interface GLLightingFunc {
33 public static final int GL_LIGHT0 = 0x4000;
34 public static final int GL_LIGHT1 = 0x4001;
35 public static final int GL_LIGHT2 = 0x4002;
36 public static final int GL_LIGHT3 = 0x4003;
37 public static final int GL_LIGHT4 = 0x4004;
38 public static final int GL_LIGHT5 = 0x4005;
39 public static final int GL_LIGHT6 = 0x4006;
40 public static final int GL_LIGHT7 = 0x4007;
41 public static final int GL_LIGHTING = 0xB50;
42 public static final int GL_AMBIENT = 0x1200;
43 public static final int GL_DIFFUSE = 0x1201;
44 public static final int GL_SPECULAR = 0x1202;
45 public static final int GL_POSITION = 0x1203;
46 public static final int GL_SPOT_DIRECTION = 0x1204;
47 public static final int GL_SPOT_EXPONENT = 0x1205;
48 public static final int GL_SPOT_CUTOFF = 0x1206;
49 public static final int GL_CONSTANT_ATTENUATION = 0x1207;
50 public static final int GL_LINEAR_ATTENUATION = 0x1208;
51 public static final int GL_QUADRATIC_ATTENUATION = 0x1209;
52 public static final int GL_EMISSION = 0x1600;
53 public static final int GL_SHININESS = 0x1601;
54 public static final int GL_AMBIENT_AND_DIFFUSE = 0x1602;
55 public static final int GL_COLOR_MATERIAL = 0xB57;
56 public static final int GL_NORMALIZE = 0xBA1;
57
58 public static final int GL_FLAT = 0x1D00;
59 public static final int GL_SMOOTH = 0x1D01;
60
61 public void glLightfv(int light, int pname, java.nio.FloatBuffer params);
62 public void glLightfv(int light, int pname, float[] params, int params_offset);
63 public void glMaterialf(int face, int pname, float param);
64 public void glMaterialfv(int face, int pname, java.nio.FloatBuffer params);
65 public void glMaterialfv(int face, int pname, float[] params, int params_offset);
66 public void glColor4f(float red, float green, float blue, float alpha);
67 public void glShadeModel(int mode);
68
69}
70
void glMaterialfv(int face, int pname, java.nio.FloatBuffer params)
void glMaterialfv(int face, int pname, float[] params, int params_offset)
void glLightfv(int light, int pname, float[] params, int params_offset)
void glMaterialf(int face, int pname, float param)
void glColor4f(float red, float green, float blue, float alpha)
void glLightfv(int light, int pname, java.nio.FloatBuffer params)