Ignore:
Timestamp:
Oct 31, 2011, 5:51:25 PM (9 years ago)
Author:
gary
Message:

core: fix bugs in mat4::lookat() and mat4::perspective(), and ensure these
function use degrees rather than radians.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.cpp

    r968 r1044  
    1818#   define WIN32_LEAN_AND_MEAN
    1919#   include <windows.h>
     20#   undef near /* Fuck Microsoft */
     21#   undef far /* Fuck Microsoft again */
    2022#endif
    2123
     
    8082void Video::SetFov(float theta)
    8183{
    82 #undef near /* Fuck Microsoft */
    83 #undef far /* Fuck Microsoft again */
    8484    vec2 size = GetSize();
    8585    float near = -size.x - size.y;
Note: See TracChangeset for help on using the changeset viewer.