Results 1 to 2 of 2

Thread: get windows size in opengl

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2002
    Posts
    1

    get windows size in opengl

    hi,
    i have to display the window size of the current open window by printing the size in it. how do i do it? what opengl/glut functions do i use? i also have reshapefunc in my program. i can also use that to get the size, but i dont know how. thanks for yr help.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    Huntsville, AL. USA
    Posts
    302

    Re: get windows size in opengl

    glutGet(GLUT_WINDOW_WIDTH)
    glutGet(GLUT_WINDOW_HEIGHT)
    Obsessive - A word used by the lazy to describe the motivated.

Similar Threads

  1. Replies: 10
    Last Post: 01-04-2007, 12:02 AM
  2. Helpppp with GLUT, fullscreen and size of windows
    By Giordano in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-30-2005, 07:24 AM
  3. Get Windows Size
    By baenni in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-15-2004, 08:02 AM
  4. screen & windows size
    By vemer in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-17-2003, 08:51 AM
  5. Replies: 1
    Last Post: 06-09-2001, 09:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean