Added more default things

This commit is contained in:
2026-04-12 22:09:25 +02:00
parent fb8d6348b4
commit c964fcc984
2 changed files with 10 additions and 0 deletions

2
README.md Normal file
View File

@@ -0,0 +1,2 @@
# Cinecraft
Minecraft fork written in C++ with SDL3 and OpenGL to learn 3D Game Development.

View File

@@ -4,6 +4,14 @@
int main() { int main() {
SDL_Init(SDL_INIT_VIDEO); 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( SDL_Window* window = SDL_CreateWindow(
"Cinecraft", "Cinecraft",
800, 600, 800, 600,