00001 // 00002 // Copyright (c) 2005 by Tech Soft 3D, LLC. 00003 // The information contained herein is confidential and proprietary to 00004 // Tech Soft 3D, LLC., and considered a trade secret as defined under 00005 // civil and criminal statutes. Tech Soft 3D shall pursue its civil 00006 // and criminal remedies in the event of unauthorized use or misappropriation 00007 // of its trade secrets. Use of this information by anyone other than 00008 // authorized employees of Tech Soft 3D, LLC. is granted only under a 00009 // written non-disclosure agreement, expressly prescribing the scope and 00010 // manner of such use. 00011 // 00012 // $Id$ 00013 // 00014 00015 #ifndef _HDEBUGZBUFFER_H 00016 #define _HDEBUGZBUFFER_H 00017 00018 #ifdef H_PACK_8 00019 #pragma pack(push) 00020 #pragma pack(8) 00021 #endif 00022 00023 #include "HTools.h" 00024 #include "hic_types.h" 00025 00026 class HBaseView; 00027 00028 00034 class MVO_API HDebugZBuffer 00035 { 00036 protected: 00037 00038 HC_KEY m_ViewKey; 00039 HC_KEY m_StandaloneKey; 00040 int m_width, m_height; 00041 char *m_StandaloneSegmentName; 00042 00043 float *m_FloatBuffer; 00044 unsigned char *m_GreyBuffer; 00045 HC_KEY m_GreyImageKey; 00046 00047 public: 00048 00052 HDebugZBuffer( HBaseView *view ); 00054 virtual ~HDebugZBuffer(); 00056 void OpenglFinishPicture(HIC_Rendition const *nr, bool swap_buffers ); 00058 void Update(); 00059 00062 static void RegisterCallbacks(); 00064 static void ogl_finish_picture(HIC_Rendition const *nr, bool swap_buffers ); 00065 }; 00066 00067 00068 #ifdef H_PACK_8 00069 #pragma pack(pop) 00070 #endif 00071 00072 #endif 00073 00074 00075