00001 // Filename: cLwoSurfaceBlock.h 00002 // Created by: drose (26Apr01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #ifndef CLWOSURFACEBLOCK_H 00020 #define CLWOSURFACEBLOCK_H 00021 00022 #include <pandatoolbase.h> 00023 00024 #include <lwoSurfaceBlock.h> 00025 #include <lwoSurfaceBlockOpacity.h> 00026 #include <lwoSurfaceBlockProjection.h> 00027 #include <lwoSurfaceBlockAxis.h> 00028 #include <lwoSurfaceBlockWrap.h> 00029 00030 #include <luse.h> 00031 00032 class LwoToEggConverter; 00033 class CLwoSurfaceBlockTMap; 00034 00035 //////////////////////////////////////////////////////////////////// 00036 // Class : CLwoSurfaceBlock 00037 // Description : This class is a wrapper around LwoSurfaceBlock and stores 00038 // additional information useful during the 00039 // conversion-to-egg process. 00040 //////////////////////////////////////////////////////////////////// 00041 class CLwoSurfaceBlock { 00042 public: 00043 CLwoSurfaceBlock(LwoToEggConverter *converter, const LwoSurfaceBlock *block); 00044 ~CLwoSurfaceBlock(); 00045 00046 IffId _block_type; 00047 IffId _channel_id; 00048 string _ordinal; 00049 bool _enabled; 00050 00051 LwoSurfaceBlockOpacity::Type _opacity_type; 00052 float _opacity; 00053 00054 LMatrix4d _transform; 00055 LMatrix4d _inv_transform; 00056 LwoSurfaceBlockProjection::Mode _projection_mode; 00057 LwoSurfaceBlockAxis::Axis _axis; 00058 00059 int _clip_index; 00060 LwoSurfaceBlockWrap::Mode _w_wrap; 00061 LwoSurfaceBlockWrap::Mode _h_wrap; 00062 float _w_repeat; 00063 float _h_repeat; 00064 string _uv_name; 00065 00066 LwoToEggConverter *_converter; 00067 CPT(LwoSurfaceBlock) _block; 00068 CLwoSurfaceBlockTMap *_tmap; 00069 }; 00070 00071 #include "cLwoSurfaceBlock.I" 00072 00073 #endif 00074 00075