- [NEW] Projecte ficat al dia
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
|||||||
*.exe
|
*.exe
|
||||||
pepe
|
pepe
|
||||||
|
pepe_debug
|
||||||
|
build/*
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "grafix.h"
|
#include "grafix.h"
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "gif.c"
|
#include "gif.h"
|
||||||
#include "crt.h"
|
#include "crt.h"
|
||||||
|
|
||||||
namespace draw
|
namespace draw
|
||||||
@@ -15,7 +15,7 @@ namespace draw
|
|||||||
void init(const char* titol, const uint16_t width, const uint16_t height, const uint8_t zoom)
|
void init(const char* titol, const uint16_t width, const uint16_t height, const uint8_t zoom)
|
||||||
{
|
{
|
||||||
// Inicialització de les estructures de SDL
|
// Inicialització de les estructures de SDL
|
||||||
sdl_window = SDL_CreateWindow(titol, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width * zoom, height * zoom, SDL_WINDOW_SHOWN);
|
sdl_window = SDL_CreateWindow(titol, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width * zoom, height * zoom, SDL_WINDOW_SHOWN);
|
||||||
sdl_renderer = SDL_CreateRenderer(sdl_window, -1, 0);
|
sdl_renderer = SDL_CreateRenderer(sdl_window, -1, 0);
|
||||||
sdl_texture = SDL_CreateTexture(sdl_renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, width, height);
|
sdl_texture = SDL_CreateTexture(sdl_renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, width, height);
|
||||||
|
|
||||||
|
|||||||
5
lagueirtofile
Normal file
5
lagueirtofile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
libs = -lSDL2
|
||||||
|
cppflags = -D DEBUG -g
|
||||||
|
executable = pepe_debug
|
||||||
|
sourcepath = .
|
||||||
|
buildpath = build
|
||||||
Reference in New Issue
Block a user