Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

SYSTEM.H File Reference

#include <Windows.h>
#include <stdio.h>

Go to the source code of this file.

Functions

BOOL SysInit (void)
BOOL SysShutdown (void)


Function Documentation

BOOL SysInit void   ) 
 

Definition at line 35 of file system.c.

References DRV_Window::B_mask, DRV_Window::B_shift, DRV_Window::B_width, bWindowed, DRV_Window::BytesPerPixel, ClientWindow, FALSE, DRV_Window::G_mask, DRV_Window::G_shift, DRV_Window::G_width, GetDDrawPixelFormat(), DRV_Window::PixelPitch, DRV_Window::R_mask, DRV_Window::R_shift, DRV_Window::R_width, RenderInit(), SAL_get_pixel_format(), and TRUE.

Referenced by DrvInit().

00036 {
00037         if(bWindowed)
00038         {
00039                 SAL_get_pixel_format(&ClientWindow.PixelPitch,
00040                                                         &ClientWindow.BytesPerPixel,
00041                                                         &ClientWindow.R_shift,
00042                                                         &ClientWindow.R_mask,
00043                                                         &ClientWindow.R_width,
00044                                                         &ClientWindow.G_shift,
00045                                                         &ClientWindow.G_mask,
00046                                                         &ClientWindow.G_width,
00047                                                         &ClientWindow.B_shift,
00048                                                         &ClientWindow.B_mask,
00049                                                         &ClientWindow.B_width);
00050         }
00051         else
00052         {
00053                 GetDDrawPixelFormat(&ClientWindow);
00054         }
00055 
00056         if (!RenderInit(&ClientWindow))
00057                 return FALSE;
00058         
00059         return TRUE;
00060 }

BOOL SysShutdown void   ) 
 

Definition at line 62 of file system.c.

References RenderShutdown(), and TRUE.

Referenced by DrvShutdown().

00063 {
00064         RenderShutdown();
00065 
00066         return TRUE;
00067 }


Generated on Tue Sep 30 12:38:11 2003 for GTestAndEngine by doxygen 1.3.2