Message ID | 20110721123631.17019.73166.launchpad@loganberry.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'screen.cpp' --- screen.cpp 2010-07-07 12:33:49 +0000 +++ screen.cpp 2010-07-08 12:54:10 +0000 @@ -74,7 +74,11 @@ clear(); + mProjection.perspective(60.0, mWidth / (float)mHeight, 1.0, 1024.0); + #ifdef _DEBUG + mProjection.display("Projection"); + printf("[ Success ]\n"); #endif print_info(); === modified file 'screen.h' --- screen.h 2010-07-07 10:32:18 +0000 +++ screen.h 2010-07-08 12:54:10 +0000 @@ -2,6 +2,7 @@ #define _SCREEN_H #include "oglsdl.h" +#include "matrix.h" #include <stdio.h> @@ -15,7 +16,7 @@ int mBpp; int mFlags; int mFullScreen; -// SDL_Surface *mScreen; + Matrix4f mProjection; Screen(); ~Screen();