C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-07-2007, 10:40 PM   #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
__________________
IDE and Compiler - Microsoft® Visual C++® 2005 Express Edition
Operating System - Microsoft® Windows® XP Home Edition SP2

Last edited by TylerMoyer; 11-07-2007 at 10:44 PM.
TylerMoyer is offline   Reply With Quote
Old 11-08-2007, 01:41 AM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,710
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.

Salem is offline   Reply With Quote
Old 11-08-2007, 01:47 AM   #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
TylerMoyer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 11:14 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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