Results 1 to 5 of 5

Thread: controlling the minimum window dimention with glut

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2005
    Posts
    10

    controlling the minimum window dimention with glut

    Hi all

    Can I control the minimum dimentions of the window with glut?
    I use glutCreateWindow, and I want to prevent the user from resizing it to too-small dimentions.

    Thanks

  2. #2
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: controlling the minimum window dimention with glut

    I don't know, you could probably do this in the resize handler that you write.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Aug 2003
    Posts
    369

    Re: controlling the minimum window dimention with glut

    I think that you can't. I'm not 100% sure though. I guess you'd have to use the windowing system's functions to accomplish that.

  4. #4
    Member Contributor
    Join Date
    Jan 2005
    Location
    Karachi, Pakistan
    Posts
    85

    Re: controlling the minimum window dimention with glut

    Sure you can. Use glutReshapeWindow(yourWidth, yourHeight) in the resize handler.

  5. #5
    Junior Member Newbie
    Join Date
    Jan 2005
    Posts
    10

    Re: controlling the minimum window dimention with glut

    Thanks

Similar Threads

  1. glut window as mfc sub window (same focus)
    By Ishmael in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-21-2011, 04:04 AM
  2. Replies: 6
    Last Post: 08-25-2010, 07:08 AM
  3. how to limit the GLUT window resize to a minimum size
    By yalmar in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 11-22-2006, 01:07 PM
  4. Attaching a glut window to window's window
    By jowins in forum OpenGL: Windows
    Replies: 2
    Last Post: 11-17-2005, 02:24 AM
  5. How to activate a GLUT window from a MFC window?
    By in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 04-24-2002, 05:47 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