123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|551|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> [C/C++] Graphic

Page : 1 2 Next
Prev
Fri, 10 Aug 2007, 14:44
iusinbello
Hum... I need some help about making graphical applications via C/C++... First of all: What I need?

My compiler: Dev-C++.

-=-=-


Fri, 10 Aug 2007, 14:50
blanko1324
You could either:

-Learn OpenGL
-Learn DirectX

Or, start a bit easier with a graphics engine like HGE, which would be my suggestion. It's what I use now. Just go though the first four or five tutorials and you'll be good to go.

And careful, your newb is showing. (Just kidding.)



-=-=-
My Twitter
Fri, 10 Aug 2007, 15:00
JL235
If your new to programming I wouldn't bother messing with OpenGL or DirectX. You can of course also use SDL, which is a very popular choice and has it's own drawing functions. It can also be easily used with OpenGL.

You could also try getting a book on game programming with C++. There are lots out there and
GameDev has a big book review section you could look through for any recommendations.
Fri, 10 Aug 2007, 15:02
iusinbello
Hum... HGE... I'll try it.

And careful, your newb is showing. (Just kidding.)


Lol... for a moment i thought you were referring to https://www.newb.ie/...


-=-=-


Fri, 10 Aug 2007, 15:04
iusinbello
@Diablos: I dont want to make "games" via C/C++... I will use the graphical interface only for 2D apps...

-=-=-


Fri, 10 Aug 2007, 15:06
Jayenkai
Wow.. That's such a badly chosen web address!

Back on topic, Dev-C++ is a decent choice. IIRC it contains most thing to get you up and running.
Look in the directories for the examples, and see if there's an OpenGL one in there. If there is, try copy+pasting the directory, and hack+slashing the code contained within, until you can figure out what the heck it's all doing!

Or, try something like HGE.
But you'll still have to faff about getting it all installed, and running happily!

-=-=-
''Load, Next List!''
Fri, 10 Aug 2007, 15:23
JL235
Are you running Windows? If so get Visual Studio. Sorted.
Fri, 10 Aug 2007, 16:09
iusinbello
whoa your right Jay! I have found a nice OpenGl example!

-=-=-


Fri, 10 Aug 2007, 16:14
Jayenkai
Command List
Tutorials (The lessons on the left)

-=-=-
''Load, Next List!''
Fri, 10 Aug 2007, 16:38
iusinbello


-=-=-


Fri, 10 Aug 2007, 19:50
hyruleknight
if you are a windows user get visual studio from microsoft's website. it is the best C/C++ IDE i have ever used

if you are a mac user then try Xcode and if you use linux try KDevelop

-=-=-
i like green haired girls...
Fri, 10 Aug 2007, 21:34
power mousey

umm.....hmmmmm.....perhaps???

well, I have the Dev C++ package as well.
I also have and used Allegro game library too.
At the time the latest versions of both Allegro
and the Dev C++ system were in this book I bought
a few years ago.
I think the book is in its third edition now.
The book is "Game Programming All In One" and by
Jonathan S. Harbour

cheers
power mousey

Sat, 11 Aug 2007, 11:21
Phoenix
Visual Studio is a very good IDE (msdn2.microsoft.com/en-us/express/aa975050.aspx), and if you're just starting I recommend SDL.
Sat, 11 Aug 2007, 11:49
JL235
What exactly are you planning to make? That would probably help with suggestions. Cos if your making applications then don't use OpenGL, DirectX or SDL. They are all for graphics not GUI's.
Sat, 11 Aug 2007, 13:51
iusinbello
Hem you are right Diablos... Infact currently I am using windows API.
If anyone is interested in...:
https://www.winprog.org/tutorial/start.html

-=-=-


Sat, 11 Aug 2007, 15:52
Blitz3Dman
So... if I want to create graphical effects in C++ I have to go download something extra..?

I wonder the same thing and all I really want is the C++ equivalent of Write and Read Pixel, although preferably with RGB rater than hex.

Is there a command for this or is downloading more stuff the only way to go?

-=-=-
There are 10 kinds of people in this world -

( Insert 16 remarks about to what extent people know hex here )
Sat, 11 Aug 2007, 15:55
ingenium


Good beer.
Sat, 11 Aug 2007, 17:02
JL235
Blitz3DMan I wonder the same thing and all I really want is the C++ equivalent of Write and Read Pixel, although preferably with RGB rater than hex.

Is there a command for this or is downloading more stuff the only way to go?

No, there is not a command. Languages don't do graphics, libraries do. So you will have to download an extra library and try it out. Although languages are kind of moving away from being just a language. C# (although technically .NET) and Java come with standard GUI and 2D libraries.

@iusinbello: Again I recommend using Visual Studio. It's built for making not applications, but Windows applications. You could also try using a higher level language as it will be (on average) easier and less work for making an application. Namely a .NET language (C#, F#, J#, VB) or Java.
Sat, 11 Aug 2007, 17:20
mike_g
In C you can perform pixel writing operations much faster, because you can write each one directly to memory, instead of having to pass co-ordinates into a function which has to convert them.

If you use decide to use SDL then heres a writepixel function I made:

Sun, 12 Aug 2007, 10:03
Afr0
Just a slight followup to Ingenum's post: To do anything with Win32 these days, you have to download the Windows SDK if you're using Visual Studio, and I think perhaps you even should if you're using DevC++, because it most likely doesn't contain the latest header files etc.

Windows SDK for Vista and XP

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Mon, 13 Aug 2007, 08:11
abc
Just a few things:
do anyone knwo that iusinbello/ingenium/ingenium1 are the same guy/lamer?

Mon, 13 Aug 2007, 08:57
Jayenkai
/lamer

Ingenium left, and wanted his account deleted.
Then he made another account.

And now he's made a third one...
Clogging up my database, and making me rather annoyed.

-=-=-
''Load, Next List!''
Mon, 13 Aug 2007, 08:59
abc
..Really?
So, why does he continue posting with all his accounts?

Mon, 13 Aug 2007, 10:37
shroom_monk
iusinbello = ingenium? Now I'm even more confused, after I noticed this 2 days ago...

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Mon, 13 Aug 2007, 10:41
abc
"Now I'm even more confused, after I noticed this 2 days ago..." ?

It was just to point out that he auto-replied to himself on the same thread..

Mon, 13 Aug 2007, 10:48
JL235
No he hasn't. I believe two of his accounts are also kinda merged together by Jay. It means he looks like Ingenium1 on the forum but just Ingenium in the MudChat.

Besides, has he actually done anything wrong?
Page : 1 2 Next
Prev