medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 8fb50d4771d25d3f62cb63deec6d4ffff0ac5571
parent c540dec71a67e06683fc0fb00b6d691897ee367e
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Nov  5 16:36:31 +0200

Less STL

Diffstat:
pp.cc | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/pp.cc b/pp.cc @@ -3,8 +3,6 @@ // all 3 in memory at once // 2. parallelise horizon/normal computations #include <string> -#include <iostream> -#include <fstream> #include <stdio.h> @@ -170,9 +168,9 @@ int main( int argc, char ** argv ) { mkdir( dir.c_str(), 0755 ); - std::ofstream dims( dir + "/dims.txt" ); - dims << std::to_string( w ) + " " + std::to_string( h ); - dims.close(); + FILE * dims = fopen( ( dir + "/dims.txt" ).c_str(), "w" ); + fprintf( dims, "%d %d", w, h ); + fclose( dims ); float * horizons_memory = new float[ w * h ]; v3 * normals_memory = new v3[ w * h ];