Thread: glut zoom

  1. #1
    Registered User
    Join Date
    Aug 2022
    Posts
    5

    glut zoom

    hi,

    I compiled and ran the code in this link:
    Free glut, Rastering a .raw file

    However, i am not able to modify it to zoom into a x , y coordinates using mouse click.
    I used glpixelzoom, but that expands the whole image.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,670
    1. There are several posts of code, which one did you end up basing your work off.

    2. You need to post your actual attempt.
    Just saying "I tried x and y didn't happen" isn't helping us to figure out where you went wrong.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Aug 2022
    Posts
    5
    to zoom the whole image i just added glPixelZoom before glDrawPixels. zoom factor got obtained from a mouse callback function. For zoom into a mouse x,y code, got rid of when cleaning. can't provide more for now.
    Last edited by cprogg; 07-18-2024 at 10:50 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hiring Experienced C++ Developer for Zoom Windows SDK Integration
    By jss2050 in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 11-15-2021, 09:37 AM
  2. implementing box zoom
    By mammaiap in forum Game Programming
    Replies: 1
    Last Post: 12-01-2010, 09:27 AM
  3. Zoom
    By jma619 in forum C Programming
    Replies: 1
    Last Post: 09-13-2009, 05:13 AM
  4. Scrolling/zoom problems
    By IdunnO in forum Windows Programming
    Replies: 2
    Last Post: 03-30-2006, 02:28 AM
  5. [Newbie] Zoom + Recent Files
    By ilmarculin in forum C# Programming
    Replies: 2
    Last Post: 03-24-2005, 01:20 PM

Tags for this Thread