Changeset 216
- Timestamp:
- Jan 17, 2011, 1:39:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/video.cpp
r211 r216 8 8 #endif 9 9 10 #include < math.h>10 #include <cmath> 11 11 12 12 #ifdef WIN32 … … 42 42 void Video::SetFov(float theta) 43 43 { 44 #undef near /* Fuck Microsoft */ 45 #undef far /* Fuck Microsoft again */ 44 46 glMatrixMode(GL_PROJECTION); 45 47 glLoadIdentity(); … … 114 116 glPixelStorei(GL_PACK_ALIGNMENT, 1); 115 117 116 glReadPixels(0, 0, width, height, GL_ BGRA, GL_UNSIGNED_BYTE, buffer);118 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 117 119 118 120 for (int j = 0; j < height / 2; j++)
Note: See TracChangeset
for help on using the changeset viewer.