Results 1 to 2 of 2

Thread: Multiple Targets with ClanLib 0.9

  1. #1
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default Multiple Targets with ClanLib 0.9

    Is it possible for multiple display targets to exist at the same time?

    For example, can we run the clanGDI and clanGL at the same time?

    Looking at the source, i cannot see how this would be possible.

    If it is possible, an example would be nice

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

    Default

    Theoretically you can, although you will probably be the first to actually try it out in practice.

    To use multiple targets, you initialize both targets and then set the target active using CL_DisplayTarget. Any object (CL_DisplayWindow, CL_Texture, etc) created while a target is active will belong to that target. You cannot mix objects between targets though - so a CL_Texture created while the GDI target is active will only function on the GDI target and not the OpenGL target.

Similar Threads

  1. Render Targets
    By ShadowDust in forum Novashell Game Creation System
    Replies: 0
    Last Post: 12-21-2008, 08:13 AM
  2. cl_sprite with multiple frames
    By dwune in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 08-29-2008, 08:49 AM
  3. Multiple window aplication
    By Leon in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 06-20-2008, 07:16 AM
  4. Setup networking in multiple threads?
    By catch22 in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 07-17-2007, 11:55 PM
  5. Display targets and input
    By void_kill in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 03-23-2007, 11:56 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
  •