Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

display.cpp

Go to the documentation of this file.
00001 /*------------------------------------ Includes ---------------------------------------------*/ 00002 #include "display.h" 00003 #include "geo_utils.h" 00004 #include "errrors_display.h" 00005 00006 00007 00008 /*-------------------------------- Global variables ----------------------------------------*/ 00009 00010 /****************************************************************************************************/ 00011 // class cBitmap_Display_Def 00012 /****************************************************************************************************/ 00013 void cBitmap_Display_Def::Display(int x, int y) 00014 { 00015 HRESULT hr; 00016 if( FAILED(hr= g_pDisplay->Blt( x , y , g_pMessages->GetDDrawSurface() , &Bitmap_Rect) )) 00017 { 00018 Display_Fatal_Error(hWnd , "class cBitmap_Display_Def::void Display(int x, int y)",hr); 00019 _DbgOut("display.h",49,hr,"class cBitmap_Display_Def::void Display(int x, int y)"); 00020 PostQuitMessage(0); 00021 } 00022 } 00023 00024 00025 /****************************************************************************************************/ 00026 // class cSprite_Display_Def 00027 /****************************************************************************************************/ 00028 void cSprite_Display_Def::Display(int x, int y) 00029 { 00030 HRESULT hr; 00031 if( FAILED(hr= g_pDisplay->ColorKeyBlt( x , y , g_pSprites->GetDDrawSurface() , &Bitmap_Rect) )) 00032 { 00033 Display_Fatal_Error(hWnd , "class cSprite_Display_Def::void Display(int x, int y)",hr); 00034 _DbgOut("display.h",49,hr,"cSprite_Display_Def::display"); 00035 PostQuitMessage(0); 00036 } 00037 } 00038

Generated on Fri May 21 19:22:36 2004 for LIBELL by doxygen 1.3.7