ddraw.c File Reference

#include "tinyptc.h"
#include "convert.h"
#include "ddraw.h"

Go to the source code of this file.

Defines

#define WIN32_LEAN_AND_MEAN
#define SC_ZOOM_MSK   0x400
#define SC_ZOOM_1x1   0x401
#define SC_ZOOM_2x2   0x402
#define SC_ZOOM_4x4   0x404

Typedefs

typedef LPDIRECTDRAW FAR * lplpDD
typedef LPDIRECTDRAW FAR IUnknown
FAR * 
pUnkOuter

Functions

typedef HRESULT (WINAPI *DIRECTDRAWCREATE)(GUID FAR *lpGUID
static void ptc_paint_primary ()
static LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
int ptc_open (char *title, int width, int height)
int ptc_update (void *buffer)
void ptc_close ()

Variables

PTC_CONVERTER convert
static HMODULE library = 0
static LPDIRECTDRAW lpDD = 0
static LPDIRECTDRAWSURFACE lpDDS = 0
static LPDIRECTDRAWSURFACE lpDDS_back
static WNDCLASS wc
static HWND wnd
static int active
static int dx
static int dy
static LPDIRECTDRAWCLIPPER lpDDC = 0
static LPDIRECTDRAWSURFACE lpDDS_secondary = 0
static int original_window_width
static int original_window_height
static HMENU system_menu


Define Documentation

#define SC_ZOOM_1x1   0x401
 

Definition at line 81 of file ddraw.c.

Referenced by ptc_open().

#define SC_ZOOM_2x2   0x402
 

Definition at line 82 of file ddraw.c.

Referenced by ptc_open().

#define SC_ZOOM_4x4   0x404
 

Definition at line 83 of file ddraw.c.

Referenced by ptc_open().

#define SC_ZOOM_MSK   0x400
 

Definition at line 80 of file ddraw.c.

Referenced by WndProc().

#define WIN32_LEAN_AND_MEAN
 

Definition at line 11 of file ddraw.c.


Typedef Documentation

typedef LPDIRECTDRAW FAR* lplpDD
 

Definition at line 37 of file ddraw.c.

typedef LPDIRECTDRAW FAR IUnknown FAR* pUnkOuter
 

Definition at line 37 of file ddraw.c.


Function Documentation

typedef HRESULT WINAPI *  DIRECTDRAWCREATE  ) 
 

void ptc_close  ) 
 

Definition at line 489 of file ddraw.c.

References library, lpDD, lpDDS, lpDDS_secondary, and wnd.

Referenced by CPintador::finalizar(), and WndProc().

int ptc_open char *  title,
int  width,
int  height
 

Definition at line 186 of file ddraw.c.

References __PTC_ICON__, convert, dx, dy, library, lpDD, lpDDC, lpDDS, lpDDS_back, lpDDS_secondary, original_window_height, original_window_width, ptc_request_converter(), SC_ZOOM_1x1, SC_ZOOM_2x2, SC_ZOOM_4x4, system_menu, wc, wnd, and WndProc().

Referenced by CPintador::iniciar().

static void ptc_paint_primary  )  [static]
 

Definition at line 42 of file ddraw.c.

References dx, dy, lpDDS, lpDDS_secondary, and wnd.

Referenced by ptc_update(), and WndProc().

int ptc_update void *  buffer  ) 
 

Definition at line 411 of file ddraw.c.

References active, convert, dx, dy, lpDDS, lpDDS_back, lpDDS_secondary, ptc_paint_primary(), and wnd.

Referenced by CPintador::render().

static LRESULT CALLBACK WndProc HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam
[static]
 

Definition at line 85 of file ddraw.c.

References active, original_window_height, original_window_width, ptc_close(), ptc_paint_primary(), and SC_ZOOM_MSK.

Referenced by ptc_open().


Variable Documentation

int active [static]
 

Definition at line 21 of file ddraw.c.

Referenced by ptc_update(), and WndProc().

PTC_CONVERTER convert
 

Definition at line 14 of file ddraw.c.

Referenced by ptc_open(), and ptc_update().

int dx [static]
 

Definition at line 22 of file ddraw.c.

Referenced by CPintador::lineaB(), CPintador::lineac(), ptc_open(), ptc_paint_primary(), and ptc_update().

int dy [static]
 

Definition at line 23 of file ddraw.c.

Referenced by CPintador::lineaB(), CPintador::lineac(), ptc_open(), ptc_paint_primary(), and ptc_update().

HMODULE library = 0 [static]
 

Definition at line 15 of file ddraw.c.

Referenced by ptc_close(), and ptc_open().

LPDIRECTDRAW lpDD = 0 [static]
 

Definition at line 16 of file ddraw.c.

Referenced by ptc_close(), and ptc_open().

LPDIRECTDRAWCLIPPER lpDDC = 0 [static]
 

Definition at line 26 of file ddraw.c.

Referenced by ptc_open().

LPDIRECTDRAWSURFACE lpDDS = 0 [static]
 

Definition at line 17 of file ddraw.c.

Referenced by ptc_close(), ptc_open(), ptc_paint_primary(), and ptc_update().

LPDIRECTDRAWSURFACE lpDDS_back [static]
 

Definition at line 18 of file ddraw.c.

Referenced by ptc_open(), and ptc_update().

LPDIRECTDRAWSURFACE lpDDS_secondary = 0 [static]
 

Definition at line 27 of file ddraw.c.

Referenced by ptc_close(), ptc_open(), ptc_paint_primary(), and ptc_update().

int original_window_height [static]
 

Definition at line 32 of file ddraw.c.

Referenced by ptc_open(), and WndProc().

int original_window_width [static]
 

Definition at line 31 of file ddraw.c.

Referenced by ptc_open(), and WndProc().

HMENU system_menu [static]
 

Definition at line 33 of file ddraw.c.

Referenced by ptc_open().

WNDCLASS wc [static]
 

Definition at line 19 of file ddraw.c.

Referenced by ptc_open().

HWND wnd [static]
 

Definition at line 20 of file ddraw.c.

Referenced by ptc_close(), ptc_open(), ptc_paint_primary(), and ptc_update().


Generated on Fri May 13 16:32:36 2005 for Screaming Racers by  doxygen 1.4.2