OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ImageProcessor.h
Go to the documentation of this file.
1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
2  *
3  * This library is open source and may be redistributed and/or modified under
4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
5  * (at your option) any later version. The full license is in LICENSE file
6  * included with this distribution, and on the openscenegraph.org website.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * OpenSceneGraph Public License for more details.
12 */
13 
14 #ifndef OSGDB_IMAGEPROCESSOR
15 #define OSGDB_IMAGEPROCESSOR 1
16 
17 #include <osg/Object>
18 
19 namespace osgDB {
20 
22 {
23  public:
24 
26  osg::Object(true) {}
27 
29  osg::Object(rw,copyop) {}
30 
31  virtual ~ImageProcessor() {}
32 
34 
36  {
39  };
40 
42  {
47  };
48 
49  virtual void compress(osg::Image& /*image*/, osg::Texture::InternalFormatMode /*compressedFormat*/, bool /*generateMipMap*/, bool /*resizeToPowerOfTwo*/, CompressionMethod /*method*/, CompressionQuality /*quality*/) {}
50  virtual void generateMipMap(osg::Image& /*image*/, bool /*resizeToPowerOfTwo*/, CompressionMethod /*method*/) {}
51 };
52 
53 }
54 #endif
META_Object(osgDB, ImageProcessor)
Use CPU for compression even when GPU compression is available.
ImageProcessor(const ImageProcessor &rw, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
virtual void compress(osg::Image &, osg::Texture::InternalFormatMode, bool, bool, CompressionMethod, CompressionQuality)
InternalFormatMode
Definition: Texture.h:556
virtual void generateMipMap(osg::Image &, bool, CompressionMethod)
Object()
Definition: Object.h:65
Definition: Archive.h:24
Definition: AlphaFunc.h:19