00001 /* 00002 * PROPRIETARY INFORMATION. This software is proprietary to 00003 * Side Effects Software Inc., and is not to be reproduced, 00004 * transmitted, or disclosed in any way without written permission. 00005 * 00006 * Produced by: 00007 * Side Effects Software Inc 00008 * 123 Front Street West, Suite 1401 00009 * Toronto, Ontario 00010 * Canada M5J 2M2 00011 * 416-504-9876 00012 * 00013 * NAME: SHOP_ReData.h ( SHOP Library, C++) 00014 * 00015 * COMMENTS: Interface for getting RE information out of a SHOP 00016 */ 00017 00018 #ifndef __SHOP_ReData__ 00019 #define __SHOP_ReData__ 00020 00021 #include "SHOP_API.h" 00022 00023 class RE_Render; 00024 class RE_Material; 00025 00026 class SHOP_API SHOP_ReData { 00027 public: 00028 SHOP_ReData(const SHOP_ReData &src); 00029 SHOP_ReData() { myMaterial = 0; myRenderContext=0; } 00030 ~SHOP_ReData() { setMaterial(0); } 00031 00032 const SHOP_ReData &operator=(const SHOP_ReData &src); 00033 00034 void setRender(RE_Render *r) { myRenderContext = r; } 00035 RE_Render *getRender() const { return myRenderContext; } 00036 00037 RE_Material *getMaterial() const { return myMaterial; } 00038 void clear() { setMaterial(0); } 00039 void setMaterial(RE_Material *mat); 00040 void stripTextures(); 00041 00042 private: 00043 RE_Material *myMaterial; 00044 RE_Render *myRenderContext; 00045 }; 00046 00047 #endif 00048
1.5.9