Results 1 to 2 of 2

Thread: Same image twice

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    27

    Same image twice

    I want to draw the same image that i have in my screen in a small portion of the screen at the same time. (i guess i can use glViewport). Wich is the best way to do that, do i have to write the code again?? I dont think so because that way the calculus are made twice.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2001
    Location
    Princeton, NJ
    Posts
    380

    Re: Same image twice

    well you could use glCopyTexSubImage2d, look it up in the redbook, to make a texture out of the window, then just draw a small quad with that texture

Similar Threads

  1. Replies: 1
    Last Post: 07-09-2017, 07:07 AM
  2. Replies: 1
    Last Post: 05-07-2017, 03:36 AM
  3. read gray image and color index image.
    By yjh1982 in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 08-21-2010, 04:09 AM
  4. Replies: 1
    Last Post: 01-31-2005, 11:01 AM
  5. problem in drawing a texture image(monochrome image)
    By philm in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-07-2003, 10:45 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