From c964fcc9846d7f0af9ea83cc0e75424b5d9d82cc Mon Sep 17 00:00:00 2001 From: miaurizius Date: Sun, 12 Apr 2026 22:09:25 +0200 Subject: [PATCH] Added more default things --- README.md | 2 ++ src/main.cpp | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b11e4e7 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Cinecraft +Minecraft fork written in C++ with SDL3 and OpenGL to learn 3D Game Development. \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index aff8520..a6056af 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,6 +4,14 @@ int main() { SDL_Init(SDL_INIT_VIDEO); + // SETUP 8-bit colors + SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32); + SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); + SDL_Window* window = SDL_CreateWindow( "Cinecraft", 800, 600,