Results 1 to 4 of 4

Thread: CL_Draw question

  1. #1
    Lesser Wizard
    Join Date
    Jun 2007
    Posts
    109

    Default CL_Draw question

    Hm, what's the way to specify size when usin the CL_Draw static members (such as box, line, etc).

    Similar to glSize I guess?

    I like these lines and boxes but I need them to be wider, curious if I'm missing the method?

  2. #2

    Default

    static void CL_Draw::box(
    CL_GraphicContext & gc,
    float x1,
    float y1,
    float x2,
    float y2,
    const CL_Colorf & color);


    I see this in reference...
    I think it is the float x1x2y1y2 that will fit your needs...

    or

    static void CL_Draw::box(
    CL_GraphicContext & gc,
    const CL_Pointf & start,
    const CL_Pointf & end,
    const CL_Colorf & color);
    seems defineing the start point and the end point of box, same to line

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

    Default

    Look into CL_Pen and CL_GraphicContext::set_pen().

  4. #4
    Lesser Wizard
    Join Date
    Jun 2007
    Posts
    109

    Default

    As usual, thank you Sphair.

    That's exactly what I was after! And this has even more than I was needing, which is friggin sweet (stipples, woo!).

Similar Threads

  1. About CL_Draw question?
    By Eng C. Born in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 05-14-2009, 09: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
  •