Home · All Namespaces · All Classes · Functions · Coding Style · Plugins · File Structure

JpgLoader Class Reference

Define a JPG loader. More...

#include <StelTextureMgr.hpp>

Inherits ImageLoader.

List of all members.

Static Public Member Functions

static bool loadFromMemory (const QByteArray &data, TexInfo &texinfo)

Detailed Description

Define a JPG loader.

This implementation supports LUMINANCE or RGB.

Member Function Documentation

static bool JpgLoader::loadFromMemory ( const QByteArray &  data,
TexInfo &  texinfo 
) [static]

Load the jpeg data from a buffer already in memory.

The implementation doesn't use the Qt loading for performances reasons.

data the array containing the raw compressed image bytes
texinfo the texinfo to generate
false in case of loading error

Generated on Mon Feb 2 17:23:48 2009 for Stellarium by  doxygen 1.5.5