GLUT Application logic placement

This is a discussion on GLUT Application logic placement within the C++ Programming forums, part of the General Programming Boards category; I'm using the freeGLUT library. Here are the functions of a GLUT app... keyboard() display() idle() render() and glutMainLoop() cycles ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    83

    Angry GLUT Application logic placement

    I'm using the freeGLUT library. Here are the functions of a GLUT app...

    keyboard()
    display()
    idle()
    render()

    and glutMainLoop() cycles through them. But where does the application logic go? Could someone help me out?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,673
    How about the readme / FAQs / examples from wherever you got the library?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    83
    Yes, I always look in the help files, and do an extensive search on google before I post. It gives examples of functions and how they are used, but there isn't a real application example. I know how I could make an application using Win32 - I want to make a similar application using GLUT.

    Also - What is faster? Win32 or GLUT?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MFC run application by clicking on file...
    By dug in forum Windows Programming
    Replies: 4
    Last Post: 12-02-2004, 03:33 AM
  2. Getting rid of the console window in a glut application.
    By ganonl in forum Game Programming
    Replies: 0
    Last Post: 08-02-2004, 10:48 AM
  3. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 11:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21