Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

node/blend.cpp

Go to the documentation of this file.
00001 #include "blend.h"
00002 
00007 GltBlend::GltBlend(const GLenum sfactor,const GLenum dfactor)
00008 : _sfactor(sfactor), _dfactor(dfactor)
00009 {
00010 }
00011 
00012 GltBlend::~GltBlend()
00013 {
00014 }
00015 
00016 void 
00017 GltBlend::draw() const
00018 {
00019     glPushAttrib(GL_ENABLE_BIT | GL_COLOR_BUFFER_BIT);
00020 
00021         glEnable(GL_BLEND);
00022         glBlendFunc(_sfactor,_dfactor);
00023         GltShapes::draw();
00024         glDisable(GL_BLEND);
00025 
00026     glPopAttrib();
00027 }
00028 

Generated on Tue Nov 5 11:11:05 2002 for GLT by doxygen1.2.18