Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

float3 Class Reference

Representation of an array of 3 floats. Convenient for passing a Wpt, Wvec, or COLOR to OpenGL. More...

#include <gl_util.H>

List of all members.

Public Member Functions

 operator GLfloat * ()
 Define implicit cast from float3 to GLfloat*:.
Constructors
 float3 (CWpt &p)
 float3 (CWvec &v)
 float3 (CNDCZpt &p)
 float3 (CNDCZvec &v)
 float3 (CCOLOR &c)

Private Attributes

GLfloat _data [3]


Detailed Description

Representation of an array of 3 floats. Convenient for passing a Wpt, Wvec, or COLOR to OpenGL.

Examples:

// Send a Wvec to a GLSL shader Wvec v; glUniform3fv(float3(v));

Definition at line 82 of file gl_util.H.


Constructor & Destructor Documentation

float3::float3 CWpt p  )  [inline]
 

Definition at line 86 of file gl_util.H.

References _data.

float3::float3 CWvec v  )  [inline]
 

Definition at line 91 of file gl_util.H.

References _data.

float3::float3 CNDCZpt p  )  [inline]
 

Definition at line 96 of file gl_util.H.

References _data.

float3::float3 CNDCZvec v  )  [inline]
 

Definition at line 101 of file gl_util.H.

References _data.

float3::float3 CCOLOR c  )  [inline]
 

Definition at line 106 of file gl_util.H.

References _data.


Member Function Documentation

float3::operator GLfloat *  )  [inline]
 

Define implicit cast from float3 to GLfloat*:.

Definition at line 114 of file gl_util.H.

References _data.


Member Data Documentation

GLfloat float3::_data[3] [private]
 

Definition at line 117 of file gl_util.H.

Referenced by float3(), and operator GLfloat *().


The documentation for this class was generated from the following file:
Generated on Mon Sep 18 11:45:22 2006 for jot by  doxygen 1.4.4