Results 1 to 2 of 2

Thread: using CL_CollisionOutline from ClanLib

  1. #1
    Squire
    Join Date
    Jun 2012
    Location
    Mexico
    Posts
    26

    Default using CL_CollisionOutline from ClanLib

    what would I need to add in proton to use CL_CollisionOutline? it's a great part of ClanLib and wanting to use it on the project I'm working on, but it is on proton, any guide?

    Tried to move some files but I guess I'm missing some dependencies so before destroying everything I want to know if there is a simple way to do it?

    Thanks!
    Zaxuhe//
    Game developer

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    Quote Originally Posted by Zaxuhe View Post
    what would I need to add in proton to use CL_CollisionOutline? it's a great part of ClanLib and wanting to use it on the project I'm working on, but it is on proton, any guide?

    Tried to move some files but I guess I'm missing some dependencies so before destroying everything I want to know if there is a simple way to do it?

    Thanks!
    Hmm, it looks like CL_CollisionOutline has a lot of CL dependencies:

    Code:
    #include "Display/precomp.h"
    #include "API/Core/IOData/virtual_file_system.h"
    #include "API/Core/IOData/virtual_directory.h"
    #include "API/Core/IOData/path_help.h"
    #include "API/Display/Collision/collision_outline.h"
    #include "API/Display/Collision/outline_provider_bitmap.h"
    #include "API/Display/Collision/outline_provider_file.h"
    #include "API/Display/Collision/outline_circle.h"
    #include "API/Display/Window/display_window.h"
    #include "API/Display/Render/graphic_context.h"
    #include "API/Display/Image/pixel_format.h"
    #include "API/Display/ImageProviders/provider_factory.h"
    #include "API/Display/Image/pixel_buffer.h"
    #include "API/Display/2D/draw.h"
    #include "API/Display/Render/pen.h"
    #include "API/Core/Resources/resource_manager.h"
    #include "API/Core/Resources/resource_data_session.h"
    #include "API/Core/System/exception.h"
    #include "API/Core/IOData/path_help.h"
    #include "resourcedata_collisionoutline.h"
    #include "collision_outline_generic.h"
    #include "API/Core/Text/string_format.h"
    My guess is there would be two ways:

    1. Bring in as much Clanlib as you need, which would end up being a LOT most likely. It's probably possible to co-exist with Proton ok (like Irrlicht can, for instance), but I would guess that pieces of it are not cross platform enough, so you'd end up replacing those pieces with Proton calls. (I'm thinking file handling, getting the time, stuff like that)
    2. Carefully rework the collision outline code, cut out just the pieces you need and make a new class designed to work with a proton SoftSurface to get the pixel data instead of CL's pixel buffer, etc. I don't know how much work this would be...
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. How i can copy CL_CollisionOutline?
    By Aikidos in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 08-08-2011, 09:39 AM
  2. CL_CollisionOutline Constructor
    By butterquark in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 07-27-2011, 04:29 PM
  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. Beginners Question regarding CL_CollisionOutline & collide
    By Unfixab1e in forum Official ClanLib SDK Forums
    Replies: 5
    Last Post: 12-21-2009, 09:47 AM
  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
  •