![]() |
http://www.sim.no http://www.coin3d.org |
00001 #ifndef COIN_SOTEXTURECOMBINE_H 00002 #define COIN_SOTEXTURECOMBINE_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) 1998-2007 by Systems in Motion. All rights reserved. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * ("GPL") version 2 as published by the Free Software Foundation. 00012 * See the file LICENSE.GPL at the root directory of this source 00013 * distribution for additional information about the GNU GPL. 00014 * 00015 * For using Coin with software that can not be combined with the GNU 00016 * GPL, and for taking advantage of the additional benefits of our 00017 * support services, please contact Systems in Motion about acquiring 00018 * a Coin Professional Edition License. 00019 * 00020 * See http://www.coin3d.org/ for more information. 00021 * 00022 * Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY. 00023 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00024 * 00025 \**************************************************************************/ 00026 00027 #include <Inventor/nodes/SoSubNode.h> 00028 #include <Inventor/fields/SoSFString.h> 00029 #include <Inventor/fields/SoMFEnum.h> 00030 #include <Inventor/fields/SoSFFloat.h> 00031 #include <Inventor/fields/SoSFVec4f.h> 00032 #include <Inventor/elements/SoTextureCombineElement.h> 00033 00034 class COIN_DLL_API SoTextureCombine : public SoNode { 00035 typedef SoNode inherited; 00036 00037 SO_NODE_HEADER(SoTextureCombine); 00038 00039 public: 00040 static void initClass(void); 00041 SoTextureCombine(void); 00042 00043 enum Source { 00044 PRIMARY_COLOR = SoTextureCombineElement::PRIMARY_COLOR, 00045 TEXTURE = SoTextureCombineElement::TEXTURE, 00046 CONSTANT = SoTextureCombineElement::CONSTANT, 00047 PREVIOUS = SoTextureCombineElement::PREVIOUS 00048 }; 00049 enum Operand { 00050 SRC_COLOR = SoTextureCombineElement::SRC_COLOR, 00051 ONE_MINUS_SRC_COLOR = SoTextureCombineElement::ONE_MINUS_SRC_COLOR, 00052 SRC_ALPHA = SoTextureCombineElement::SRC_ALPHA, 00053 ONE_MINUS_SRC_ALPHA = SoTextureCombineElement::ONE_MINUS_SRC_ALPHA 00054 }; 00055 enum Operation { 00056 REPLACE = SoTextureCombineElement::REPLACE, 00057 MODULATE = SoTextureCombineElement::MODULATE, 00058 ADD = SoTextureCombineElement::ADD, 00059 ADD_SIGNED = SoTextureCombineElement::ADD_SIGNED, 00060 SUBTRACT = SoTextureCombineElement::SUBTRACT, 00061 INTERPOLATE = SoTextureCombineElement::INTERPOLATE, 00062 DOT3_RGB = SoTextureCombineElement::DOT3_RGB, 00063 DOT3_RGBA = SoTextureCombineElement::DOT3_RGBA 00064 }; 00065 00066 SoMFEnum rgbSource; 00067 SoMFEnum alphaSource; 00068 00069 SoMFEnum rgbOperand; 00070 SoMFEnum alphaOperand; 00071 00072 SoSFEnum rgbOperation; 00073 SoSFEnum alphaOperation; 00074 00075 SoSFFloat rgbScale; 00076 SoSFFloat alphaScale; 00077 00078 SoSFVec4f constantColor; 00079 00080 virtual void doAction(SoAction * action); 00081 virtual void callback(SoCallbackAction * action); 00082 virtual void GLRender(SoGLRenderAction * action); 00083 virtual void pick(SoPickAction * action); 00084 00085 protected: 00086 virtual ~SoTextureCombine(); 00087 }; 00088 00089 #endif // !COIN_SOTEXTURECOMBINE_H
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Mon Feb 28 2011 10:11:58 for Coin by Doxygen. 1.7.3