diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 18: Add mProjection matrix in Screen.

Message ID 20110721123631.17019.73166.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

Alexandros Frantzis July 21, 2011, 12:36 p.m. UTC
------------------------------------------------------------
revno: 18
committer: Alexandros Frantzis <alf82@freemail.gr>
timestamp: Thu 2010-07-08 15:54:10 +0300
message:
  Add mProjection matrix in Screen.
modified:
  screen.cpp
  screen.h


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== 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();