- Fase 2 completada (main cpp sense errors)
This commit is contained in:
Binary file not shown.
31
grafix.h
31
grafix.h
@@ -1 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace draw
|
||||
{
|
||||
void init();
|
||||
|
||||
uint8_t *newSurface(const int width, const int height);
|
||||
uint8_t *loadSurface(const char *filename);
|
||||
void deleteSurface(const uint8_t *surface);
|
||||
|
||||
void draw(uint8_t *src, uint8_t *dst, uint16_t src_offset, uint16_t w, uint16_t h, uint16_t dst_x, uint16_t dst_y);
|
||||
void draw(uint8_t *src, uint8_t *dst);
|
||||
|
||||
void cls(const uint8_t color, uint8_t *dst);
|
||||
|
||||
void setPalette(uint8_t *paleta);
|
||||
uint8_t *getPalette();
|
||||
void setColor(const uint8_t index, const uint8_t r, const uint8_t g, const uint8_t b);
|
||||
void getColor(const uint8_t index, uint8_t *r, uint8_t *g, uint8_t *b);
|
||||
void blackout();
|
||||
|
||||
void fadeDown(const uint8_t r, const uint8_t g, const uint8_t b, const uint8_t espera); // espera son el nombre de waitVsync a executar en cada iteració del bucle
|
||||
void fadeUp(const uint8_t *paleta, const uint8_t espera);
|
||||
|
||||
void putPixel(const int x, const int y, const uint8_t color, uint8_t *dst);
|
||||
void line(const int x1, const int y1, const int x2, const int y2, const uint8_t color, uint8_t *dst);
|
||||
|
||||
void waitVsync();
|
||||
void blit();
|
||||
}
|
||||
|
||||
9
jinput.h
9
jinput.h
@@ -1,3 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
bool TeclaPuls(uint8_t tecla);
|
||||
namespace input
|
||||
{
|
||||
void init();
|
||||
|
||||
bool anyKey();
|
||||
bool keyPressed(uint8_t tecla);
|
||||
uint8_t getKey();
|
||||
}
|
||||
@@ -1 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
namespace audio
|
||||
{
|
||||
void playMusic();
|
||||
bool musicPlaying();
|
||||
void stopMusic();
|
||||
void unloadMusic();
|
||||
}
|
||||
|
||||
1444
pepe2000_utf8.cpp
1444
pepe2000_utf8.cpp
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user