MCPcopy Create free account
hub / github.com/cginternals/glbinding / main

Function main

source/examples/comparison/main.cpp:117–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117int main(int /*argc*/, char* /*argv*/[])
118{
119 glfwSetErrorCallback(errorfun);
120
121 if (!glfwInit())
122 return 1;
123
124 glfwDefaultWindowHints();
125 glfwWindowHint(GLFW_VISIBLE, false);
126
127#ifdef SYSTEM_DARWIN
128 glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
129 glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2);
130 glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, true);
131 glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
132#endif
133
134 GLFWwindow * window = glfwCreateWindow(320, 240, "", nullptr, nullptr);
135
136 if (!window)
137 {
138 glfwTerminate();
139 return -1;
140 }
141
142 glfwMakeContextCurrent(window);
143
144 compare();
145
146 glfwTerminate();
147 return 0;
148}

Callers

nothing calls this directly

Calls 1

compareFunction · 0.85

Tested by

no test coverage detected