Linux question.

This is a discussion on Linux question. within the Linux Programming forums, part of the Platform Specific Boards category; Hey, I am getting into OpenGL with C++ & wanting to build a small game for UBUNTU BERYL linux. Now, ...

  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 09: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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 09: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, 09:03 AM
  4. question from linux board ( not os dependant )
    By crypto in forum C Programming
    Replies: 4
    Last Post: 11-15-2002, 01: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

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