Thread: Mouse Train in OpenGL

  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    68

    Mouse Train in OpenGL

    Hi,

    I am trying to bind an object to the PassiveMouseFunc

    now I can get it to draw the shape. however when i move the mouse it creates a trail, I don't want a trail.

    I am already using double buffering, is there a way to get rid of the trail?

    this is what i am talking about

    Thx
    -Ti22-

  2. #2
    Registered User
    Join Date
    Apr 2004
    Posts
    210
    Quote Originally Posted by Ti22
    I am already using double buffering, is there a way to get rid of the trail?
    Issue a gl_clear() on the colorbuffer of your current backbuffer, then draw the object to said buffer and swap().

    (You'd probably get better help in Game Development)
    Last edited by Nyda; 11-07-2004 at 12:27 PM.
    main() { int O[!0<<~-!0]; (!0<<!0)[O]+= ~0 +~(!0|!0<<!0); printf("a function calling "); }

  3. #3
    Registered User
    Join Date
    Jan 2004
    Posts
    68
    thx for the reply, but how do i do that? I posted in the Game Programming ,so mods can delete this.
    -Ti22-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Boom, Headoshot!!
    By mrafcho001 in forum A Brief History of Cprogramming.com
    Replies: 50
    Last Post: 07-21-2005, 08:28 PM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  3. opengl question. mouse location vs gluperspective
    By revelation437 in forum Game Programming
    Replies: 1
    Last Post: 10-19-2004, 07:18 PM
  4. Mouse 'control' prob in OpenGL
    By gazsux in forum Game Programming
    Replies: 5
    Last Post: 04-17-2003, 10:00 AM
  5. Mouse in OpenGL?
    By TheGr8one in forum Game Programming
    Replies: 0
    Last Post: 11-01-2001, 07:19 PM