Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
ddraw.cpp File Reference
#include "always.h"
#include "misc.h"
#include "dsurface.h"
#include "data.h"
#include "_timer.h"
#include <assert.h>
#include <stdio.h>

Go to the source code of this file.

Functions

void Set_Palette (PaletteClass const &pal, int time, void(*callback)())
 
void Process_DD_Result (HRESULT result, int display_ok_msg)
 
void Check_Overlapped_Blit_Capability (void)
 
void Prep_Direct_Draw (void)
 
bool Set_Video_Mode (HWND, int w, int h, int bits_per_pixel)
 
void Reset_Video_Mode (void)
 
unsigned int Get_Free_Video_Memory (void)
 
unsigned Get_Video_Hardware_Capabilities (void)
 
void Wait_Vert_Blank (void)
 
void Set_Palette (void const *palette)
 
void Wait_Blit (void)
 

Variables

LPDIRECTDRAW DirectDrawObject = NULL
 
LPDIRECTDRAW2 DirectDraw2Interface = NULL
 
LPDIRECTDRAWSURFACE PaletteSurface = NULL
 
bool SurfacesRestored = false
 
unsigned char CurrentPalette [768]
 
bool Debug_Windowed
 
int(* DirectDrawErrorHandler )(HRESULT error) = NULL
 

Function Documentation

◆ Check_Overlapped_Blit_Capability()

void Check_Overlapped_Blit_Capability ( void )

Definition at line 294 of file ddraw.cpp.

◆ Get_Free_Video_Memory()

unsigned int Get_Free_Video_Memory ( void )

Definition at line 471 of file ddraw.cpp.

◆ Get_Video_Hardware_Capabilities()

unsigned Get_Video_Hardware_Capabilities ( void )

Definition at line 504 of file ddraw.cpp.

◆ Prep_Direct_Draw()

void Prep_Direct_Draw ( void )

Definition at line 327 of file ddraw.cpp.

◆ Process_DD_Result()

void Process_DD_Result ( HRESULT result,
int display_ok_msg )

Definition at line 139 of file ddraw.cpp.

◆ Reset_Video_Mode()

void Reset_Video_Mode ( void )

Definition at line 438 of file ddraw.cpp.

◆ Set_Palette() [1/2]

void Set_Palette ( PaletteClass const & pal,
int time,
void(* callback )() )

Definition at line 70 of file ddraw.cpp.

◆ Set_Palette() [2/2]

void Set_Palette ( void const * palette)

Definition at line 591 of file ddraw.cpp.

◆ Set_Video_Mode()

bool Set_Video_Mode ( HWND hwnd,
int w,
int h,
int bits_per_pixel )

Definition at line 360 of file ddraw.cpp.

◆ Wait_Blit()

void Wait_Blit ( void )

Definition at line 638 of file ddraw.cpp.

◆ Wait_Vert_Blank()

void Wait_Vert_Blank ( void )

Definition at line 564 of file ddraw.cpp.

Variable Documentation

◆ CurrentPalette

unsigned char CurrentPalette[768]

Definition at line 65 of file ddraw.cpp.

◆ Debug_Windowed

bool Debug_Windowed

Definition at line 66 of file ddraw.cpp.

◆ DirectDraw2Interface

LPDIRECTDRAW2 DirectDraw2Interface = NULL

Definition at line 56 of file ddraw.cpp.

◆ DirectDrawErrorHandler

int(* DirectDrawErrorHandler) (HRESULT error) ( HRESULT error) = NULL

Definition at line 68 of file ddraw.cpp.

◆ DirectDrawObject

LPDIRECTDRAW DirectDrawObject = NULL

Definition at line 55 of file ddraw.cpp.

◆ PaletteSurface

LPDIRECTDRAWSURFACE PaletteSurface = NULL

Definition at line 61 of file ddraw.cpp.

◆ SurfacesRestored

bool SurfacesRestored = false

Definition at line 62 of file ddraw.cpp.