osgEarth 2.1.1
|
#include "OSGOptions"
#include <osgEarth/HTTPClient>
#include <osgEarth/FileUtils>
#include <osgEarth/ImageUtils>
#include <osgDB/FileNameUtils>
#include <cstring>
Go to the source code of this file.
Classes | |
struct | CopyAndSetAlpha |
class | OSGTileSource |
class | OSGTileSourceFactory |
Defines | |
#define | LC "[OSG Driver] " |
#define | LOG2(X) (::log((double)(X))/::log(2.0)) |
Functions | |
static osg::Image * | makeRGBAandComputeAlpha (osg::Image *image) |
#define LC "[OSG Driver] " |
Definition at line 28 of file OSGTileSource.cpp.
#define LOG2 | ( | X | ) | (::log((double)(X))/::log(2.0)) |
Definition at line 30 of file OSGTileSource.cpp.
static osg::Image* makeRGBAandComputeAlpha | ( | osg::Image * | image | ) | [static] |
Definition at line 45 of file OSGTileSource.cpp.
{ osg::Image* result = new osg::Image(); result->allocateImage( image->s(), image->t(), image->r(), GL_RGBA, GL_UNSIGNED_BYTE ); result->setInternalTextureFormat( GL_RGBA8 ); ImageUtils::PixelVisitor<CopyAndSetAlpha>().accept( image, result ); return result; }