Results 1 to 2 of 2

Thread: Surface Rotation

  1. #1
    Lesser Knight
    Join Date
    May 2007
    Posts
    46

    Default Surface Rotation

    I feel pretty foolish asking this, but it is driving me nuts.

    I want to draw a surface in 2D, rotated about the center in increments of 90 degrees.

    Each of the set_rotation functions causes a different result, but none are correct. I know I'm missing something basic and I am counting on posting this only to suddenly dawn on me how to deal.

    Please help.

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    In theory something like this should work:

    sprite->set_rotation_hotspot(origin_center);
    sprite->set_angle(90);

Similar Threads

  1. Rotation and brains
    By nmceri in forum Novashell Game Creation System
    Replies: 3
    Last Post: 12-31-2006, 06:08 AM
  2. Blank Surface
    By ART_Adventures in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-23-2006, 12:14 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •