Документ взят из кэша поисковой машины. Адрес оригинального документа : http://astro.uni-altai.ru/~aw/stellarium/api/classStelTextureMgr.html
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 05:13:54 2012
Кодировка:
StelTextureMgr Class Reference
   Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure
Public Member Functions
StelTextureMgr Class Reference

Manage textures loading. More...

#include <StelTextureMgr.hpp>

List of all members.

Public Member Functions

void init ()
 Initialize some variable from the openGL contex.
StelTextureSP createTexture (const QString &filename, const StelTexture::StelTextureParams &params=StelTexture::StelTextureParams())
 Load an image from a file and create a new texture from it.
StelTextureSP createTextureThread (const QString &url, const StelTexture::StelTextureParams &params=StelTexture::StelTextureParams(), const QString &fileExtension=QString(), bool lazyLoading=true)
 Load an image from a file and create a new texture from it in a new thread.

Detailed Description

Manage textures loading.

It provides method for loading images in a separate thread.


Member Function Documentation

Load an image from a file and create a new texture from it.

Parameters:
filenamethe texture file name, can be absolute path if starts with '/' otherwise the file will be looked in stellarium standard textures directories.
paramsthe texture creation parameters.
StelTextureSP StelTextureMgr::createTextureThread ( const QString &  url,
const StelTexture::StelTextureParams params = StelTexture::StelTextureParams(),
const QString &  fileExtension = QString(),
bool  lazyLoading = true 
)

Load an image from a file and create a new texture from it in a new thread.

Parameters:
urlthe texture file name or URL, can be absolute path if starts with '/' otherwise the file will be looked in stellarium standard textures directories.
paramsthe texture creation parameters.
fileExtensionthe file extension to assume. If not set the extension is determined from url
lazyLoadingdefine whether the texture should be actually loaded only when needed, i.e. when bind() is called the first time.

Initialize some variable from the openGL contex.

Must be called after the creation of the GLContext.