Continuing working on dumping the world
This commit is contained in:
@@ -6,3 +6,14 @@
|
||||
* Copyright (c) 2020 986-Studio.
|
||||
*
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <light.h>
|
||||
|
||||
void Light::dumpMe(FILE *fp)
|
||||
{
|
||||
fprintf(fp, "\"Colour\": {\"red\": %f, \"green\": %f, \"blue\": %f},\n",
|
||||
this->intensity.x, this->intensity.y, this->intensity.z);
|
||||
fprintf(fp, "\"Position\": {\"x\": %f, \"y\": %f, \"z\":%f},\n",
|
||||
this->position.x, this->position.y, this->position.z);
|
||||
fprintf(fp, "\"Type\": \"PointLight\",\n");
|
||||
}
|
||||
Reference in New Issue
Block a user