Panda3D

Loading...
Searching...
No Matches
textureRequest.cxx
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file textureRequest.cxx
10 * @author drose
11 * @date 2000-11-30
12 */
13
14#include "textureRequest.h"
15#include "palettizer.h"
16
17/**
18 *
19 */
20TextureRequest::
21TextureRequest() {
22 _got_size = false;
23 _got_num_channels = false;
24 _x_size = 0;
25 _y_size = 0;
26 _num_channels = 0;
27 _format = EggTexture::F_unspecified;
28 _force_format = false;
29 _generic_format = false;
30 _keep_format = false;
31 _minfilter = EggTexture::FT_unspecified;
32 _magfilter = EggTexture::FT_unspecified;
33 _anisotropic_degree = 0;
34 _alpha_mode = EggRenderMode::AM_unspecified;
35 _wrap_u = EggTexture::WM_unspecified;
36 _wrap_v = EggTexture::WM_unspecified;
37 _omit = false;
38 _margin = 0;
39 _coverage_threshold = 0.0;
40}
41
42/**
43 * Sets some state up that must be set prior to reading the .txa file.
44 */
45 void TextureRequest::
46 pre_txa_file() {
47 _margin = pal->_margin;
48 _coverage_threshold = pal->_coverage_threshold;
49}
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:46
palettizer.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
textureRequest.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.