Results 1 to 3 of 3

Thread: draw surface onto another surface before drawing portion to the screen

  1. #1
    Knight
    Join Date
    Feb 2009
    Location
    I looked through my window, there are no signs ... but, its definitely planet Earth.
    Posts
    88

    Default draw surface onto another surface before drawing portion to the screen

    I find documentation frustrating. I'm trying to build a game and each level will have large 2D map that will scroll from bottom to the top or from right to left. I'm looking a way to first build the map (hopefully something like CL_Surface?) from a combination of smaller surfaces and sprites that will occur more than once on the map surface. The map would be like a chess board, but with more types of smaller and different sprites and surfaces forming it. The problem with ClanLib is that I don't find a way to draw one surface onto another. In my case, tile surface or tile animated sprite, should go onto map surface while level is initiated and then a portion of map surface should go to the screen. The thing is that all surfaces and sprites can only be drawn to the screen. Can you help? Can surface be a graphical context for another surface and how to do this?

  2. #2
    Knight
    Join Date
    Feb 2009
    Location
    I looked through my window, there are no signs ... but, its definitely planet Earth.
    Posts
    88

    Default

    I managed to find the answer on your board, with PixelBuffer and how to get dc to draw onto. Thanks.

  3. #3
    Knight
    Join Date
    Feb 2009
    Location
    I looked through my window, there are no signs ... but, its definitely planet Earth.
    Posts
    88

    Default

    Seems like I'm talking to myself, you should probably delete this whole topic. Sorry!

Similar Threads

  1. about button surface
    By DavinciZhe in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 11-06-2007, 03:49 AM
  2. Surface Rotation
    By madmark in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 07-20-2007, 08:42 AM
  3. When drawing text, crash while clearing the screen!?
    By Iori Branford in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 01-05-2007, 10:56 PM
  4. The fastest way to draw pixel by pixel?
    By Otto (Strange) Halmén in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 12-06-2006, 07:32 AM
  5. 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
  •