Panda3D
pandatool
src
palettizer
textureRequest.cxx
1
// Filename: textureRequest.cxx
2
// Created by: drose (30Nov00)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#include "textureRequest.h"
16
#include "palettizer.h"
17
18
////////////////////////////////////////////////////////////////////
19
// Function: TextureRequest::Constructor
20
// Access: Public
21
// Description:
22
////////////////////////////////////////////////////////////////////
23
TextureRequest::
24
TextureRequest() {
25
_got_size =
false
;
26
_got_num_channels =
false
;
27
_x_size = 0;
28
_y_size = 0;
29
_num_channels = 0;
30
_format = EggTexture::F_unspecified;
31
_force_format =
false
;
32
_generic_format =
false
;
33
_keep_format =
false
;
34
_minfilter = EggTexture::FT_unspecified;
35
_magfilter = EggTexture::FT_unspecified;
36
_anisotropic_degree = 0;
37
_alpha_mode = EggRenderMode::AM_unspecified;
38
_wrap_u = EggTexture::WM_unspecified;
39
_wrap_v = EggTexture::WM_unspecified;
40
_omit =
false
;
41
_margin = 0;
42
_coverage_threshold = 0.0;
43
}
44
45
////////////////////////////////////////////////////////////////////
46
// Function: TextureRequest::pre_txa_file
47
// Access: Public
48
// Description: Sets some state up that must be set prior to reading
49
// the .txa file.
50
////////////////////////////////////////////////////////////////////
51
void
TextureRequest::
52
pre_txa_file
() {
53
_margin = pal->_margin;
54
_coverage_threshold = pal->_coverage_threshold;
55
}
TextureRequest::pre_txa_file
void pre_txa_file()
Sets some state up that must be set prior to reading the .txa file.
Definition:
textureRequest.cxx:52
Generated on Wed May 17 2017 23:48:57 for Panda3D by
1.8.13