7 #ifndef CAFU_EDITOR_MATERIAL_DUMMY_HPP_INCLUDED
8 #define CAFU_EDITOR_MATERIAL_DUMMY_HPP_INCLUDED
11 #include "EditorMaterial.hpp"
24 int GetWidth ()
const {
return 256; }
25 int GetHeight()
const {
return 64; }
27 const wxString& GetName()
const {
return m_Name; }
29 void Draw(wxDC& dc,
const wxRect& DestRect,
int NameBoxHeight,
bool DrawNameBox)
const;
30 const wxImage& GetImage()
const {
static wxImage DummyImage(2, 2);
return DummyImage; }
This class represents a surface render material.
Definition: RenderMaterial.hpp:25
MatSys::RenderMaterialT * GetRenderMaterial(bool PreviewMode) const
Returns the render material of this material.
Definition: EditorMaterialDummy.cpp:40
bool IsTranslucent() const
Returns whether this material is rendered translucently.
Definition: EditorMaterialDummy.hpp:34
bool ShowInMaterialBrowser() const
Returns whether the material should be shown for selection in the materials browser.
Definition: EditorMaterialDummy.hpp:35
This class represents a surface material ("A datastructural representation of a scripts material def...
Definition: Material.hpp:22
Definition: EditorMaterial.hpp:21
The class implements the EditorMaterialI interface.
Definition: EditorMaterialDummy.hpp:17
MaterialT * GetMaterial() const
Returns the material object.
Definition: EditorMaterialDummy.cpp:47