Colorful shapes

This commit is contained in:
var
2026-04-01 20:19:41 -05:00
parent b4768a885b
commit 299cb740d4
7 changed files with 20 additions and 11 deletions

View File

@@ -217,7 +217,7 @@ bool Render_Init(GameState *gs)
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 5);
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8);
gs->window = SDL_CreateWindow("Game", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1920, 1080, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE);;
gs->window = SDL_CreateWindow("Sandbox", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1920, 1080, SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE);;
gs->glContext = SDL_GL_CreateContext(gs->window);
printf("Created OpenGL window.\n");
@@ -236,7 +236,7 @@ bool Render_Init(GameState *gs)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
printf("Initialized OpenGL.\n");
Shape *shape = Shape_MakePyramid(3);
Shape *shape = Shape_MakePyramid(5);
gs->testShape = shape;
glGenVertexArrays(1, &shape->VAO);
glGenBuffers(1, &shape->VBO);