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

pandatool/src/egg-palettize/textureRequest.cxx

Go to the documentation of this file.
00001 // Filename: textureRequest.cxx
00002 // Created by:  drose (30Nov00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) 2001, Disney Enterprises, Inc.  All rights reserved
00008 //
00009 // All use of this software is subject to the terms of the Panda 3d
00010 // Software license.  You should have received a copy of this license
00011 // along with this source code; you will also find a current copy of
00012 // the license at http://www.panda3d.org/license.txt .
00013 //
00014 // To contact the maintainers of this program write to
00015 // panda3d@yahoogroups.com .
00016 //
00017 ////////////////////////////////////////////////////////////////////
00018 
00019 #include "textureRequest.h"
00020 #include "palettizer.h"
00021 
00022 ////////////////////////////////////////////////////////////////////
00023 //     Function: TextureRequest::Constructor
00024 //       Access: Public
00025 //  Description:
00026 ////////////////////////////////////////////////////////////////////
00027 TextureRequest::
00028 TextureRequest() {
00029   _got_size = false;
00030   _got_num_channels = false;
00031   _x_size = 0;
00032   _y_size = 0;
00033   _num_channels = 0;
00034   _format = EggTexture::F_unspecified;
00035   _force_format = false;
00036   _generic_format = false;
00037   _minfilter = EggTexture::FT_unspecified;
00038   _magfilter = EggTexture::FT_unspecified;
00039   _anisotropic_degree = 0;
00040   _alpha_mode = EggRenderMode::AM_unspecified;
00041   _omit = false;
00042   _margin = 0;
00043   _coverage_threshold = 0.0;
00044 }
00045 
00046 ////////////////////////////////////////////////////////////////////
00047 //     Function: TextureRequest::pre_txa_file
00048 //       Access: Public
00049 //  Description: Sets some state up that must be set prior to reading
00050 //               the .txa file.
00051 ////////////////////////////////////////////////////////////////////
00052 void TextureRequest::
00053 pre_txa_file() {
00054   _margin = pal->_margin;
00055   _coverage_threshold = pal->_coverage_threshold;
00056 }

Generated on Fri May 2 03:18:32 2003 for Panda-Tool by doxygen1.3