Results 1 to 9 of 9

Thread: deleting object

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2011
    Location
    Dorset
    Posts
    10

    deleting object

    Hello friends,

    I want to make a cube and delete it when i translate it to other position. Is that possible??

    thanks
    roy

  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    458

    Re: deleting object

    Maybe with using double buffering and swapping buffers and the end of each rendering calls ?

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2011
    Location
    Dorset
    Posts
    10

    Re: deleting object

    thanks but i am already using double buffering and using the swap call! is there any specific call which need to be implemented to make the translated cube invisible at the next position??

  4. #4
    Senior Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    458

    Re: deleting object

    Clearing the color buffer ?

  5. #5
    Senior Member Regular Contributor
    Join Date
    Nov 2010
    Location
    Brazil, Rio de Janeiro
    Posts
    147

    Re: deleting object

    Yes, do not draw the cube at the "next position" this will make it invisible.

  6. #6
    Senior Member Regular Contributor
    Join Date
    Dec 2007
    Posts
    258

    Re: deleting object

    just put sticky tape over your screen, gone ! just like magic

  7. #7
    Senior Member Frequent Contributor
    Join Date
    Mar 2009
    Location
    Karachi, Pakistan
    Posts
    810

    Re: deleting object

    Once u have translated the cube to the new position, dont draw it.
    Regards,
    Mobeen

  8. #8
    Senior Member Regular Contributor
    Join Date
    Nov 2010
    Location
    Brazil, Rio de Janeiro
    Posts
    147

    Re: deleting object

    Quote Originally Posted by mobeen
    Once u have translated the cube to the new position, dont draw it.
    Like I said

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

    Re: deleting object

    "Doctor, doctor, when I do this, it hurts !
    - then stop doing it."

Similar Threads

  1. Should I disable all attributes before deleting a vertex array object?
    By ProgrammerX in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 04-04-2018, 01:48 AM
  2. need help with Assignment operator for big object class when deleting
    By mrMatrix in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 04-30-2014, 03:51 PM
  3. very easy-deleting an object?
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 01-08-2004, 08:34 AM
  4. Deleting an object
    By Suf in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 07-26-2002, 04:11 AM
  5. Deleting Textures
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-05-2001, 10:36 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