|
|
|
|
/**
|
|
|
|
|
* @file dx.h
|
|
|
|
|
*
|
|
|
|
|
* Interface of functions setting up the graphics pipeline.
|
|
|
|
|
*/
|
|
|
|
|
#ifndef __DX_H__
|
|
|
|
|
#define __DX_H__
|
|
|
|
|
|
|
|
|
|
DEVILUTION_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
extern BYTE *gpBuffer;
|
|
|
|
|
|
|
|
|
|
void dx_init(HWND hWnd);
|
|
|
|
|
void lock_buf(BYTE idx);
|
|
|
|
|
void unlock_buf(BYTE idx);
|
|
|
|
|
void dx_cleanup();
|
|
|
|
|
void dx_reinit();
|
|
|
|
|
void InitPalette();
|
|
|
|
|
void BltFast(SDL_Rect *src_rect, SDL_Rect *dst_rect);
|
|
|
|
|
void Blit(SDL_Surface *src, SDL_Rect *src_rect, SDL_Rect *dst_rect);
|
|
|
|
|
void RenderPresent();
|
|
|
|
|
void PaletteGetEntries(DWORD dwNumEntries, SDL_Color *lpEntries);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
DEVILUTION_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
#endif /* __DX_H__ */
|