Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

setupcore_beos.cpp

Go to the documentation of this file.
00001 /*
00002         $Id: setupcore_beos.cpp,v 1.2 2001/03/01 09:50:53 mbn Exp $
00003 
00004         ------------------------------------------------------------------------
00005         ClanLib, the platform independent game SDK.
00006 
00007         This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00008         version 2. See COPYING for details.
00009 
00010         For a total list of contributers see CREDITS.
00011 
00012         ------------------------------------------------------------------------
00013 
00014         File purpose:
00015                 SetupCore: Initialization of the BeOS version of ClanLib.
00016 
00017 */
00018 
00019 #include "API/Core/System/setupcore.h"
00020 #include "API/Core/Display/displaycard.h"
00021 #include "API/Core/Display/display.h"
00022 #include "API/Core/Sound/sound.h"
00023 #include "API/Core/Input/input.h"
00024 #include "Core/System/Be/app_beos.h"
00025 #include "Core/Display/Be/displaycard_be.h"
00026 #include "Core/Display/Be/clanwindowscreen.h"
00027 // #include "Core/Input/Be/keyboard_be.h"
00028 
00029 CL_DisplayCard *cl_current_displaycard = NULL;
00030 
00031 CL_DisplayCard* CL_Display::get_current_card()
00032 {
00033         return cl_current_displaycard;
00034 }
00035 
00036 CL_SoundCard *cl_current_soundcard = NULL;
00037 
00038 CL_SoundCard* CL_Sound::get_current_card()
00039 {
00040         return cl_current_soundcard;
00041 }
00042 
00043 void CL_SetupCore::init_display()
00044 {
00045         status_t err;
00046         ((LibApplication*)be_app)->clanscreen = new ClanWindowScreen(&err);
00047 
00048         cl_current_displaycard = new CL_DisplayCard_Be(CL_Display::cards.size());
00049         CL_Display::cards.push_back(cl_current_displaycard);
00050         
00051 //      CL_Input::keyboards.add(new CL_BeKeyboard());
00052 }
00053 
00054 void CL_SetupCore::init_sound()
00055 {
00056 //      cl_current_soundcard = new CL_SoundCard_Be();
00057 //      CL_Sound::cards.push_back(cl_current_soundcard);
00058 //      CL_CDDrive_Be::init_cdaudio();
00059 }
00060 
00061 void CL_SetupCore::init_network()
00062 {
00063 }
00064 
00065 void CL_SetupCore::deinit_display()
00066 {
00067 }
00068 
00069 void CL_SetupCore::deinit_sound()
00070 {
00071 }
00072 
00073 void CL_SetupCore::deinit_network()
00074 {
00075 }

Generated at Wed Apr 4 19:54:03 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001