Panda3D
 All Classes Functions Variables Enumerations
textureRequest.cxx
00001 // Filename: textureRequest.cxx
00002 // Created by:  drose (30Nov00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "textureRequest.h"
00016 #include "palettizer.h"
00017 
00018 ////////////////////////////////////////////////////////////////////
00019 //     Function: TextureRequest::Constructor
00020 //       Access: Public
00021 //  Description:
00022 ////////////////////////////////////////////////////////////////////
00023 TextureRequest::
00024 TextureRequest() {
00025   _got_size = false;
00026   _got_num_channels = false;
00027   _x_size = 0;
00028   _y_size = 0;
00029   _num_channels = 0;
00030   _format = EggTexture::F_unspecified;
00031   _force_format = false;
00032   _generic_format = false;
00033   _keep_format = false;
00034   _minfilter = EggTexture::FT_unspecified;
00035   _magfilter = EggTexture::FT_unspecified;
00036   _anisotropic_degree = 0;
00037   _alpha_mode = EggRenderMode::AM_unspecified;
00038   _wrap_u = EggTexture::WM_unspecified;
00039   _wrap_v = EggTexture::WM_unspecified;
00040   _omit = false;
00041   _margin = 0;
00042   _coverage_threshold = 0.0;
00043 }
00044 
00045 ////////////////////////////////////////////////////////////////////
00046 //     Function: TextureRequest::pre_txa_file
00047 //       Access: Public
00048 //  Description: Sets some state up that must be set prior to reading
00049 //               the .txa file.
00050 ////////////////////////////////////////////////////////////////////
00051 void TextureRequest::
00052 pre_txa_file() {
00053   _margin = pal->_margin;
00054   _coverage_threshold = pal->_coverage_threshold;
00055 }
 All Classes Functions Variables Enumerations