PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "pandabase.h"
#include "texture.h"
#include "config_gobj.h"
#include "config_putil.h"
#include "texturePool.h"
#include "textureContext.h"
#include "bamCache.h"
#include "bamCacheRecord.h"
#include "datagram.h"
#include "datagramIterator.h"
#include "bamReader.h"
#include "bamWriter.h"
#include "string_utils.h"
#include "preparedGraphicsObjects.h"
#include "pnmImage.h"
#include "pnmReader.h"
#include "pfmFile.h"
#include "virtualFileSystem.h"
#include "datagramInputFile.h"
#include "datagramOutputFile.h"
#include "bam.h"
#include "zStream.h"
#include "indent.h"
#include "cmath.h"
#include "pStatTimer.h"
#include "pbitops.h"
#include "streamReader.h"
#include "texturePeeker.h"
#include "convert_srgb.h"
#include <stddef.h>
Go to the source code of this file.
Functions | |
istream & | operator >> (istream &in, Texture::QualityLevel &tql) |
ostream & | operator<< (ostream &out, Texture::TextureType tt) |
ostream & | operator<< (ostream &out, Texture::ComponentType ct) |
ostream & | operator<< (ostream &out, Texture::Format f) |
ostream & | operator<< (ostream &out, Texture::CompressionMode cm) |
ostream & | operator<< (ostream &out, Texture::QualityLevel tql) |
PT (Texture) Texture | |
Constructs a new Texture object from the txo file. More... | |
PT (TexturePeeker) Texture | |
Returns a TexturePeeker object that can be used to examine the individual texels stored within this Texture by (u, v) coordinate. More... | |
PT (AsyncFuture) Texture | |
Indicates that the texture should be enqueued to be prepared in the indicated prepared_objects at the beginning of the next frame. More... | |
Variables | |
ConfigVariableEnum< Texture::QualityLevel > | texture_quality_level ("texture-quality-level", Texture::QL_normal, PRC_DESC("This specifies a global quality level for all textures. You " "may specify either fastest, normal, or best. This actually " "affects the meaning of Texture::set_quality_level(QL_default), " "so it may be overridden on a per-texture basis. This generally " "only has an effect when using the tinydisplay software renderer; " "it has little or no effect on normal, hardware-accelerated " "renderers. See Texture::set_quality_level().")) |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file texture.cxx.
PT | ( | Texture | ) |
Constructs a new Texture object from the txo file.
The internal implementation of operator =().
A factory function to make a new Texture, used to pass to the TexturePool.
This is similar to Texture::read_txo(), but it constructs and returns a new object, which allows it to return a subclass of Texture (for instance, a movie texture).
Pass a real filename if it is available, or empty string if it is not.
Assumes the lock is already held on both Textures.
Definition at line 854 of file texture.cxx.
References DatagramInputFile::open(), and DatagramInputFile::read_header().
PT | ( | TexturePeeker | ) |
Returns a TexturePeeker object that can be used to examine the individual texels stored within this Texture by (u, v) coordinate.
If the texture has a ram image resident, that image is used. If it does not have a full ram image but does have a simple_ram_image resident, that image is used instead. If neither image is resident the full image is reloaded.
Returns NULL if the texture cannot find an image to load, or the texture format is incompatible.
Definition at line 1407 of file texture.cxx.
PT | ( | AsyncFuture | ) |
Indicates that the texture should be enqueued to be prepared in the indicated prepared_objects at the beginning of the next frame.
This will ensure the texture is already loaded into texture memory if it is expected to be rendered soon.
Use this function instead of prepare_now() to preload textures from a user interface standpoint.
Definition at line 1428 of file texture.cxx.