/*---------------------------------------------------------------------------* Project: NintendoWare File: dev_Utility.h Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Revision: 14250 $ *---------------------------------------------------------------------------*/ #ifndef NW_DEV_UTILITY_H_ #define NW_DEV_UTILITY_H_ #include #include #include #if defined(NW_DEV_ENABLED) //! @brief Debug/Development/Release のビルドターゲットに関係なく、コンソールへ文字列を出力します。 //! //! @param[in] fmt フォーマット文字列です。 //! @param[in] ... フォーマットパラメータです。 // void NW_DEV_LOG( const char* fmt, ... ); namespace nw { namespace dev { //! @brief 指定したカラーフォーマットとサイズで必要なメモリサイズを計算します。 int CalcMemorySize(GLint format, int width, int height); //! @brief カラーフォーマットからバイト数を計算します。 int FormatToByte(GLint format); } // namespace nw::dev } // namespace nw #else #define NW_DEV_LOG(...) (void)0 namespace nw { namespace dev { inline int CalcMemorySize(GLint, int, int) { return 0; } inline int FormatToByte(GLint) { return 0; } } // namespace nw::dev } // namespace nw #endif // NW_DEV_ENABLED #endif // NW_DEV_UTILITY_H_