Thread: Linux question.

  1. #1
    Registered User
    Join Date
    Jun 2007
    Location
    Usa, Pa
    Posts
    39

    Linux question.

    Hey, I am getting into OpenGL with C++ & wanting to build a small game for UBUNTU BERYL linux. Now, can I build the game under the Windows OS & still make it work with Linux as a cross-platform game or do I have to develop it under the UBUNTU BERYL Linux OS?

    I want to some day make games multi-platform for Windows, Linux & Mac, but when I switch to UBUNTU BERYL Linux can I develop a game with OpenGL under Linux & have the code work for Windows, UBUNTU BERYL Linux & Mac? How does it work, will have to just change some of code for each OS? Also, do I have to create the game for different Linux versions or doesn't that matter?


    Thank you,

    Tyler Moyer
    Last edited by TylerMoyer; 11-07-2007 at 10:44 PM.
    IDE and Compiler - Microsoft® Visual C++® 2005 Express Edition
    Operating System - Microsoft® Windows® XP Home Edition SP2

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You should only need to change a small bit of the startup code for each platform. The whole idea of using OpenGL on both platforms is that the bulk of the code would remain the same.

    The tutorials at http://nehe.gamedev.net/ show the same program written for many different platforms. Use these to guide your separation of the platform specific startup code in your development.
    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.

  3. #3
    Registered User
    Join Date
    Jun 2007
    Location
    Usa, Pa
    Posts
    39
    Quote Originally Posted by Salem View Post
    You should only need to change a small bit of the startup code for each platform. The whole idea of using OpenGL on both platforms is that the bulk of the code would remain the same.

    The tutorials at http://nehe.gamedev.net/ show the same program written for many different platforms. Use these to guide your separation of the platform specific startup code in your development.
    Thank you so much!
    IDE and Compiler - Microsoft® Visual C++® 2005 Express Edition
    Operating System - Microsoft® Windows® XP Home Edition SP2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I have a question about hard drives in Linux
    By Overworked_PhD in forum Tech Board
    Replies: 2
    Last Post: 12-29-2007, 10:29 AM
  2. sockets in linux question
    By matrixon in forum Networking/Device Communication
    Replies: 6
    Last Post: 08-27-2006, 01:48 PM
  3. Linux header question
    By invisibleghost in forum Linux Programming
    Replies: 5
    Last Post: 02-17-2005, 10:03 AM
  4. question from linux board ( not os dependant )
    By crypto in forum C Programming
    Replies: 4
    Last Post: 11-15-2002, 02:09 AM
  5. Question about LINUX
    By River21 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-17-2001, 06:39 PM