Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. OpenGL: How do I use idle func in Windows without using glutIdleFunc()

OpenGL: How do I use idle func in Windows without using glutIdleFunc()

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicsgame-devlinuxhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    scody
    wrote on last edited by
    #1

    Hi all, I am new to windows programming, I am converting my OpenGL program written in Linux platform into Windows platform. I have used glutIdleFunc() for idle callback func, now I would like to use the same callback func as idle func in Windows platform. How can I use a func as idle func in Windows without using GLUT. Any help would be greatly appriciated. Thanks Scody

    E 1 Reply Last reply
    0
    • S scody

      Hi all, I am new to windows programming, I am converting my OpenGL program written in Linux platform into Windows platform. I have used glutIdleFunc() for idle callback func, now I would like to use the same callback func as idle func in Windows platform. How can I use a func as idle func in Windows without using GLUT. Any help would be greatly appriciated. Thanks Scody

      E Offline
      E Offline
      El Corazon
      wrote on last edited by
      #2

      I guess it ultimately depends on how you write your own OpenGL program. You can still use GLUT and freeGLUT under Windows platforms, that keeps your code mostly identicle between platforms. The other is to insert your code into it's own call system. Since freeglut is "free" you can also examine the code to see how the idle function was used. http://freeglut.sourceforge.net/docs/api.php[^]

      _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups