#include <cassert>
#include "std/support.H"
#include "glew/glew.H"
#include "disp/color.H"
#include "mlib/points.H"
Include dependency graph for gl_util.H:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | float4 |
Representation of an array of 4 floats. Convenient for passing COLOR + alpha, Wpt, or Wvec to OpenGL:. More... | |
class | float3 |
Representation of an array of 3 floats. Convenient for passing a Wpt, Wvec, or COLOR to OpenGL. More... | |
class | float2 |
Representation of an array of 2 floats. Convenient for passing a PIXEL or other 2D type to OpenGL. More... | |
class | float16 |
Representation of an array of 16 floats. Really only seems applicable for Wtransf, thus that is the only variety provided. More... | |
Functions | |
GLenum | light_i (int i) |
Convenience function. E.g.: light_i(0) returns GL_LIGHT0. | |
void | GL_COL (CCOLOR &c, double a) |
Send a color and alpha value to OpenGL. | |
void | GL_MAT_COLOR (GLenum face, GLenum pname, const COLOR &c, double a) |
Set OpenGL material color values given a COLOR and an alpha value. |
Definition in file gl_util.H.
|
|
Set OpenGL material color values given a COLOR and an alpha value.
Definition at line 236 of file gl_util.H. References GL_AMBIENT, GL_AMBIENT_AND_DIFFUSE, GL_BACK, GL_DIFFUSE, GL_EMISSION, GL_FRONT, GL_FRONT_AND_BACK, GL_SPECULAR, and glMaterialfv(). Referenced by SmoothShadeTexture::draw(). |
|
Convenience function. E.g.: light_i(0) returns GL_LIGHT0.
Definition at line 211 of file gl_util.H. References GL_LIGHT0, GL_LIGHT1, GL_LIGHT2, GL_LIGHT3, GL_LIGHT4, GL_LIGHT5, GL_LIGHT6, and GL_LIGHT7. Referenced by GL_VIEW::setup_light(). |