mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2025-12-15 23:10:59 +01:00
Replaced memory with new.
Cleaned up gdrv, zdrv, render.
This commit is contained in:
parent
dc5915b4f8
commit
93de90b680
25 changed files with 220 additions and 439 deletions
|
|
@ -3,20 +3,21 @@
|
|||
|
||||
struct zmap_header_type
|
||||
{
|
||||
zmap_header_type(int width, int height, int stride);
|
||||
~zmap_header_type();
|
||||
int Width;
|
||||
int Height;
|
||||
int Stride;
|
||||
unsigned Resolution;
|
||||
uint16_t* ZPtr1;
|
||||
SDL_Texture* Texture;
|
||||
private:
|
||||
static int pad(int width);
|
||||
};
|
||||
|
||||
class zdrv
|
||||
{
|
||||
public:
|
||||
static int pad(int width);
|
||||
static int create_zmap(zmap_header_type* zmap, int width, int height, int stride = -1);
|
||||
static int destroy_zmap(zmap_header_type* zmap);
|
||||
static void fill(zmap_header_type* zmap, int width, int height, int xOff, int yOff, uint16_t fillWord);
|
||||
static void paint(int width, int height, gdrv_bitmap8* dstBmp, int dstBmpXOff, int dstBmpYOff,
|
||||
zmap_header_type* dstZMap, int dstZMapXOff, int dstZMapYOff, gdrv_bitmap8* srcBmp, int srcBmpXOff,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue