Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Laserboy New release

  1. #11
    Join Date
    Jun 2010
    Posts
    16

    Default

    Hi, James

    I want to use RGB-values of ILDA palletes from your sources in my not open-source application. Can I do it? Are these values under GPL license or not?

  2. #12
    Join Date
    Jan 2014
    Location
    North Carolina, USA
    Posts
    219

    Default Fixed build in OS X

    Just thought I would post an update about building the latest LaserBoy version in the Mac OS 10.9. I wasn't able to create an account on the LaserBoy forums, so I figured I would post a note here and maybe James can update the thread over there...

    All that's needed is to modify the post operator overrides to not include the default value. It is not needed for C++. The only thing needed is the (int) parameter signature - which tells the compiler it is the post operator. Get rid of the = 0 - the default value.


    so if you change the following in LaserBoy_frame_set.hpp it compiles just fine in OS X. I have no idea why the new GCC compiler is being picky all of a sudden.

    Code:
    //------------------------------------------------------------------------
    LaserBoy_frame& operator ++ (int) //post
                    {
                        if(number_of_frames())
                        {
                            int frame_return = frame_index;
                            frame_index++;
                            if(frame_index >= number_of_frames())
                                frame_index = 0;
                            return at(frame_return);
                        }
                        return null_frame;
                    }
    //------------------------------------------------------------------------
    LaserBoy_frame& operator -- (int) // post
                    {
                        if(number_of_frames())
                        {
                            int frame_return = frame_index;
                            frame_index--;
                            if(frame_index < 0)
                                frame_index = number_of_frames() - 1;
                            return at(frame_return);
                        }
                        return null_frame;
                    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •