-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjbRender.cpp
More file actions
41 lines (31 loc) · 799 Bytes
/
Copy pathjbRender.cpp
File metadata and controls
41 lines (31 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// jbRender.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include "frame.h"
#include "maths.h"
#include "object.h"
#include "renderer.h"
#include "Scene.h"
#include "stack.h"
#include "tokenizer.h"
using namespace Imf;
using namespace Imath;
int main()
{
Frame frame(1920, 1080, Rgba(1.0, 1.0, 1.0, 1.0));
Scene* scene = new Scene();
Renderer* engine = new Renderer(scene, &frame);
Tokenizer t("..\\..\\..\\program.jbr", scene, engine);
//engine->Render();
/*
if (frame.WriteFrame("D:\\src\\jbRender\\render\\out_.exr")) {
std::cout << "Frame written" << std::endl;
}
else {
std::cout << "Error";
}
*/
}