commit e31cfca781154628059962910a6764aeee26cb1b
parent a6bfe0a073c32e2713870090abfebdcdf4030ab0
Author: x0tero <gxoelotero@gmail.com>
Date: Tue, 5 Mar 2024 12:28:45 +0100
readme engadido
Diffstat:
4 files changed, 36 insertions(+), 3 deletions(-)
diff --git a/02-Debuxar Formas/Makefile b/02-Debuxar Formas/Makefile
@@ -3,9 +3,8 @@ CFLAGS := -Wall
LDFLAGS :=
LIBS := -lSDL2 -lm
CC := gcc
-#SRCS := $(wildcard *.c)
# Asignar a SRCS o nome do ficheiro fornte a compilar
-SRCS := debuxar2.c
+SRCS := debuxar.c
OBX := $(SRCS:.c=.o)
all: $(EXEC)
diff --git a/02-Debuxar Formas/debuxar2.c b/02-Debuxar Formas/debuxar2.c
@@ -14,7 +14,7 @@ int eventos(){
return 0;
}
-void memset32( void * dest, Uint32 value, uintptr_t size ) {
+void memset32( void* dest, Uint32 value, uintptr_t size ) {
uintptr_t i;
for( i = 0; i < (size & (~3)); i+=4 )
memcpy( ((char*)dest) + i, &value, 4 );
diff --git a/02-Debuxar Formas/test b/02-Debuxar Formas/test
Binary files differ.
diff --git a/README.md b/README.md
@@ -0,0 +1,34 @@
+# Aprendizaxe de SDL
+
+Instalacion en archlinux
+
+ sudo pacman -S sdl2
+
+Instalacion en debian
+
+ sudo apt-get install libsdl2-dev
+
+Descargar as fontes para compilacions estaticas
+
+ git clone https://github.com/libsdl-org/SDL.git -b SDL2
+ cd SDL
+ mkdir build
+ cd build
+ ../configure
+ make
+
+Instalacion en windows (XP en adelante)
+
+ - Descargar o instalador de [CygWin](https://cygwin.com/) o cal trae o comiplador minGW (comunmente chamado "el mingo")
+ - Descargar [SDL2-devel-2.X.Y-mingw.tar.gz](https://github.com/libsdl-org/SDL/releases)
+
+ - Para o titorial de instalacion detallado de windows consultar primeirosPasosWin.md
+ - Para o titorial en compilacion cruzada consultar crosscompWin.md
+
+Para compilar con Emscripten
+
+Clonar o repositorio
+
+ git clone https://git.gxog.xyz/SDL_Tests.git
+
+# Instalacion en windows