1 /*---------------------------------------------------------------------------* 2 Project: NintendoWare 3 File: SmBase.h 4 5 Copyright (C)2009-2011 Nintendo/HAL Laboratory, Inc. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain proprietary 8 information of Nintendo and/or its licensed developers and are protected by 9 national and international copyright laws. They may not be disclosed to third 10 parties or copied or duplicated in any form, in whole or in part, without the 11 prior written consent of Nintendo. 12 13 The content herein is highly confidential and should be handled accordingly. 14 15 $Revision: $ 16 *---------------------------------------------------------------------------*/ 17 #ifndef SM_BASE_H_ 18 #define SM_BASE_H_ 19 20 #include <nw.h> 21 22 23 //------------------------------------------------------------------------------ 24 // �x�[�X�N���X 25 class SmBase 26 { 27 public: 28 29 // �R���X�g���N�^ SmBase()30 SmBase(){} 31 32 // �A���P�[�^���Z�b�g���܂��B SetAllocator(nw::os::IAllocator * allocator,nw::os::IAllocator * deviceAllocator)33 static void SetAllocator( nw::os::IAllocator* allocator, 34 nw::os::IAllocator* deviceAllocator ) 35 { 36 m_Allocator = allocator; 37 m_DeviceAllocator = deviceAllocator; 38 } 39 40 protected: 41 static nw::os::IAllocator* m_Allocator; 42 static nw::os::IAllocator* m_DeviceAllocator; 43 }; 44 45 46 #endif // SM_BASE_H_ 47