Changeset 615
- Timestamp:
- Feb 8, 2011, 11:28:29 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/deushax/deushax.cpp
r227 r615 65 65 new DebugSprite(game); 66 66 new DebugSphere(); 67 //new DebugRecord("lolengine.og g");67 //new DebugRecord("lolengine.ogm", FPS); 68 68 new DebugStats("stats.txt"); 69 69 -
trunk/monsterz/monsterz.cpp
r427 r615 26 26 27 27 #include "debugfps.h" 28 #include "debugrecord.h" 28 29 29 30 static float const FPS = 60.0f; … … 64 65 new Interface(); 65 66 new DebugFps(20, 20); 67 //new DebugRecord("monsterz.ogm", FPS); 66 68 67 69 while (!Ticker::Finished()) -
trunk/src/debugrecord.cpp
r259 r615 33 33 private: 34 34 char const *path; 35 int width, height ;35 int width, height, fps; 36 36 #if defined USE_PIPI 37 37 pipi_sequence_t *sequence; … … 43 43 */ 44 44 45 DebugRecord::DebugRecord(char const *path )45 DebugRecord::DebugRecord(char const *path, float fps) 46 46 : data(new DebugRecordData()) 47 47 { … … 49 49 data->width = 0; 50 50 data->height = 0; 51 data->fps = (int)(fps + 0.5f); 51 52 #if defined USE_PIPI 52 53 data->sequence = NULL; … … 77 78 pipi_close_sequence(data->sequence); 78 79 79 data->sequence = pipi_open_sequence(data->path, width, height, 30); 80 data->sequence = pipi_open_sequence(data->path, width, height, 81 1 /* RGB */, data->fps, 82 1, 1, 60 * 1024 * 1024); 80 83 #endif 81 84 } -
trunk/src/debugrecord.h
r221 r615 24 24 { 25 25 public: 26 DebugRecord(char const *path );26 DebugRecord(char const *path, float fps); 27 27 virtual ~DebugRecord(); 28 28 -
trunk/src/video.cpp
r221 r615 121 121 glPixelStorei(GL_PACK_ALIGNMENT, 1); 122 122 123 #if defined GL_BGRA 124 glReadPixels(0, 0, width, height, GL_BGRA, GL_UNSIGNED_BYTE, buffer); 125 #else 123 126 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); 127 #endif 124 128 125 129 for (int j = 0; j < height / 2; j++)
Note: See TracChangeset
for help on using the changeset viewer.