Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Importing Files, Mouse/Keyboard Events

  1. #1
    Intern Newbie
    Join Date
    Sep 2002
    Location
    Cookeville, TN, United States
    Posts
    36

    Importing Files, Mouse/Keyboard Events

    I'm working on a cross-platform game with a Windows user, while I'm on Mac OS 10. Is it possible to develop code so that it is entirely cross-platform? Specifically loading textures and models, and listening for mouse and keyboard events. I was planning to use OGRE but my team member thinks that would make things too easy...


    Basically I'm just wondering if there's a way to write entirely cross-platform code so that our efforts won't be split...

    -Dogcow "moof!"
    -Dogcow "moof!"
    Visit The Underground

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Dec 2001
    Location
    Wellington, New Zealand
    Posts
    548

    Re: Importing Files, Mouse/Keyboard Events

    SDL (http://www.libsdl.org) and GLUT are both possible solutions. GLFW (http://glfw.sourceforge.net/) is another, though the Mac port is a work-in-progress (or not so much in progress, I haven't touched it in months).

  3. #3
    Intern Newbie
    Join Date
    Sep 2002
    Location
    Cookeville, TN, United States
    Posts
    36

    Re: Importing Files, Mouse/Keyboard Events

    Yeah, GLUT isn't a possibility as it seems to not like multiple simultaneous key events. SDL does look good, though documentation is a bit more scarce than I really like. Hopefully I'll be able to find some examples for it eventually.

    -Dogcow "moof!"
    -Dogcow "moof!"
    Visit The Underground

  4. #4
    Advanced Member Frequent Contributor
    Join Date
    Dec 2001
    Location
    Wellington, New Zealand
    Posts
    548

    Re: Importing Files, Mouse/Keyboard Events

    GLUT "likes" simultaneous key events just as much as any other event-driven API... you'll get ups and downs at appropriate times, it's up to you to store the state and react appropriately in your idle/display routines. What it doesn't like is modifier keys.

    Documentation on SDL is very good, and there are many examples out there. I assume from your statement you simply haven't found http://www.libsdl.org/ ...

    [This message has been edited by OneSadCookie (edited 06-04-2003).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •