Panda3D
 All Classes Functions Variables Enumerations
cLwoSurfaceBlock.h
1 // Filename: cLwoSurfaceBlock.h
2 // Created by: drose (26Apr01)
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 #ifndef CLWOSURFACEBLOCK_H
16 #define CLWOSURFACEBLOCK_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "lwoSurfaceBlock.h"
21 #include "lwoSurfaceBlockOpacity.h"
22 #include "lwoSurfaceBlockProjection.h"
23 #include "lwoSurfaceBlockAxis.h"
24 #include "lwoSurfaceBlockWrap.h"
25 
26 #include "luse.h"
27 
28 class LwoToEggConverter;
30 
31 ////////////////////////////////////////////////////////////////////
32 // Class : CLwoSurfaceBlock
33 // Description : This class is a wrapper around LwoSurfaceBlock and stores
34 // additional information useful during the
35 // conversion-to-egg process.
36 ////////////////////////////////////////////////////////////////////
38 public:
39  CLwoSurfaceBlock(LwoToEggConverter *converter, const LwoSurfaceBlock *block);
41 
42  IffId _block_type;
43  IffId _channel_id;
44  string _ordinal;
45  bool _enabled;
46 
47  LwoSurfaceBlockOpacity::Type _opacity_type;
48  PN_stdfloat _opacity;
49 
50  LMatrix4d _transform;
51  LMatrix4d _inv_transform;
52  LwoSurfaceBlockProjection::Mode _projection_mode;
53  LwoSurfaceBlockAxis::Axis _axis;
54 
55  int _clip_index;
56  LwoSurfaceBlockWrap::Mode _w_wrap;
57  LwoSurfaceBlockWrap::Mode _h_wrap;
58  PN_stdfloat _w_repeat;
59  PN_stdfloat _h_repeat;
60  string _uv_name;
61 
62  LwoToEggConverter *_converter;
63  CPT(LwoSurfaceBlock) _block;
64  CLwoSurfaceBlockTMap *_tmap;
65 };
66 
67 #include "cLwoSurfaceBlock.I"
68 
69 #endif
70 
71 
This is a 4-by-4 transform matrix.
Definition: lmatrix.h:4716
This class is a wrapper around LwoSurfaceBlock and stores additional information useful during the co...
A texture layer or shader, part of a LwoSurface chunk.
This class supervises the construction of an EggData structure from the data represented by the LwoHe...
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:29