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,