diff options
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | sample1.cpp (renamed from main.cpp) | 4 | ||||
| -rw-r--r-- | sample2.cpp | 0 |
3 files changed, 4 insertions, 4 deletions
@@ -19,11 +19,11 @@ LDFLAGS = -L$(SDL2_PATH)/lib LIBS = -lmingw32 -lSDL2main -lSDL2 -mwindows # Source files -SOURCES = main.cpp graphics.cpp +SOURCES = sample1.cpp graphics.cpp OBJECTS = $(SOURCES:.cpp=.o) # Output executable -TARGET = GraphicsDemo.exe +TARGET = sample.exe # Default target all: $(TARGET) @@ -3,7 +3,7 @@ int main(int argc, char* argv[]) { // Create a window - WindowHandle* window = createWindow("Graphics Demo - SDL Backend", 800, 600); + WindowHandle* window = createWindow("TestApp", 800, 600); if (!window) { return -1; @@ -19,7 +19,7 @@ int main(int argc, char* argv[]) { pollEvents(window); // Clear screen with a dark background - clearScreen(window, Color(20, 20, 30)); + clearScreen(window, Color(0, 0, 0)); // Draw a grid Color gridColor(50, 50, 70); diff --git a/sample2.cpp b/sample2.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sample2.cpp |
