00001 /*-----------------------------------------------------------------------* 00002 Project: Nintendo Augmented Reality Library. 00003 File: narDebug.h 00004 00005 Copyright (C)2011-2012 Nintendo Co., Ltd. All rights reserved. 00006 00007 These coded instructions, statements, and computer programs contain 00008 proprietary information of Nintendo and/or its licensed developers 00009 and are protected by national and international copyright laws. They 00010 may not be disclosed to third parties or copied or duplicated in any 00011 form, in whole or in part, without the prior written consent of 00012 Nintendo. 00013 The content herein is highly confidential and should be handled 00014 accordingly. 00015 *-----------------------------------------------------------------------*/ 00016 00022 #ifndef NAR_DEBUG_H__ 00023 #define NAR_DEBUG_H__ 00024 00025 #include "narPort.h" 00026 #include "narFlags.h" 00027 00028 namespace mw { namespace nar 00029 { 00032 class Debug_cl 00033 { 00034 public: 00037 enum Switch_e 00038 { 00039 me_ViewNone, 00041 NAR_EFLAG( me_ViewClear ), 00043 NAR_EFLAG( me_ViewLineCandidates ), 00045 NAR_EFLAG( me_ViewCheckMesh ), 00047 NAR_EFLAG( me_ViewEdgeSlope ), 00049 NAR_EFLAG( me_ViewSample ), 00050 me_ViewLastFlag, 00051 me_ViewInfo = static_cast< s32 >( me_ViewLastFlag ) - 1, 00052 me_SwitchEnd 00053 }; 00054 00057 static Flags_tc< u8, Switch_e > & GetrSwitch() { return instance().m_Flags; } 00058 private: 00059 Flags_tc< u8, Switch_e > m_Flags; 00060 00061 static Debug_cl & instance() 00062 { 00063 static Debug_cl debug; 00064 return debug; 00065 } 00066 }; 00067 } 00068 } 00069 00070 00071 #endif
© 2011-2012 Nintendo. All rights reserved.
CONFIDENTIAL