You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

AP.Sakkthivel

Professional

  • "AP.Sakkthivel" is male
  • "AP.Sakkthivel" started this thread

Posts: 563

Location: India

Occupation: Application Development Using Qt

  • Send private message

1

Tuesday, June 21st 2005, 10:30am

Graphics in C++[Solved]

In my school days i was using Turbo c++ 3.0 ;

With using that compiler alone we were able to create graphics programs

but till now i dont know how to create graphics images in linux based compiler like gcc / cc

Is there separate routine for that ?

i thing there is no file called graphics.h in gcc / cc environment...


pl let me know if any body answer for this..?
Regards
- $akthi

You never know, how soon it may be too late…

This post has been edited 1 times, last edit by "AP.Sakkthivel" (Jun 22nd 2005, 11:43am)


jacek

Master

  • "jacek" is male

Posts: 2,729

Location: Warsaw, Poland

  • Send private message

2

Tuesday, June 21st 2005, 2:50pm

RE: Graphics in C++

You were using Borland's library with some graphics routines that worked in DOS. Standard C and C++ libraries don't provide anything like that.

hatulflezet

Professional

Posts: 1,301

Location: Munich Germany

Occupation: Programmer

  • Send private message

3

Wednesday, June 22nd 2005, 9:59am

To contenue what jacek said, you need a graphics library (or write your own ) to use graphics.
The question is also, what do you mean with graphics, since anything which has a window under a windowing system like X or windows, is already graphic by definition, therefore QT is a such a graphics library.
Click here! I dare ya'!! :]
Project Archimedes
----------------------------------------------------------
"Don't panic, and thanks for all the fish!"

AP.Sakkthivel

Professional

  • "AP.Sakkthivel" is male
  • "AP.Sakkthivel" started this thread

Posts: 563

Location: India

Occupation: Application Development Using Qt

  • Send private message

4

Wednesday, June 22nd 2005, 10:31am

There were two modes supported Text mode and graphics mode


do we have like that in Linux or not..?
Regards
- $akthi

You never know, how soon it may be too late…

5

Wednesday, June 22nd 2005, 11:12am

I remember those good ol' times too: using Borland's BGI interface to simple draw lines and stuff, but that was under DOS.
Now in Linux you have two main possibilities: using the framebuffer device or using a X server
Framebuffer has lower system requirements and there are a lot of windowing toolkits and widget libraries available (e.g. DirectFB or QT/embedded) or you can 'poke' it in directly
On X system you can use X, QT & KDE, Motif and lots more to create a canvas to draw something
Finishing this you will have a lot of overhead to get some simple graphics working.
Or, if this is sufficient you can use AALib on a text console...
There's no place like ::1

AP.Sakkthivel

Professional

  • "AP.Sakkthivel" is male
  • "AP.Sakkthivel" started this thread

Posts: 563

Location: India

Occupation: Application Development Using Qt

  • Send private message

6

Wednesday, June 22nd 2005, 11:43am

Thanks to all for the update
Regards
- $akthi

You never know, how soon it may be too late…

  • "wysota" is male

Posts: 4,276

Location: Warsaw, POLAND

  • Send private message

7

Wednesday, June 22nd 2005, 12:18pm

There is also the curses library that provides some graphical primitives.