Results 1 to 2 of 2

Thread: Need help with some animation with the glutIdleFunc

  1. #1
    Newbie Newbie
    Join Date
    Mar 2017
    Posts
    1

    Need help with some animation with the glutIdleFunc

    It's for my homework. We were told to draw some silly landscape and animate some parts. Im new to OPENGL and coding and my coding is terrible. I'll post my enormous code below. I want to animate the waves ( made a function makeWaves()) for that, want to use the glutIdleFunc with one parameter ( another function void onIdle() {
    time++;
    glutPostRedisplay();
    }

    (( Edit: code deleted ))

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,660
    Hi fipil123. I removed your program since this is homework, you posted the whole thing, and you didn't really ask any specific questions.

    If you have specific OpenGL questions, feel free to ask them here. If you have a "short" snippet of code you want to post that illustrates your specific question, that's fine. But please avoid posting large amounts of code. This isn't a debugging service, and it will increase the likelihood that nobody takes the time to pick through it and try to help you.

    In the future, if/when you post a code snippet, please surround it with tags ([highlight=cpp]...[/highlight] or [code]...[/code]) as it makes it much easier for folks to read. Thanks.

Similar Threads

  1. glutIdleFunc slow down animation
    By pbivens in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-06-2018, 06:54 PM
  2. glutIdleFunc
    By hjk734 in forum OpenGL: General
    Replies: 2
    Last Post: 09-20-2010, 04:16 PM
  3. glutIdleFunc and animation
    By gazsux in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 03-21-2003, 03:57 AM
  4. glutIdleFunc
    By oxhuangfei in forum OpenGL: General
    Replies: 0
    Last Post: 01-25-2003, 05:11 AM
  5. Help on glutIdleFunc
    By Vasilis in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 11-23-2000, 04:48 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