forked from blender/blender
Code improvements and fixes #26
@ -21,7 +21,7 @@ namespace blender::render::hydra {
|
|||||||
extern struct CLG_LogRef *LOG_BSD; /* BSD - Blender Scene Delegate */
|
extern struct CLG_LogRef *LOG_BSD; /* BSD - Blender Scene Delegate */
|
||||||
|
|
||||||
class BlenderSceneDelegate : public pxr::HdSceneDelegate {
|
class BlenderSceneDelegate : public pxr::HdSceneDelegate {
|
||||||
friend MeshData;
|
friend MeshData; /* has access to materials_*/
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum class EngineType { VIEWPORT = 1, FINAL, PREVIEW };
|
enum class EngineType { VIEWPORT = 1, FINAL, PREVIEW };
|
||||||
|
@ -12,11 +12,8 @@
|
|||||||
namespace blender::render::hydra {
|
namespace blender::render::hydra {
|
||||||
|
|
||||||
class BlenderSceneDelegate;
|
class BlenderSceneDelegate;
|
||||||
class InstancerData;
|
|
||||||
|
|
||||||
class IdData {
|
class IdData {
|
||||||
friend InstancerData;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
IdData(BlenderSceneDelegate *scene_delegate, ID *id, pxr::SdfPath const &prim_id);
|
IdData(BlenderSceneDelegate *scene_delegate, ID *id, pxr::SdfPath const &prim_id);
|
||||||
virtual ~IdData() = default;
|
virtual ~IdData() = default;
|
||||||
|
@ -10,8 +10,6 @@
|
|||||||
namespace blender::render::hydra {
|
namespace blender::render::hydra {
|
||||||
|
|
||||||
class InstancerData : public ObjectData {
|
class InstancerData : public ObjectData {
|
||||||
friend BlenderSceneDelegate;
|
|
||||||
|
|
||||||
struct Instance {
|
struct Instance {
|
||||||
std::unique_ptr<ObjectData> obj_data;
|
std::unique_ptr<ObjectData> obj_data;
|
||||||
pxr::VtIntArray indices;
|
pxr::VtIntArray indices;
|
||||||
|
@ -13,11 +13,7 @@
|
|||||||
|
|
||||||
namespace blender::render::hydra {
|
namespace blender::render::hydra {
|
||||||
|
|
||||||
class MeshData;
|
class MaterialData : public IdData {
|
||||||
|
|
||||||
class MaterialData : IdData {
|
|
||||||
friend MeshData;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MaterialData(BlenderSceneDelegate *scene_delegate,
|
MaterialData(BlenderSceneDelegate *scene_delegate,
|
||||||
Material *material,
|
Material *material,
|
||||||
|
Loading…
Reference in New Issue
Block a user