From 3e00e8e760347ec901aa1392e2bf236107f351ec Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 29 Mar 2021 22:06:11 +0200 Subject: [PATCH] Added the planned class skeletons. --- 05_sdl_alapok/compile.sh | 7 ++++++- 05_sdl_alapok/image.cpp | 1 + 05_sdl_alapok/image.h | 8 ++++++++ 05_sdl_alapok/texture.cpp | 1 + 05_sdl_alapok/texture.h | 8 ++++++++ 05_sdl_alapok/texture_editor.cpp | 1 + 05_sdl_alapok/texture_editor.h | 8 ++++++++ 7 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 05_sdl_alapok/image.cpp create mode 100644 05_sdl_alapok/image.h create mode 100644 05_sdl_alapok/texture.cpp create mode 100644 05_sdl_alapok/texture.h create mode 100644 05_sdl_alapok/texture_editor.cpp create mode 100644 05_sdl_alapok/texture_editor.h diff --git a/05_sdl_alapok/compile.sh b/05_sdl_alapok/compile.sh index 3985b9b..04e7f4d 100755 --- a/05_sdl_alapok/compile.sh +++ b/05_sdl_alapok/compile.sh @@ -17,8 +17,13 @@ fi g++ -Wall -g -c math.cpp -o obj/math.o g++ -Wall -g -c rect2.cpp -o obj/rect2.o g++ -Wall -g -c color.cpp -o obj/color.o + g++ -Wall -g $(sdl2-config --cflags) -c renderer.cpp -o obj/renderer.o +g++ -Wall -g $(sdl2-config --cflags) -c image.cpp -o obj/image.o +g++ -Wall -g $(sdl2-config --cflags) -c texture.cpp -o obj/texture.o +g++ -Wall -g $(sdl2-config --cflags) -c texture_editor.cpp -o obj/texture_editor.o + g++ -Wall -g $(sdl2-config --cflags) -c main.cpp -o obj/main.o -g++ -o bin/program obj/math.o obj/rect2.o obj/color.o obj/renderer.o obj/main.o $(sdl2-config --libs) +g++ -o bin/program obj/math.o obj/rect2.o obj/color.o obj/renderer.o obj/image.o obj/texture.o obj/texture_editor.o obj/main.o $(sdl2-config --libs) diff --git a/05_sdl_alapok/image.cpp b/05_sdl_alapok/image.cpp new file mode 100644 index 0000000..e2b8c2f --- /dev/null +++ b/05_sdl_alapok/image.cpp @@ -0,0 +1 @@ +#include "image.h" \ No newline at end of file diff --git a/05_sdl_alapok/image.h b/05_sdl_alapok/image.h new file mode 100644 index 0000000..4bc1c8e --- /dev/null +++ b/05_sdl_alapok/image.h @@ -0,0 +1,8 @@ +#ifndef IMAGE_H +#define IMAGE_H + +class Image { +public: +}; + +#endif \ No newline at end of file diff --git a/05_sdl_alapok/texture.cpp b/05_sdl_alapok/texture.cpp new file mode 100644 index 0000000..684185f --- /dev/null +++ b/05_sdl_alapok/texture.cpp @@ -0,0 +1 @@ +#include "texture.h" \ No newline at end of file diff --git a/05_sdl_alapok/texture.h b/05_sdl_alapok/texture.h new file mode 100644 index 0000000..934db58 --- /dev/null +++ b/05_sdl_alapok/texture.h @@ -0,0 +1,8 @@ +#ifndef TEXTURE_H +#define TEXTURE_H + +class Texture { +public: +}; + +#endif \ No newline at end of file diff --git a/05_sdl_alapok/texture_editor.cpp b/05_sdl_alapok/texture_editor.cpp new file mode 100644 index 0000000..a798fe7 --- /dev/null +++ b/05_sdl_alapok/texture_editor.cpp @@ -0,0 +1 @@ +#include "texture_editor.h" diff --git a/05_sdl_alapok/texture_editor.h b/05_sdl_alapok/texture_editor.h new file mode 100644 index 0000000..373eda1 --- /dev/null +++ b/05_sdl_alapok/texture_editor.h @@ -0,0 +1,8 @@ +#ifndef TEXTURE_EDITOR_H +#define TEXTURE_EDITOR_H + +class TextureEditor { +public: +}; + +#endif \ No newline at end of file