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

target_be.cpp

Go to the documentation of this file.
00001 /*
00002         $Id: target_be.cpp,v 1.1 2001/03/06 15:09:17 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 
00015 #include "Core/precomp.h"
00016 
00017 #include <API/Core/Display/palette.h>
00018 #include <Core/System/Be/app_beos.h>
00019 #include "target_be.h"
00020 
00021 CL_Target_Be::CL_Target_Be()
00022 {
00023         clws = ((LibApplication*)be_app)->clanscreen;
00024 }
00025 
00026 CL_Target_Be::~CL_Target_Be()
00027 {
00028 }
00029 
00030 bool CL_Target_Be::is_video() const
00031 {
00032         return (clws->is_connected());
00033 }
00034 
00035 void CL_Target_Be::lock()
00036 {
00037 //      return (clws->get_data()!=NULL);
00038 }
00039         
00040 void CL_Target_Be::unlock()
00041 {
00042 }
00043 
00044 void *CL_Target_Be::get_data() const
00045 {
00046         return clws->get_data();
00047 }
00048 
00049 unsigned int CL_Target_Be::get_num_frames() const
00050 {
00051         return 1;
00052 }
00053 
00054 unsigned int CL_Target_Be::get_width() const
00055 {
00056         return clws->get_width();
00057 }
00058 
00059 unsigned int CL_Target_Be::get_height() const
00060 {
00061         return clws->get_width();
00062 }
00063 
00064 unsigned int CL_Target_Be::get_pitch() const
00065 {
00066         return clws->get_pitch();
00067 }
00068         
00069 unsigned int CL_Target_Be::get_depth() const
00070 {
00071         return clws->get_depth();
00072 }
00073 
00074 bool CL_Target_Be::is_indexed() const
00075 {
00076         return false;
00077 }
00078 
00079 unsigned int CL_Target_Be::get_red_mask() const
00080 {
00081         return ((int)((pow(2,5))-1) << (6 + 5));
00082 }
00083 
00084 unsigned int CL_Target_Be::get_green_mask() const
00085 {
00086         return ((int)(pow(2,6))-1) << 5;
00087 }
00088 
00089 unsigned int CL_Target_Be::get_blue_mask() const
00090 {
00091         return (int)(pow(2,5))-1;
00092 }
00093 
00094 unsigned int CL_Target_Be::get_alpha_mask() const
00095 {
00096         return 0;
00097 }
00098 
00099 CL_Palette *CL_Target_Be::get_palette() const
00100 {
00101         return NULL;
00102 }
00103 

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