Use logging!
This commit is contained in:
parent
c00afe1cd1
commit
627854bc20
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "basics.h"
|
#include "basics.h"
|
||||||
|
#include "log.hh"
|
||||||
#include "light.h"
|
#include "light.h"
|
||||||
#include "material.h"
|
#include "material.h"
|
||||||
#include "object_sphere.h"
|
#include "object_sphere.h"
|
||||||
|
@ -34,6 +35,8 @@ main(int argc,
|
||||||
{
|
{
|
||||||
Scene scene;
|
Scene scene;
|
||||||
|
|
||||||
|
charles::log::Log::Init("charles.log");
|
||||||
|
|
||||||
scene.get_ambient().set_intensity(1.0);
|
scene.get_ambient().set_intensity(1.0);
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
@ -108,5 +111,7 @@ main(int argc,
|
||||||
PNGWriter writer;
|
PNGWriter writer;
|
||||||
scene.write(writer, outfile);
|
scene.write(writer, outfile);
|
||||||
|
|
||||||
|
charles::log::Log::Close();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue