mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-11-18 21:56:15 +00:00
Remove old nanort/nanosg code. Keep the gltf-loader class on hand
Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
This commit is contained in:
committed by
Arthur Brainville
parent
b46856ca2f
commit
835d09e32f
@@ -1,30 +0,0 @@
|
||||
#ifndef EXAMPLE_RENDER_H_
|
||||
#define EXAMPLE_RENDER_H_
|
||||
|
||||
#include <atomic> // C++11
|
||||
|
||||
#include "render-config.h"
|
||||
#include "nanosg.h"
|
||||
#include "mesh.h"
|
||||
#include "material.h"
|
||||
|
||||
namespace example {
|
||||
|
||||
struct Asset {
|
||||
std::vector<Mesh<float> > meshes;
|
||||
std::vector<Material> materials;
|
||||
std::vector<Texture> textures;
|
||||
};
|
||||
|
||||
class Renderer {
|
||||
public:
|
||||
Renderer() {}
|
||||
~Renderer() {}
|
||||
|
||||
/// Returns false when the rendering was canceled.
|
||||
static bool Render(float* rgba, float* aux_rgba, int *sample_counts, float quat[4],
|
||||
const nanosg::Scene<float, Mesh<float>> &scene, const Asset &asset, const RenderConfig& config, std::atomic<bool>& cancel_flag);
|
||||
};
|
||||
};
|
||||
|
||||
#endif // EXAMPLE_RENDER_H_
|
||||
Reference in New Issue
Block a user