Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

texture.cxx File Reference

#include "pandabase.h"
#include "texture.h"
#include "config_gobj.h"
#include "texturePool.h"
#include "textureContext.h"
#include "datagram.h"
#include "datagramIterator.h"
#include "bamReader.h"
#include "bamWriter.h"
#include "string_utils.h"
#include <stddef.h>

Go to the source code of this file.

Functions

int up_to_power_2 (int value)
int down_to_power_2 (int value)
void consider_rescale (PNMImage &pnmimage, const string &name)
void consider_downgrade (PNMImage &pnmimage, int num_channels, const string &name)


Function Documentation

void consider_downgrade PNMImage pnmimage,
int  num_channels,
const string &  name
[static]
 

Definition at line 112 of file texture.cxx.

References PNMImageHeader::get_num_channels(), and PNMImage::set_num_channels().

Referenced by Texture::read().

void consider_rescale PNMImage pnmimage,
const string &  name
[static]
 

Definition at line 69 of file texture.cxx.

References down_to_power_2(), PNMImageHeader::get_maxval(), PNMImageHeader::get_num_channels(), PNMImageHeader::get_type(), PNMImageHeader::get_x_size(), PNMImageHeader::get_y_size(), max_texture_dimension, PNMImage::quick_filter_from(), and up_to_power_2().

Referenced by Texture::read().

int down_to_power_2 int  value  )  [static]
 

Definition at line 55 of file texture.cxx.

References x.

Referenced by consider_rescale().

int up_to_power_2 int  value  )  [static]
 

Definition at line 41 of file texture.cxx.

References x.

Referenced by consider_rescale().


Generated on Fri Apr 18 00:11:04 2003 for Panda by doxygen1.3