Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
5 registered members (miwok, AndrewAMD, Quad, TipmyPip, fairtrader), 601 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Wie rotiert man eine Bitmap in 2D?Wie etwa eine Kompassnadel? #233095
10/26/08 19:27
10/26/08 19:27
Joined: Sep 2008
Posts: 8
W
wolz Offline OP
Newbie
wolz  Offline OP
Newbie
W

Joined: Sep 2008
Posts: 8
Wie rotiert man eine Bitmap wie etwa eine 2D Kompassanzeige?

Re: Wie rotiert man eine Bitmap in 2D?Wie etwa eine Kompassnadel? [Re: wolz] #233096
10/26/08 19:38
10/26/08 19:38
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
Code:
PANEL* pan;
// rotate a panel about its center
function pan_rotate(p)
{
  pan = p; // set the panel pointer from the function parameter
  pan.center_x = pan.size_x * 0.5; // set the rotation center at the panel center
  pan.center_y = pan.size_y * 0.5;
  while (pan.angle < 360)          // one full rotation
  { 
     pan.angle += 10*time_step;
     wait(1);
     pan = p; // local variables are preserved during wait(), global pointers aren't
  }
  pan.angle = 0; 
}



"empty"
Re: Wie rotiert man eine Bitmap in 2D?Wie etwa eine Kompassnadel? [Re: wolz] #233097
10/26/08 19:38
10/26/08 19:38
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
http://www.conitec.net/manual_d/panel-angle.htm

Speziell für Nadeln wie die eines Kompass:
http://www.conitec.net/manual_d/needle.htm

EDIT: flits war schneller...

Last edited by Lukas; 10/26/08 19:39.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1