Skip to content
Snippets Groups Projects
Commit c725dcf7 authored by Tobias Schmidt's avatar Tobias Schmidt
Browse files

add GetHandle for gfx::Surface

parent b043951a
Branches
Tags
No related merge requests found
...@@ -371,4 +371,9 @@ void Surface::ReapplyColorOps() ...@@ -371,4 +371,9 @@ void Surface::ReapplyColorOps()
GfxObj::ReapplyColorOps(); GfxObj::ReapplyColorOps();
} }
ost::mol::SurfaceHandle Surface::GetHandle() const
{
return this->sh_;
}
}} // ns }} // ns
...@@ -58,6 +58,8 @@ public: ...@@ -58,6 +58,8 @@ public:
virtual void CustomRenderPov(PovState& pov); virtual void CustomRenderPov(PovState& pov);
virtual geom::AlignedCuboid GetBoundingBox() const; virtual geom::AlignedCuboid GetBoundingBox() const;
mol::SurfaceHandle GetHandle() const;
void Rebuild(); void Rebuild();
void Replace(const mol::SurfaceHandle& sh); void Replace(const mol::SurfaceHandle& sh);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment