Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualbelfegor

Posted 11 July 2013 - 04:26 PM

You could make a conversion operator:

struct Vec3
{
    float x,y,z;
 
    operator float* ()
    {
        return &x;
    }
 
    operator const float* () const
    {
        return &x;
    }

};

#1belfegor

Posted 11 July 2013 - 04:23 PM

You could make a conversion operator:

struct Vec3
{
    float x,y,z;
 
    operator float* ()
    {
        return &x;
    }
 
    operator const float* ()
    {
        return &x;
    }

};

PARTNERS