00001 /*---------------------------------------------------------------------------*\ 00002 * OpenSG * 00003 * * 00004 * * 00005 * Copyright (C) 2000-2002 by the OpenSG Forum * 00006 * * 00007 * www.opensg.org * 00008 * * 00009 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de * 00010 * * 00011 \*---------------------------------------------------------------------------*/ 00012 /*---------------------------------------------------------------------------*\ 00013 * License * 00014 * * 00015 * This library is free software; you can redistribute it and/or modify it * 00016 * under the terms of the GNU Library General Public License as published * 00017 * by the Free Software Foundation, version 2. * 00018 * * 00019 * This library is distributed in the hope that it will be useful, but * 00020 * WITHOUT ANY WARRANTY; without even the implied warranty of * 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00022 * Library General Public License for more details. * 00023 * * 00024 * You should have received a copy of the GNU Library General Public * 00025 * License along with this library; if not, write to the Free Software * 00026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 00027 * * 00028 \*---------------------------------------------------------------------------*/ 00029 /*---------------------------------------------------------------------------*\ 00030 * Changes * 00031 * * 00032 * * 00033 * * 00034 * * 00035 * * 00036 * * 00037 \*---------------------------------------------------------------------------*/ 00038 00039 //--------------------------------------------------------------------------- 00040 // Includes 00041 //--------------------------------------------------------------------------- 00042 00043 #include <stdlib.h> 00044 #include <stdio.h> 00045 00046 #include <OSGConfig.h> 00047 #include <OSGGL.h> 00048 00049 #include "OSGColorBufferViewport.h" 00050 00051 OSG_USING_NAMESPACE 00052 00064 /*----------------------- constructors & destructors ----------------------*/ 00065 00066 ColorBufferViewport::ColorBufferViewport(void) : 00067 Inherited() 00068 { 00069 } 00070 00071 ColorBufferViewport::ColorBufferViewport(const ColorBufferViewport &source) : 00072 Inherited(source) 00073 { 00074 } 00075 00076 ColorBufferViewport::~ColorBufferViewport(void) 00077 { 00078 } 00079 00080 /*----------------------------- class specific ----------------------------*/ 00081 00082 void ColorBufferViewport::initMethod (void) 00083 { 00084 } 00085 00086 void ColorBufferViewport::changed(BitVector whichField, UInt32 origin) 00087 { 00088 Inherited::changed(whichField, origin); 00089 } 00090 00091 void ColorBufferViewport::dump( UInt32 , 00092 const BitVector ) const 00093 { 00094 SLOG << "Dump ColorBufferViewport NI" << std::endl; 00095 } 00096 00097 void ColorBufferViewport::activateSize(void) 00098 { 00099 Inherited::activateSize(); 00100 } 00101 00102 void ColorBufferViewport::activate(void) 00103 { 00104 glColorMask(getRed(), getGreen(), getBlue(), getAlpha()); 00105 Inherited::activate(); 00106 } 00107 00108 void ColorBufferViewport::deactivate(void) 00109 { 00110 Inherited::deactivate(); 00111 glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); 00112 } 00113 00114 void ColorBufferViewport::draw( DrawAction * action ) 00115 { 00116 Inherited::draw(action); 00117 } 00118 00119 void ColorBufferViewport::render(RenderActionBase *action) 00120 { 00121 Inherited::render(action); 00122 } 00123 00124 /*------------------------------------------------------------------------*/ 00125 /* cvs id's */ 00126 00127 #ifdef OSG_SGI_CC 00128 #pragma set woff 1174 00129 #endif 00130 00131 #ifdef OSG_LINUX_ICC 00132 #pragma warning( disable : 177 ) 00133 #endif 00134 00135 namespace 00136 { 00137 static Char8 cvsid_cpp [] = "@(#)$Id: $"; 00138 static Char8 cvsid_hpp [] = OSGCOLORBUFFERVIEWPORTBASE_HEADER_CVSID; 00139 static Char8 cvsid_inl [] = OSGCOLORBUFFERVIEWPORTBASE_INLINE_CVSID; 00140 00141 static Char8 cvsid_fields_hpp[] = OSGCOLORBUFFERVIEWPORTFIELDS_HEADER_CVSID; 00142 } 00143 00144 #ifdef __sgi 00145 #pragma reset woff 1174 00146 #endif 00147
1.6.1