]> git.mxchange.org Git - flightgear.git/blobdiff - utils/Modeller/normalmap.cxx
mingw fix
[flightgear.git] / utils / Modeller / normalmap.cxx
index 80d1fe4d6fdb44c460c21ee93669b62f97239fa9..78daec4ba003a6815e44bd16343edf11a6c28b90 100644 (file)
@@ -4,10 +4,13 @@
  *
  * This file is in public domain.
  */
+#include <simgear/compiler.h>
 
 #include <string.h>
-#include <GL/gl.h>
-#include <simgear/screen/texture.hxx>
+#include <stdlib.h>
+#include <osg/GL>
+
+#include "texture.hxx"
 
 
 static float contrast = 1.0;
@@ -92,7 +95,7 @@ int main (int argc, char **argv)
       memcpy(normalmap_file+i, "_n.rgb\0", 7);
    }
 
-   texture.make_normalmap();
+   texture.make_normalmap(brightness, contrast);
    texture.write_texture(normalmap_file);
 
    free( normalmap_file );