7 #ifndef CAFU_EDITOR_MATERIAL_ENGINE_HPP_INCLUDED
8 #define CAFU_EDITOR_MATERIAL_ENGINE_HPP_INCLUDED
11 #include "EditorMaterial.hpp"
24 int GetHeight()
const;
26 const wxString& GetName()
const {
return Name; }
28 void Draw(wxDC& dc,
const wxRect& DestRect,
int NameBoxHeight,
bool DrawNameBox)
const;
29 const wxImage& GetImage()
const;
44 mutable wxImage* m_BrowserImage;
This class represents a surface render material.
Definition: RenderMaterial.hpp:25
bool ShowInMaterialBrowser() const
Returns whether the material should be shown for selection in the materials browser.
Definition: EditorMaterialEngine.cpp:176
MatSys::RenderMaterialT * GetRenderMaterial(bool PreviewMode) const
Returns the render material of this material.
Definition: EditorMaterialEngine.cpp:138
This class represents a surface material ("A datastructural representation of a scripts material def...
Definition: Material.hpp:22
This class implements the EditorMaterialI for materials that we have a material for in the MaterialSy...
Definition: EditorMaterialEngine.hpp:16
Definition: EditorMaterial.hpp:21
bool IsTranslucent() const
Returns whether this material is rendered translucently.
Definition: EditorMaterialEngine.cpp:184
MaterialT * GetMaterial() const
Returns the material object.
Definition: EditorMaterialEngine.hpp:32