Changeset 2432


Ignore:
Timestamp:
Feb 18, 2013, 1:36:11 PM (6 years ago)
Author:
sam
Message:

math: Interp class for frame-independent interpolation.

Location:
trunk
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Makefile.am

    r2388 r2432  
    3838    lol/math/math.h \
    3939    lol/math/functions.h lol/math/vector.h lol/math/half.h lol/math/real.h \
    40     lol/math/remez.h lol/math/math.h lol/math/geometry.h \
     40    lol/math/remez.h lol/math/math.h lol/math/geometry.h lol/math/interp.h \
    4141    \
    4242    lol/sys/sys.h \
  • trunk/src/lol/math/math.h

    r2354 r2432  
    1717#include <lol/math/vector.h>
    1818#include <lol/math/geometry.h>
     19#include <lol/math/interp.h>
    1920
    2021#endif // __LOL_MATH_MATH_H__
  • trunk/src/lolcore.vcxproj

    r2390 r2432  
    215215    <ClInclude Include="lol\math\geometry.h" />
    216216    <ClInclude Include="lol\math\half.h" />
     217    <ClInclude Include="lol\math\interp.h" />
    217218    <ClInclude Include="lol\math\math.h" />
    218219    <ClInclude Include="lol\math\real.h" />
  • trunk/src/lolcore.vcxproj.filters

    r2386 r2432  
    513513      <Filter>lol\math</Filter>
    514514    </ClInclude>
     515    <ClInclude Include="lol\math\interp.h">
     516      <Filter>lol\math</Filter>
     517    </ClInclude>
    515518    <ClInclude Include="easymesh\csgbsp.h">
    516519      <Filter>easymesh</Filter>
  • trunk/test/Makefile.am

    r2419 r2432  
    2222    unit/build.cpp unit/real.cpp unit/image.cpp unit/quat.cpp unit/cmplx.cpp \
    2323    unit/array.cpp unit/rotation.cpp unit/string.cpp unit/map.cpp \
    24     unit/color.cpp unit/atomic.cpp
     24    unit/color.cpp unit/atomic.cpp unit/interp.cpp
    2525testsuite_CPPFLAGS = $(AM_CPPFLAGS)
    2626testsuite_DEPENDENCIES = @LOL_DEPENDENCIES@
  • trunk/test/testsuite.vcxproj

    r2389 r2432  
    4343    <ClCompile Include="unit\half.cpp" />
    4444    <ClCompile Include="unit\image.cpp" />
     45    <ClCompile Include="unit\interp.cpp" />
    4546    <ClCompile Include="unit\map.cpp" />
    4647    <ClCompile Include="unit\matrix.cpp" />
  • trunk/test/unit/color.cpp

    r2307 r2432  
    8585            LOLUNIT_ASSERT_DOUBLES_EQUAL(d1, d2, 0.0001);
    8686            LOLUNIT_ASSERT_DOUBLES_EQUAL(d2, d3, 0.0001);
    87             LOLUNIT_UNSET_CONTEXT();
     87            LOLUNIT_UNSET_CONTEXT(n / 7);
    8888        }
    8989    }
     
    107107            LOLUNIT_ASSERT_DOUBLES_EQUAL(v1.b, v3.b, 0.0001);
    108108
    109             LOLUNIT_UNSET_CONTEXT();
     109            LOLUNIT_UNSET_CONTEXT(&rgb[0]);
    110110        }
    111111    }
     
    129129            LOLUNIT_ASSERT_DOUBLES_EQUAL(v2.z, v3.z, 0.0001);
    130130
    131             LOLUNIT_UNSET_CONTEXT();
     131            LOLUNIT_UNSET_CONTEXT(&rgb[0]);
    132132        }
    133133    }
Note: See TracChangeset for help on using the changeset viewer.