Page 1 of 1

C++ example?

Posted: Wed May 05, 2004 3:30 am
by Natzor
I was wondering if somebody could use OpenGL & Dev-C++ and make an example program using the given H files... that could detect mouse clicks&the mouse position along with detecting keyboard input?
Kinda like this: Three buttons. Button1 can be clicked and dragged. If you click button two then button1 with say 'clicked' and if you type on the keyboard then it will display your input text on button three.

Could somebody make that?

Posted: Wed May 05, 2004 4:16 am
by ReflectingGod
Yeah, except there are two things stopping me:

Time

Laziness


Why don't you figure out how to do it yourself?

Posted: Wed May 05, 2004 4:19 am
by Stewsburntmonkey
My guess would be:

Time

Laziness :P

Posted: Wed May 05, 2004 4:21 am
by ReflectingGod
Heh, maybe, but if he can't be bothered to do it for himself, why should I make the effort to do it for him?

Posted: Wed May 05, 2004 4:37 am
by Stewsburntmonkey
I don't know. It is like he is actually expecting someone to code him up a program. If he would just figure out Google he could find all sorts of stuff on his own. :)

Posted: Wed May 05, 2004 5:10 am
by Iris
Perhaps if he offered some money, then he'll be talkin. =)

Posted: Wed May 05, 2004 7:34 am
by Katana Steel
You could start on the lessions at nehe.gamedev.net, there you can learn how to use OpenGL, and also how to detect mouse clicks in your application.

But there's no easy way to this, you'll need to actualy learn something. :)

Posted: Wed May 05, 2004 11:26 am
by NeoThermic
And... read the red book...

http://shadowconflict.com/opengl.html

Its got everything that you will need on how to do OpenGL...

NeoThermic

Posted: Wed May 05, 2004 4:04 pm
by Natzor
Actually I didn't ask ya'll to make an example cuz I was lazy, I just wanted to learn how to do it... I don't know how, thus I asked. I'll check out those links though. :)

Posted: Wed May 05, 2004 6:46 pm
by Natzor
BTW to you people who can't get GH to go past the first mission:
There is a bug... the server you have to hack has a low proxy... and you can't manipulate the files unless you have the security analyzer and a bypasser. My next beta fixes that.... also my next beta already has a complete storyline... I just gotta iron out the bugs in it now.

Posted: Thu May 06, 2004 12:20 am
by Superpig
It's very simple. You just google for and download the DWIM library, add it to your linker settings, and tap in the following program:

Code: Select all

#include <dwim.h>

int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmdLine, int nCmdShow)
{
 DoWhatIMean();
}