Results 1 to 3 of 3

Thread: Timing drawing of points.

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2009
    Posts
    7

    Timing drawing of points.

    Hi, Im stuck on drawing points at different times.
    I want to draw one set of points for 10 seconds, then another set of points for 10 seconds.
    Do I have to implement this in C or is there a way to do it in opengl?

    Thanks

  2. #2
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: Timing drawing of points.

    OpenGL is a graphic API there is nothing for timers management.
    These opengl based APIs may interest you:

    GLFW
    SDL
    AllegroGL

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2009
    Posts
    7

    Re: Timing drawing of points.

    hi, thanks.
    GLFW has a way of doing it:
    Code :
    t = glfwGetTime();
         printf("\n %f", t);
         // after 10 seconds pause.
         if (t > 10.0 &amp;&amp; t < 10.8)
            system("pause");

Similar Threads

  1. Drawing points before drawing a curve line
    By PepeBeef in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-26-2017, 09:34 PM
  2. Drawing tons of points
    By fizzlesticks in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 04-05-2012, 12:59 AM
  3. Drawing points
    By annette in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-12-2012, 04:28 PM
  4. Drawing milions of points?
    By metalac in forum OpenGL: Basic Coding
    Replies: 16
    Last Post: 07-22-2008, 11:11 PM
  5. drawing arrays of points
    By abner in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 07-15-2007, 08:01 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