Results 1 to 5 of 5

Thread: Help regarding rubberbanding...

  1. #1
    Member Newbie
    Join Date
    Jan 2003
    Location
    rawalpindi,punjab,Pakistan
    Posts
    39

    Help regarding rubberbanding...

    hey...
    I have implemented basic rubberband drawing but at the moment I am refreshing the complete drawing whenever a new item is added or mouse is moved. however it will not be possible to do so when application get bigger...
    how to remove only the trails of mouse motion and eradicate the need of refreshing the entire diagram..since not expereinced in graphics programming need you help urgently

    thanks

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Help regarding rubberbanding...

    Copy your drawing to texture before starting the rubberband : you can use glCopyTexSubImage (basic and simple, but does not work if window is partially covered by another for instance), pbuffers (old and clumsy) or FBO .

    Then simply draw a textured quad with this texture when doing interactive rubberbanding.

  3. #3
    Member Newbie
    Join Date
    Jan 2003
    Location
    rawalpindi,punjab,Pakistan
    Posts
    39

    Re: Help regarding rubberbanding...

    Thanks for the reply.
    What about using XOR operation?
    thanks

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Help regarding rubberbanding...

    forget it.

  5. #5
    Member Newbie
    Join Date
    Jan 2003
    Location
    rawalpindi,punjab,Pakistan
    Posts
    39

    Re: Help regarding rubberbanding...

    Please explain..I have seen tutorials that suggesty it
    thanks for the help

Similar Threads

  1. Rubberbanding with XOR??
    By Ali in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-12-2007, 10:10 PM
  2. rubberbanding in opengl
    By princeoflightning in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 02-26-2004, 10:13 AM
  3. rubberbanding in opengl
    By princeoflightning in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 02-25-2004, 05:27 PM
  4. Rubberbanding Tutorial
    By GlutNewbie in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-01-2003, 04:21 PM
  5. XOR Rubberbanding troubles...
    By chennes in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-06-2001, 04:22 PM

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