Results 1 to 3 of 3

Thread: display images randomly

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2007
    Location
    malaysia
    Posts
    3

    display images randomly

    Hey guys, am using opengl with borland c++, and i want to display images randomly. i.e: I wrote 5 functions , each of which create polygons like cicle, square, etc. And i have tried to call these functions one after the other but only the first image is displayed on the screen(may be this is case of mainloop()). What i want is:
    one image should be displayed randomly first ,then it waits for 1 minute on the screen and the second image will be displayed(i.e so that the first will be destroyed).........

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

    Re: display images randomly

    If you use depth testing, you should clean depth before drawing something new.

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2007
    Location
    malaysia
    Posts
    3

    Re: display images randomly

    Ok, What do u advice me to create ,lets say 5 images, and display them one after the other randomly. I mean what concepts( like function,etc.)should i have to read and use?

Similar Threads

  1. Texture of randomly placed squares
    By shouwel in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-19-2013, 05:25 AM
  2. Randomly Coloured Polygons
    By mesmeric in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 10-26-2005, 09:13 AM
  3. rage 128 pro keeps crashing randomly
    By in forum OpenGL: User Software
    Replies: 1
    Last Post: 12-11-2002, 01:29 PM
  4. display images wit opengl
    By huangzl99 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-03-2001, 08:00 AM
  5. display images in opengl
    By huangzl99 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-02-2001, 01:46 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