LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to use graphics in C++ in linux. (https://www.linuxquestions.org/questions/linux-software-2/how-to-use-graphics-in-c-in-linux-4175669529/)

rahulvishwakarma 02-13-2020 09:00 AM

how to use graphics in C++ in linux.
 
hi to all, I've centos 7.5 in VM. I want to use graphics in c++ in linux, how to do that. I've used libgraph but that is too much old. Please suggest me.

TB0ne 02-13-2020 09:32 AM

Quote:

Originally Posted by rahulvishwakarma (Post 6089525)
hi to all, I've centos 7.5 in VM. I want to use graphics in c++ in linux, how to do that. I've used libgraph but that is too much old. Please suggest me.

We will, AGAIN, suggest you read the "Question Guidelines" link in my posting signature, and do basic research first. Show your own efforts.

Putting "graphics programming in C++" into Google pulls up over 34 *MILLION* hits. There are entire books dedicated to this. Best suggestion is that you read them, look at ANY of the millions of easily-found guides/tutorials/samples, and post back with SPECIFIC QUESTIONS OR PROBLEMS. Don't ask us to look things up for you; seems to be a recurring theme with your posts.

rtmistler 02-13-2020 10:17 AM

Quote:

Originally Posted by rahulvishwakarma (Post 6089525)
hi to all, I've centos 7.5 in VM. I want to use graphics in c++ in linux, how to do that. I've used libgraph but that is too much old. Please suggest me.

I fully agree with TB0ne's points here.

You're saying that you use libgraph. My assumption is that you have a valid background where you're able to search for graphical development packages which use the C++ language.

Please tell us which ones you are considering and perhaps people can offer opinions.

Please bear in mind that just because something is old does not mean it is not maintained, I see active development on their repo. C++ is old, someone reading this may use a different language for graphical development and wonder why that detail is important.

dugan 02-13-2020 10:50 AM

Quote:

Originally Posted by rahulvishwakarma (Post 6089525)
hi to all, I've centos 7.5 in VM. I want to use graphics in c++ in linux, how to do that. I've used libgraph but that is too much old. Please suggest me.

By libgraph you mean that Borland graphics.h header that drew lines and rectangles on the screen, right?

The modern equivalent is SDL2.

https://wiki.libsdl.org/CategoryRender

Make sure the VM can handle it first.

John VV 02-13-2020 11:08 AM

i like "Cimg.h"
http://cimg.eu/download.shtml

see the screenshots
http://cimg.eu/screenshots.shtml

EdGr 02-14-2020 04:47 AM

Cairo is a very powerful 2D drawing library that can draw on pretty much anything.

If you want to develop GUI applications, check out GTK.
Ed

BW-userx 02-14-2020 07:01 AM

I too agree with TB0ne I gave you that one on your other page,
https://www.linuxquestions.org/quest...-a-4175669527/
I think it time you took a step back and get back to the basics, learning yourself how to search the internet for your answers first then if questions on something related to it, fine post.

you can even type some of what you asked in here in googles search engine and see what happens. It works on key phrases and key words. it's rather basic and simple to use really.

"use graphics in c++ in linux"

if you do not like your results rephrase your sentence and use more key words to try and find what you're looking for.

"what api for gui in linux"
"c++ programming gui in linux"
"linux c++ gui programming tutorial"

------------- BORLAND --- On ---- Linux --------- ??
Quote:


Subsidiary
Industry Computer software
Fate acquired by Micro Focus
Predecessor Ashton-Tate Edit this on Wikidata
Founded 1983 in California
Founders Niels Jensen
Ole Henriksen
Mogens Glad
Philippe Kahn
Headquarters Austin, Texas
Defunct 2009
Key people
Erik Prusch (acting CEO)
Products Borland SilkTest, Borland StarTeam, Borland Together, Others
Revenue DecreaseUS$172 million (2008)[1]
Net income
269,000,000 United States dollar (2007) Edit this on Wikidata
Number of employees
approximately 1,100[2]
Parent Micro Focus
Website borland.com



All times are GMT -5. The time now is 11:53 PM.