Changeset 2895


Ignore:
Timestamp:
Sep 11, 2013, 11:43:05 PM (6 years ago)
Author:
touky
Message:

added camera unit test.

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/camera.cpp

    r2894 r2895  
    3232    m_drawgroup = DRAWGROUP_CAMERA;
    3333
    34     ivec2 screen_size = Video::GetSize();
     34    ivec2 screen_size = (g_renderer)?(Video::GetSize()):(ivec2(0));
    3535    m_fov = 45.f;
    3636    m_near = -1000.f;
  • trunk/test/Makefile.am

    r2884 r2895  
    2121    unit/array.cpp unit/rotation.cpp unit/string.cpp unit/map.cpp \
    2222    unit/color.cpp unit/atomic.cpp unit/interp.cpp unit/box.cpp \
    23     unit/rand.cpp unit/thread.cpp
     23    unit/rand.cpp unit/thread.cpp unit/camera.cpp
    2424testsuite_CPPFLAGS = $(AM_CPPFLAGS)
    2525testsuite_DEPENDENCIES = @LOL_DEPS@
  • trunk/test/testsuite.vcxproj

    r2849 r2895  
    4848    <ClCompile Include="unit\box.cpp" />
    4949    <ClCompile Include="unit\build.cpp" />
     50    <ClCompile Include="unit\camera.cpp" />
    5051    <ClCompile Include="unit\cmplx.cpp" />
    5152    <ClCompile Include="unit\color.cpp" />
Note: See TracChangeset for help on using the changeset viewer.