PS3 Hacks

#1 Spot for PS3 Hacks

Home | PS3 News | PS3 Hacks | PS3 Downloads | PS3 Saves

Folding@home | PS3-Hacks Live Chat | PS3 Reviews | Contact Us



You are not logged in.

#1  2009-02-05 14:56:53

Mr.TurnSignal
Harsesus
Registered: 2007-08-21
Posts: 2575

Programming with graphics

I'm taking another shot at learning C++ but I was wondering how would I porgram a simple Hello World with graphics? Say I wanted it to come up and say Hello World with fancy text instead of Command Prompt.

Offline

 

#2  2009-02-05 15:25:01

Powerslave
Ruler of All
From: Alpha Quadrant
Registered: 2007-01-15
Posts: 12871
Website

Re: Programming with graphics

Some Basics:

http://www.gamedev.net/reference/articl … cle994.asp

http://users.actcom.co.il/~choo/lupg/tu … mming.html

Code:

private: System::Void pictureBox1_Paint(System::Object^  sender, System::Windows::Forms::PaintEventArgs^  e) 
{
    System::Drawing::Drawing2D::LinearGradientBrush^ myBrush = gcnew   System::Drawing::Drawing2D::LinearGradientBrush(ClientRectangle, Color::Blue, Color::Yellow, System::Drawing::Drawing2D::   LinearGradientMode::Horizontal);
    System::Drawing::Font^ myFont =  gcnew System::Drawing::Font(L"Calibri", 18);
    e->Graphics->DrawString(L"Test", myFont, myBrush, 10, 10);

If that helped any...

http://www.cprogramming.com/tutorial/op … ction.html

Offline

 

#3  2009-02-06 03:54:58

Mr.TurnSignal
Harsesus
Registered: 2007-08-21
Posts: 2575

Re: Programming with graphics

You never disappoint. Thanks!

Offline

 
Home | PS3 News | PS3 Hacks | PS3 Downloads | PS3 Saves

Folding@home | PS3-Hacks Live Chat | PS3 Reviews | Contact Us


Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB