shader update strings
This commit is contained in:
14
src/main.cpp
14
src/main.cpp
@@ -300,20 +300,20 @@ int main_cmd() {
|
||||
}
|
||||
|
||||
int main_gfx() {
|
||||
Arena *arena = arenaAlloc(Megabytes(128));
|
||||
|
||||
WindowDims window_dims = { 800, 600 };
|
||||
GLFWwindow *window = init_window_and_gl(&window_dims);
|
||||
if (!window) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Arena *arena = arenaAlloc(Megabytes(128));
|
||||
app_state.current_polycube = 0;
|
||||
app_state.last_polycube_visible = 6;
|
||||
app_state.active_shader = 0;
|
||||
app_state.polycubes = {};
|
||||
|
||||
app_state.current_polycube=0;
|
||||
app_state.last_polycube_visible=6;
|
||||
app_state.active_shader=0;
|
||||
app_state.polycubes={};
|
||||
|
||||
Shader phong_shader = createShader("../assets/shaders/phong-solid.vertex.glsl", "../assets/shaders/phong-solid.fragment.glsl");
|
||||
Shader phong_shader = createShader("../assets/shaders/phong-solid.vertex.glsl"_s, "../assets/shaders/phong-solid.fragment.glsl"_s);
|
||||
app_state.active_shader = &phong_shader;
|
||||
|
||||
cube_mesh = createMesh("../assets/models/c000000.obj");
|
||||
|
||||
Reference in New Issue
Block a user