OpenSceneGraph 3.6.5
ImageProcessor
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
19namespace osgDB {
20
22{
23 public:
24
26 osg::Object(true) {}
27
29 osg::Object(rw,copyop) {}
30
31 virtual ~ImageProcessor() {}
32
34
40
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
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
The osgDB library provides support for reading and writing scene graphs, providing a plugin framework...
Definition Archive:24
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Image class for encapsulating the storage texture image data.
Definition Image:179
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Object()
Construct an object.
Definition Object:69
InternalFormatMode
Definition Texture:581
ImageProcessor()
Definition ImageProcessor:25
CompressionMethod
Definition ImageProcessor:36
@ USE_CPU
Definition ImageProcessor:37
@ USE_GPU
Use CPU for compression even when GPU compression is available.
Definition ImageProcessor:38
virtual void compress(osg::Image &, osg::Texture::InternalFormatMode, bool, bool, CompressionMethod, CompressionQuality)
Definition ImageProcessor:49
CompressionQuality
Definition ImageProcessor:42
@ PRODUCTION
Definition ImageProcessor:45
@ NORMAL
Definition ImageProcessor:44
@ FASTEST
Definition ImageProcessor:43
@ HIGHEST
Definition ImageProcessor:46
virtual void generateMipMap(osg::Image &, bool, CompressionMethod)
Definition ImageProcessor:50
virtual ~ImageProcessor()
Definition ImageProcessor:31
META_Object(osgDB, ImageProcessor)
ImageProcessor(const ImageProcessor &rw, const osg::CopyOp &copyop=osg::CopyOp::SHALLOW_COPY)
Definition ImageProcessor:28

osg logo
Generated at Sun Jul 20 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.