proj home

Files   Classes   Functions   Hierarchy  

gobjglBlendFunc Class Reference

Transparency. More...

#include <gobj.h>

Inheritance diagram for gobjglBlendFunc:
Collaboration diagram for gobjglBlendFunc:

List of all members.

Public Member Functions

 gobjglBlendFunc (GLenum sfactor_, GLenum dfactor_)
void draw ()
 Draw the object.

Public Attributes

GLenum sfactor
GLenum dfactor


Detailed Description

Transparency.

Example
  gobjpush(new gobjglBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA));
  gobjpush(new gobjglEnable(GL_BLEND));
  gobjpush(new gobjglColor4ub(255,215,0,40));
  gobjpush(new d3halfspacedisplay<HS>(h.halfspace));
  gobjpush(new gobjglDisable(GL_BLEND));

Definition at line 1040 of file gobj.h.


Constructor & Destructor Documentation

gobjglBlendFunc::gobjglBlendFunc ( GLenum  sfactor_,
GLenum  dfactor_ 
) [inline]

Definition at line 1047 of file gobj.h.

01048     : sfactor(sfactor_), dfactor(dfactor_) {}


Member Function Documentation

void gobjglBlendFunc::draw (  )  [inline, virtual]

Draw the object.

Implements gobj.

Definition at line 1050 of file gobj.h.

References dfactor, GOBJDEBUGCODE, and sfactor.

01051     { GOBJDEBUGCODE glBlendFunc(sfactor,dfactor); }


Member Data Documentation

Definition at line 1045 of file gobj.h.

Referenced by draw().

Definition at line 1044 of file gobj.h.

Referenced by draw().


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:49:58 2011 for Chelton Evans Source by  doxygen 1.5.8