mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
Revert example ``simple.c
``
This commit is contained in:
parent
a29f9f5ea4
commit
2050f1b7d8
@ -79,7 +79,6 @@ int main(void)
|
||||
GLFWwindow* window;
|
||||
GLuint vertex_buffer, vertex_shader, fragment_shader, program;
|
||||
GLint mvp_location, vpos_location, vcol_location;
|
||||
double start;
|
||||
|
||||
glfwSetErrorCallback(error_callback);
|
||||
|
||||
@ -132,18 +131,12 @@ int main(void)
|
||||
glVertexAttribPointer(vcol_location, 3, GL_FLOAT, GL_FALSE,
|
||||
sizeof(vertices[0]), (void*) (sizeof(float) * 2));
|
||||
|
||||
start = glfwGetTime();
|
||||
while (!glfwWindowShouldClose(window))
|
||||
{
|
||||
float ratio;
|
||||
int width, height;
|
||||
mat4x4 m, p, mvp;
|
||||
|
||||
if (glfwGetTime() - start > 10.0) {
|
||||
glfwRequestWindowAttention(window);
|
||||
start = glfwGetTime();
|
||||
}
|
||||
|
||||
glfwGetFramebufferSize(window, &width, &height);
|
||||
ratio = width / (float) height;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user