Thread: EmptyGlut

  1. #1
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640

    EmptyGlut

    i hacked together an empty template for using GLUT and OpenGL. It sets up a window and registers most of the commonly used GLUT callbacks to empty functions. It also creates a right-click menu with a submenu. This is just a skeleton to make setting up GLUT projects easier. Thought some of you might find this handy....

    edit: btw, the zip includes a Makefile for compilation on linux systems. In theory you should only have to uncomment the #include <windows.h> from the top to run this in windows... i havent actually tried though.
    Last edited by Perspective; 08-23-2004 at 07:57 PM.

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    pretty cool, I guess. It works on linux just fine i didn't have to comment out anything. I don't know why you did this though. Everyone knows how to set up glut(hopefully). You did teach me the submenu thing though. Thanx

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Quote Originally Posted by linuxdude
    I don't know why you did this though. Everyone knows how to set up glut(hopefully). You did teach me the submenu thing though. Thanx
    well, i did this so i dont have to set up GLUT everytime i want to make an app or toy with an idea. this way i just copy the file and fill in the functions. Its just a convenience thing really.

    Submenu's are handy, your welcome

  4. #4
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    your lazy perspective

  5. #5
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Quote Originally Posted by linuxdude
    your lazy perspective
    ...is there any other way to be?

  6. #6
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    No other way at all. Why bother having to type everything in everytime when you can just get on the web and grab a template (I guess that would be a good name for this) that somebody else made?

Popular pages Recent additions subscribe to a feed