mirror of
https://github.com/rvtr/TwlIPL_commit-99.git
synced 2025-10-31 06:21:11 -04:00
65 lines
1.8 KiB
C
Executable File
65 lines
1.8 KiB
C
Executable File
/*---------------------------------------------------------------------------*
|
|
Project: NITRO-System - include - nnsys - gfd - VramManager
|
|
File: gfd_VramMan.h
|
|
|
|
Copyright 2004-2008 Nintendo. 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: 172 $
|
|
*---------------------------------------------------------------------------*/
|
|
#ifndef NNS_GFD_VRAMMAN_H_
|
|
#define NNS_GFD_VRAMMAN_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <nitro.h>
|
|
|
|
//
|
|
// デバック出力を有効にするスイッチ
|
|
// 定義時にデバック出力が有効になります
|
|
//
|
|
//#define NNS_GFD_DEBUG
|
|
|
|
|
|
#ifdef SDK_DEBUG
|
|
|
|
#define NNS_GFD_PRINTF( ... ) OS_Printf( __VA_ARGS__ )
|
|
#define NNS_GFD_WARNING( ... ) OS_Warning( __VA_ARGS__ )
|
|
|
|
#else // SDK_DEBUG
|
|
|
|
#define NNS_GFD_PRINTF( ... ) ((void) 0)
|
|
#define NNS_GFD_WARNING( ... ) ((void) 0)
|
|
|
|
#endif // SDK_DEBUG
|
|
//------------------------------------------------------------------------------
|
|
#ifdef NNS_GFD_DEBUG
|
|
#define NNS_GFD_DBGMSG( ... ) OS_Printf( __VA_ARGS__ )
|
|
#else // NNS_GFD_DEBUG
|
|
#define NNS_GFD_DBGMSG( ... ) ((void) 0)
|
|
#endif // NNS_GFD_DEBUG
|
|
|
|
|
|
//
|
|
// VRAMからメモリを確保する方向を示す定数。
|
|
// ----------------------------------------------------------------------------
|
|
enum
|
|
{
|
|
NNS_GFD_ALLOC_FROM_HIGH = 0, // VRAMの上位からメモリを確保。
|
|
NNS_GFD_ALLOC_FROM_LOW = 1 // VRAMの下位からメモリを確保。
|
|
};
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif // NNS_GFD_VRAMMAN_H_
|