Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

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