![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 #ifndef COIN_SOGLCUBEMAPIMAGE_H 00002 #define COIN_SOGLCUBEMAPIMAGE_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) by Kongsberg Oil & Gas Technologies. 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 Kongsberg Oil & Gas Technologies 00018 * about acquiring a Coin Professional Edition License. 00019 * 00020 * See http://www.coin3d.org/ for more information. 00021 * 00022 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY. 00023 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00024 * 00025 \**************************************************************************/ 00026 00027 #include <Inventor/SbBasic.h> 00028 #include <Inventor/misc/SoGLImage.h> 00029 00030 class COIN_DLL_API SoGLCubeMapImage : public SoGLImage { 00031 typedef SoGLImage inherited; 00032 00033 public: 00034 00035 SoGLCubeMapImage(); 00036 virtual void unref(SoState * state = NULL); 00037 00038 static SoType getClassTypeId(void); 00039 virtual SoType getTypeId(void) const ; 00040 00041 enum Target { 00042 NEGATIVE_X = 0, 00043 POSITIVE_X, 00044 NEGATIVE_Y, 00045 POSITIVE_Y, 00046 NEGATIVE_Z, 00047 POSITIVE_Z, 00048 }; 00049 00050 void setCubeMapImage(const Target target, 00051 const unsigned char * bytes, 00052 const SbVec2s & size, 00053 const int numcomponents); 00054 00055 virtual void setData(const SbImage * image, 00056 const Wrap wraps = REPEAT, 00057 const Wrap wrapt = REPEAT, 00058 const float quality = 0.5f, 00059 const int border = 0, 00060 SoState * createinstate = NULL); 00061 00062 virtual void setData(const SbImage * image, 00063 const Wrap wraps, 00064 const Wrap wrapt, 00065 const Wrap wrapr, 00066 const float quality = 0.5f, 00067 const int border = 0, 00068 SoState * createinstate = NULL); 00069 00070 virtual SoGLDisplayList * getGLDisplayList(SoState * state); 00071 00072 00073 public: 00074 static void initClass(void); 00075 00076 private: 00077 virtual ~SoGLCubeMapImage(); 00078 00079 class SoGLCubeMapImageP * pimpl; 00080 friend class SoGLCubeMapImageP; 00081 static void cleanupClass(void); 00082 }; 00083 00084 #endif // !COIN_SOGLCUBEMAPIMAGE_H
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated for Coin by Doxygen 1.5.6.