migrat a SDL3
arreglos estetics i d'estil
This commit is contained in:
30
source/palette.h
Normal file
30
source/palette.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
namespace Palette
|
||||
{
|
||||
typedef struct SurfaceData *Surface;
|
||||
|
||||
Surface newSurface(int w, int h);
|
||||
void deleteSurface(Surface surf);
|
||||
void setDst(Surface surf);
|
||||
void setSrc(Surface surf);
|
||||
|
||||
Surface loadSurface(const char *filename);
|
||||
|
||||
void putPixel(int x, int y, Uint8 color);
|
||||
Uint8 getPixel(int x, int y);
|
||||
|
||||
void blit(int dx, int dy, int sx, int sy, int w, int h);
|
||||
|
||||
void init(const char *titol, int w, int h, int z);
|
||||
|
||||
void setPalette(int index, Uint32 color);
|
||||
void loadPalette(const char *filename);
|
||||
|
||||
void clear(Uint8 color);
|
||||
|
||||
void flip();
|
||||
void switchPalette();
|
||||
}
|
||||
Reference in New Issue
Block a user