You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
652 B
27 lines
652 B
|
6 years ago
|
/**
|
||
|
|
* @file dx.h
|
||
|
|
*
|
||
|
|
* Interface of functions setting up the graphics pipeline.
|
||
|
|
*/
|
||
|
5 years ago
|
#pragma once
|
||
|
8 years ago
|
|
||
|
5 years ago
|
#include "engine.h"
|
||
|
|
|
||
|
5 years ago
|
namespace devilution {
|
||
|
6 years ago
|
|
||
|
5 years ago
|
/** Whether we render directly to the screen surface, i.e. `PalSurface == GetOutputSurface()` */
|
||
|
5 years ago
|
extern bool RenderDirectlyToOutputSurface;
|
||
|
|
|
||
|
5 years ago
|
Surface GlobalBackBuffer();
|
||
|
8 years ago
|
|
||
|
5 years ago
|
void dx_init();
|
||
|
7 years ago
|
void dx_cleanup();
|
||
|
4 years ago
|
void CreateBackBuffer();
|
||
|
6 years ago
|
void InitPalette();
|
||
|
5 years ago
|
void BltFast(SDL_Rect *srcRect, SDL_Rect *dstRect);
|
||
|
|
void Blit(SDL_Surface *src, SDL_Rect *srcRect, SDL_Rect *dstRect);
|
||
|
7 years ago
|
void RenderPresent();
|
||
|
5 years ago
|
void PaletteGetEntries(int dwNumEntries, SDL_Color *lpEntries);
|
||
|
7 years ago
|
|
||
|
5 years ago
|
} // namespace devilution
|