Mouse Train in OpenGL

This is a discussion on Mouse Train in OpenGL within the C Programming forums, part of the General Programming Boards category; Hi, I am trying to bind an object to the PassiveMouseFunc now I can get it to draw the shape. ...

  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
    not-a-geek
    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, 09:28 PM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  3. opengl question. mouse location vs gluperspective
    By revelation437 in forum Game Programming
    Replies: 1
    Last Post: 10-19-2004, 08:18 PM
  4. Mouse 'control' prob in OpenGL
    By gazsux in forum Game Programming
    Replies: 5
    Last Post: 04-17-2003, 11:00 AM
  5. Mouse in OpenGL?
    By TheGr8one in forum Game Programming
    Replies: 0
    Last Post: 11-01-2001, 07:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21