OSG
3.4.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
osg_head
include
osgDB
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
21
class
ImageProcessor
:
public
osg::Object
22
{
23
public
:
24
25
ImageProcessor
():
26
osg
::
Object
(true) {}
27
28
ImageProcessor
(
const
ImageProcessor
& rw,
const
osg::CopyOp
& copyop=
osg::CopyOp::SHALLOW_COPY
):
29
osg
::
Object
(rw,copyop) {}
30
31
virtual
~ImageProcessor
() {}
32
33
META_Object
(
osgDB
,
ImageProcessor
);
34
35
enum
CompressionMethod
36
{
37
USE_CPU
,
38
USE_GPU
39
};
40
41
enum
CompressionQuality
42
{
43
FASTEST
,
44
NORMAL
,
45
PRODUCTION
,
46
HIGHEST
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
osgDB::ImageProcessor::META_Object
META_Object(osgDB, ImageProcessor)
osgDB::ImageProcessor::CompressionQuality
CompressionQuality
Definition:
ImageProcessor.h:41
osg::Image
Definition:
Image.h:138
osg::Object
Definition:
Object.h:56
osgDB::ImageProcessor::USE_GPU
Use CPU for compression even when GPU compression is available.
Definition:
ImageProcessor.h:38
osgDB::ImageProcessor::ImageProcessor
ImageProcessor(const ImageProcessor &rw, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition:
ImageProcessor.h:28
osg::CopyOp::SHALLOW_COPY
Definition:
CopyOp.h:47
osgDB::ImageProcessor::FASTEST
Definition:
ImageProcessor.h:43
osgDB::ImageProcessor
Definition:
ImageProcessor.h:21
osgDB::ImageProcessor::compress
virtual void compress(osg::Image &, osg::Texture::InternalFormatMode, bool, bool, CompressionMethod, CompressionQuality)
Definition:
ImageProcessor.h:49
osg::Texture::InternalFormatMode
InternalFormatMode
Definition:
Texture.h:556
osgDB::ImageProcessor::generateMipMap
virtual void generateMipMap(osg::Image &, bool, CompressionMethod)
Definition:
ImageProcessor.h:50
osg::Object::Object
Object()
Definition:
Object.h:65
osgDB
Definition:
Archive.h:24
osgDB::ImageProcessor::ImageProcessor
ImageProcessor()
Definition:
ImageProcessor.h:25
osg::CopyOp
Definition:
CopyOp.h:40
osgDB::ImageProcessor::NORMAL
Definition:
ImageProcessor.h:44
osgDB::ImageProcessor::HIGHEST
Definition:
ImageProcessor.h:46
osg
Definition:
AlphaFunc.h:19
osgDB::ImageProcessor::PRODUCTION
Definition:
ImageProcessor.h:45
osgDB::ImageProcessor::USE_CPU
Definition:
ImageProcessor.h:37
osgDB::ImageProcessor::CompressionMethod
CompressionMethod
Definition:
ImageProcessor.h:35
osgDB::ImageProcessor::~ImageProcessor
virtual ~ImageProcessor()
Definition:
ImageProcessor.h:31
Generated on Tue Oct 4 2016 19:20:47 for OSG by
1.8.8