Ignore:
Timestamp:
May 1, 2012, 3:40:56 PM (8 years ago)
Author:
sam
Message:

core: move some of the camera view logic from the Video class to the
Scene and Camera classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r1303 r1325  
    5252
    5353private:
    54     static mat4 proj_matrix, view_matrix;
     54    static mat4 proj_matrix;
    5555    static ivec2 saved_viewport;
    5656#if defined USE_D3D9
     
    6666
    6767mat4 VideoData::proj_matrix;
    68 mat4 VideoData::view_matrix;
    6968ivec2 VideoData::saved_viewport(0, 0);
    7069
     
    195194        VideoData::proj_matrix = proj * trans;
    196195    }
    197 
    198     VideoData::view_matrix = mat4(1.0f);
    199196}
    200197
     
    298295}
    299296
    300 mat4 const & Video::GetProjMatrix()
    301 {
    302     return VideoData::proj_matrix;
    303 }
    304 
    305 mat4 const & Video::GetViewMatrix()
    306 {
    307     return VideoData::view_matrix;
    308 }
    309 
    310297} /* namespace lol */
    311298
Note: See TracChangeset for help on using the changeset viewer.