static void cull_face(Gfx_cull_face cf);
static void reshape(int width, int height) {}
static void wireframe(bool enable);
+static void swapbuffers();
+static void begin_drawing();
+static void end_drawing();
bool init_opengl()
{
gfx_cull_face = cull_face;
gfx_reshape = reshape;
gfx_wireframe = wireframe;
+ gfx_swapbuffers = swapbuffers;
+ gfx_begin_drawing = begin_drawing;
+ gfx_end_drawing = end_drawing;
// glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
return true;
else
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
}
+
+static void swapbuffers()
+{
+ glfwSwapBuffers(win);
+}
+
+static void begin_drawing()
+{
+}
+
+static void end_drawing()
+{
+}