mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Added glfwGetCurrentWindow.
This commit is contained in:
@@ -72,6 +72,11 @@ static GLuint create_texture(void)
|
||||
|
||||
static void draw_quad(GLuint texture)
|
||||
{
|
||||
int width, height;
|
||||
glfwGetWindowSize(glfwGetCurrentWindow(), &width, &height);
|
||||
|
||||
glViewport(0, 0, width, height);
|
||||
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
gluOrtho2D(0.f, 1.f, 0.f, 1.f);
|
||||
|
||||
Reference in New Issue
Block a user