Results 1 to 5 of 5

Thread: How i can copy CL_CollisionOutline?

  1. #1
    Lesser Knight
    Join Date
    May 2010
    Posts
    32

    Default How i can copy CL_CollisionOutline?

    Hello, everyone. I have a little problem with code:

    PHP Code:
    CL_CollisionOutline test1(//load file//);
    CL_CollisionOutline test2;
    test2.copy(test1); 
    If i change test1, test2 then changed. Its bug or not? If its not bug, how i can copy CL_CollisionOutline? Or i need load everytime for other CL_CollisionOutline? =(
    Last edited by Aikidos; 08-07-2011 at 10:24 AM.

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    From what I can tell on the source code of CL_CollisionOutline::copy it looks like it is a bug.

    Do you have a simple test program that demonstrates this issue?

  3. #3
    Lesser Knight
    Join Date
    May 2010
    Posts
    32

    Default

    Quote Originally Posted by Magnus Norddahl View Post
    From what I can tell on the source code of CL_CollisionOutline::copy it looks like it is a bug.

    Do you have a simple test program that demonstrates this issue?
    No, i have't. But i can write simple program tomorrow.

    This simple code. Mb problem with ptr in my code?

    is roughly:
    PHP Code:
    CL_CollisionOutline *test1 = new CL_CollisionOutline(//load file//);
    CL_CollisionOutline test2;
    test2.copy(*test1); 

  4. #4
    Lesser Knight
    Join Date
    May 2010
    Posts
    32

    Default

    I create a simple program with bug.

    Will you fix a bug? : ( Attached 0 views
    Attached Files Attached Files
    Last edited by Aikidos; 08-08-2011 at 09:07 AM.

  5. #5
    Lesser Knight
    Join Date
    May 2010
    Posts
    32

    Default

    I checked boxOut2 and impl->ptr->angle = 0, but his rotate if i change angle boxOut1.
    If i change translation boxOut1, then change translation boxOut2, BUT boxOut2 impl->ptr->position normal. Mb bug with metod draw? Or im stupid and doing something wrong

    Problem was solved! Thnx, qsr|Judas
    Last edited by Aikidos; 08-08-2011 at 02:00 PM.

Similar Threads

  1. CL_CollisionOutline Constructor
    By butterquark in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 07-27-2011, 04:29 PM
  2. Copy CL_Texture
    By Ockonal in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 06-26-2011, 10:48 AM
  3. possibly bug in CL_Sprite and CL_CollisionOutline
    By nemcheg in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 06-20-2010, 06:17 PM
  4. Question about copy-paste
    By Uhfgood in forum Novashell Game Creation System
    Replies: 1
    Last Post: 11-14-2006, 10:57 PM
  5. Question about CL_CollisionOutline
    By n-palmer in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 09-20-2006, 02:38 PM

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
  •