mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Removed uses of GLU in tests.
This commit is contained in:
parent
7653f3af49
commit
cb9d194f86
@ -29,7 +29,6 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#define GLFW_INCLUDE_GLU
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@ -65,7 +64,7 @@ static void framebuffer_size_callback(GLFWwindow* window, int width, int height)
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
gluOrtho2D(0.f, window_width, 0.f, window_height);
|
||||
glOrtho(0.f, window_width, 0.f, window_height, 0.f, 1.f);
|
||||
}
|
||||
|
||||
static void cursor_position_callback(GLFWwindow* window, double x, double y)
|
||||
|
@ -29,7 +29,6 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#define GLFW_INCLUDE_GLU
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <GL/glext.h>
|
||||
|
||||
@ -125,7 +124,7 @@ int main(int argc, char** argv)
|
||||
printf("Context reports FSAA is unavailable\n");
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
gluOrtho2D(0.f, 1.f, 0.f, 0.5f);
|
||||
glOrtho(0.f, 1.f, 0.f, 0.5f, 0.f, 1.f);
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
||||
while (!glfwWindowShouldClose(window))
|
||||
|
@ -27,7 +27,6 @@
|
||||
//
|
||||
//========================================================================
|
||||
|
||||
#define GLFW_INCLUDE_GLU
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@ -100,7 +99,7 @@ static void draw_quad(GLuint texture)
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
gluOrtho2D(0.f, 1.f, 0.f, 1.f);
|
||||
glOrtho(0.f, 1.f, 0.f, 1.f, 0.f, 1.f);
|
||||
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glBindTexture(GL_TEXTURE_2D, texture);
|
||||
|
Loading…
Reference in New Issue
Block a user