473,385 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help for primitive Graphics in Debian Linux C++

Hi everyone!

I need to be able to plot the output of my cellular automata onto the
pixels of my screen and refresh in real time.

I used to program in Borland C++ on a Windows machine, but currently I
need to run it with a Debian Linux gcc / c++ compiler. The main part of
the code remains practically the same. All I need to do is modify the
graphical output to suit Debian Linux. I believe I need to use the
GTKmm library, but have no idea how to use it -- and am getting
terribly confused by the documentation that presents hundreds of lines
of code to just draw a line or two on the screen.

I just need to draw and refresh pixels on the screen! With the
shortest, clearest possible code. Any pointers anyone?

-Souvik

Jul 23 '05 #1
4 2120
so********@gmail.com wrote:
I need to be able to plot the output of my cellular automata onto the
pixels of my screen and refresh in real time.
There are no means to do that in the Standard C++ language, the only
subject of this newsgroup.
I used to program in Borland C++ on a Windows machine, but currently I
need to run it with a Debian Linux gcc / c++ compiler. [..]
Any pointers anyone?


Begin with 'comp.os.linux.development.*' hierarchy of newsgroups. Also
check out 'gnu.*' hierarchy. There is also 'comp.graphics.*' hierarchy.

V
Jul 23 '05 #2
Sounds like SDL might work for you.

http://www.libsdl.org/
Jul 23 '05 #3
Try Qt from Trolltech, Debian package(s) are available.

Stephan

Jul 23 '05 #4
On 2005-07-15 17:40:34 -0500, so********@gmail.com said:
Hi everyone!

I need to be able to plot the output of my cellular automata onto the
pixels of my screen and refresh in real time.

I used to program in Borland C++ on a Windows machine, but currently I
need to run it with a Debian Linux gcc / c++ compiler. The main part of
the code remains practically the same. All I need to do is modify the
graphical output to suit Debian Linux. I believe I need to use the
GTKmm library, but have no idea how to use it -- and am getting
terribly confused by the documentation that presents hundreds of lines
of code to just draw a line or two on the screen.

I just need to draw and refresh pixels on the screen! With the
shortest, clearest possible code. Any pointers anyone?


- OpenGL with GLU and GLUT
- SDL
- Fox Toolkit
- Qt Toolkit
- GTK/GDK & co

Lots, just pick your choice. For your really simple task, I'd go with
SDL, no hassles for windows like qt, fox or gt, easier than OpenGL.

--
Sensei <se******@tin.it>

cd /pub
more beer

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mike Moum | last post by:
Hi, I'm running Mepix Linux, which is a Debian based distribution. Python-2.3.4 is installed in /usr/lib. When I try to import Tkinter into Python, I get the following error message:...
19
by: Kenneth Lantrip | last post by:
trying to make something like this work... #include <stdio.h> int main (void) { #if defined UNIX printf("\n\n\n%s\n\n", "Program is running on a flavor of Unix."); #endif
2
by: Ashley | last post by:
Please help this vb.net newbie! I would like to draw a graphics primitive. For example, a line, and have that line be it's own object (so that I can have a collection of lines) and have that line...
1
by: Bad_Kid | last post by:
(c++) I have to present a wave which is stored in a file (int numbers, I know sample's freq) on some kind of graph. I've never been using drawing in c++. Any suggestions, the easiest way to do...
4
by: Brian van den Broek | last post by:
Hi all, I know that this is something for which I could (keep) STFW, but I'm mostly ignorant of the subject area and under a bit of a deadline. So I hope people won't mind if I truncate my...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
4
by: Tim Chase | last post by:
Trying to get my feet wet with wxPython (moving from just command-line apps), I tried the obvious (or, at least to me was obvious): Start python, "import wx" and then do a "help(wx)" to see...
0
by: gandalf | last post by:
I am trying to install oracle 9i on debian. The oracle 9i linux installation manual provides a checklist of pre-installation changes that have to be made to linux before installing oracle. I am...
0
by: andre rodier | last post by:
Hello all, I manage a debian linux server, with the well known couple apache/php. I use libgd to make some graphics. I found this library very limited in comparison of what is possible with a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.