Thread: clearviewport function

  1. #1
    Registered User
    Join Date
    Jan 2007

    Question clearviewport function

    I need help with viewports!

    am using C v.2.01 under windows XP. Part of my C program code defines a viewport. A later part of the program clears the viewport then the device is also cleared. A drawpoly follows the two routine. The problem is that only a part of the polygon is visible. It appears that the polygon is inscribed in a screen dimension that was actually previously defined as the viewport. Could it be that the viewport still exists? If so, how can i reset the display back to full screen.

  2. #2
    Registered User
    Join Date
    Oct 2001
    You can try:
       setviewport(0, 0, getmaxx(), getmaxy(), 0);
    Or another possibility is:

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  3. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  4. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  5. const at the end of a sub routine?
    By Kleid-0 in forum C++ Programming
    Replies: 14
    Last Post: 10-23-2005, 06:44 PM