LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 09-28-2008, 01:41 PM   #1
neilcpp
Member
 
Registered: Jul 2003
Location: England
Distribution: Debian Jessie, FreeBSD 10.1 anything *nix to get my fix
Posts: 329

Rep: Reputation: Disabled
Can you play graphics games in a linux terminal /console without x windows?


when you start linux - not x windows - and you get the black console / terminal , what i want to know is can you play graphics games in this terminal like in msdos.
for example could i play pacman or a opengl game like galacta in the terminal console, without x windows.

My question is also, if not why not? what is the technical reason why not if you cant?
 
Old 09-28-2008, 02:41 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You could if the game was written that way. SDL supports displaying graphics directly to the console framebuffer, and MPlayer can play videos in the framebuffer as well.

But if you were logged into a machine over SSH, or using a serial terminal, it wouldn't work. You need to have a framebuffer to draw to.
 
Old 09-30-2008, 01:16 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by neilcpp View Post
when you start linux - not x windows - and you get the black console / terminal , what i want to know is can you play graphics games in this terminal like in msdos.
for example could i play pacman or a opengl game like galacta in the terminal console, without x windows.

My question is also, if not why not? what is the technical reason why not if you cant?
Technically, as someone else already said, sdl has the means to draw to a framebuffer device, so, provided that the game uses sdl, is not programmed depending on x and you have fb working on your console, then it should work.

The problems is that, in the real world, not much people program for sdl+fb for console.

That's for plain fb. About opengl, my guess is that there's no easy way to do it. You could implement an opengl layer that worked over fb, that's not a problem (i don't know if there's any) but it would be pointless, because intrinsecally and by definition, a framebuffer driver can't have 3d acceleration at all. So, you would be rendering opengl without any hardware support (other than your cpu). It might be doable for basic purposes only...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to play windows games in linux Kingrames Ubuntu 10 09-19-2005 10:50 AM
What is the best way to play windows games on linux? PSIPHON Slackware 7 07-29-2005 02:34 PM
How To Play Windows Games On Linux? RaveR_SwE Linux - Games 15 11-16-2004 12:59 AM
How to play Windows' games in Linux? leduytien Linux - Games 5 10-23-2004 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration