Moguts tots els .cpp a la mateixa carpeta

This commit is contained in:
2025-02-20 12:32:40 +01:00
parent e23f6b5ed9
commit bcb2e96069
57 changed files with 131 additions and 131 deletions

27
source/paleta.h Normal file
View File

@@ -0,0 +1,27 @@
#pragma once
#include <SDL2/SDL.h>
typedef struct jSurface_s *jSurface;
jSurface pNewSurface(int w, int h);
void pDeleteSurface(jSurface surf);
void pSetDest(jSurface surf);
void pSetSource(jSurface surf);
jSurface pLoadSurface(const char* filename);
void pPutPixel(int x, int y, Uint8 color);
Uint8 pGetPixel(int x, int y);
void pBlit(int dx, int dy, int sx, int sy, int w, int h);
void pInit(SDL_Renderer *renderer, int w, int h);
void pSetPal(int index, Uint32 color);
void pLoadPal(const char *filename);
void pCls(Uint8 color);
void pFlip(SDL_Renderer *renderer);
bool pFadePal();