Panda3D
cLwoSurfaceBlock.h
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 cLwoSurfaceBlock.h
10  * @author drose
11  * @date 2001-04-26
12  */
13 
14 #ifndef CLWOSURFACEBLOCK_H
15 #define CLWOSURFACEBLOCK_H
16 
17 #include "pandatoolbase.h"
18 
19 #include "lwoSurfaceBlock.h"
20 #include "lwoSurfaceBlockOpacity.h"
22 #include "lwoSurfaceBlockAxis.h"
23 #include "lwoSurfaceBlockWrap.h"
24 
25 #include "luse.h"
26 
27 class LwoToEggConverter;
29 
30 /**
31  * This class is a wrapper around LwoSurfaceBlock and stores additional
32  * information useful during the conversion-to-egg process.
33  */
35 public:
36  CLwoSurfaceBlock(LwoToEggConverter *converter, const LwoSurfaceBlock *block);
38 
39  IffId _block_type;
40  IffId _channel_id;
41  std::string _ordinal;
42  bool _enabled;
43 
44  LwoSurfaceBlockOpacity::Type _opacity_type;
45  PN_stdfloat _opacity;
46 
47  LMatrix4d _transform;
48  LMatrix4d _inv_transform;
49  LwoSurfaceBlockProjection::Mode _projection_mode;
50  LwoSurfaceBlockAxis::Axis _axis;
51 
52  int _clip_index;
53  LwoSurfaceBlockWrap::Mode _w_wrap;
54  LwoSurfaceBlockWrap::Mode _h_wrap;
55  PN_stdfloat _w_repeat;
56  PN_stdfloat _h_repeat;
57  std::string _uv_name;
58 
59  LwoToEggConverter *_converter;
60  CPT(LwoSurfaceBlock) _block;
61  CLwoSurfaceBlockTMap *_tmap;
62 };
63 
64 #include "cLwoSurfaceBlock.I"
65 
66 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is a wrapper around LwoSurfaceBlock and stores additional information useful during the co...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A texture layer or shader, part of a LwoSurface chunk.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class supervises the construction of an EggData structure from the data represented by the LwoHe...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class is a wrapper around LwoSurfaceBlockTMap and stores additional information useful during th...
A four-byte chunk ID appearing in an "IFF" file.
Definition: iffId.h:26