Panda3D

cLwoSurfaceBlock.h

00001 // Filename: cLwoSurfaceBlock.h
00002 // Created by:  drose (26Apr01)
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 #ifndef CLWOSURFACEBLOCK_H
00016 #define CLWOSURFACEBLOCK_H
00017 
00018 #include "pandatoolbase.h"
00019 
00020 #include "lwoSurfaceBlock.h"
00021 #include "lwoSurfaceBlockOpacity.h"
00022 #include "lwoSurfaceBlockProjection.h"
00023 #include "lwoSurfaceBlockAxis.h"
00024 #include "lwoSurfaceBlockWrap.h"
00025 
00026 #include "luse.h"
00027 
00028 class LwoToEggConverter;
00029 class CLwoSurfaceBlockTMap;
00030 
00031 ////////////////////////////////////////////////////////////////////
00032 //       Class : CLwoSurfaceBlock
00033 // Description : This class is a wrapper around LwoSurfaceBlock and stores
00034 //               additional information useful during the
00035 //               conversion-to-egg process.
00036 ////////////////////////////////////////////////////////////////////
00037 class CLwoSurfaceBlock {
00038 public:
00039   CLwoSurfaceBlock(LwoToEggConverter *converter, const LwoSurfaceBlock *block);
00040   ~CLwoSurfaceBlock();
00041 
00042   IffId _block_type;
00043   IffId _channel_id;
00044   string _ordinal;
00045   bool _enabled;
00046 
00047   LwoSurfaceBlockOpacity::Type _opacity_type;
00048   PN_stdfloat _opacity;
00049 
00050   LMatrix4d _transform;
00051   LMatrix4d _inv_transform;
00052   LwoSurfaceBlockProjection::Mode _projection_mode;
00053   LwoSurfaceBlockAxis::Axis _axis;
00054 
00055   int _clip_index;
00056   LwoSurfaceBlockWrap::Mode _w_wrap;
00057   LwoSurfaceBlockWrap::Mode _h_wrap;
00058   PN_stdfloat _w_repeat;
00059   PN_stdfloat _h_repeat;
00060   string _uv_name;
00061 
00062   LwoToEggConverter *_converter;
00063   CPT(LwoSurfaceBlock) _block;
00064   CLwoSurfaceBlockTMap *_tmap;
00065 };
00066 
00067 #include "cLwoSurfaceBlock.I"
00068 
00069 #endif
00070 
00071 
 All Classes Functions Variables Enumerations