+
+static void clbk_mouse(GLFWwindow *win, int bn, int action, int mods)
+{
+ button[bn] = action == GLFW_PRESS;
+ glfwGetCursorPos(win, &prev_x, &prev_y);
+}
+
+static void clbk_reshape(GLFWwindow *win, int width, int height)
+{
+ gfx_viewport(0, 0, width, height);
+ aspect = (float)width / (float)height;
+ mprojection = calc_projection_matrix(45, aspect, 0.5, 1000.0);
+
+ win_h = height;
+ win_w = width;
+}
+
+static void display()
+{
+ camera->set_orbit_params(phi, theta, dist);
+
+ gfx_clear(0.76, 0.3, 0.43);
+
+ rground->draw();
+ rcow->draw();
+}
\ No newline at end of file