Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5532: Setup empty MaterialPreview class
- Loading branch information
1 parent
1c35296
commit 244ad4e
Showing
7 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "MaterialPreview.h" | ||
|
||
namespace ui | ||
{ | ||
|
||
MaterialPreview::MaterialPreview(wxWindow* parent) : | ||
RenderPreview(parent, true) | ||
{} | ||
|
||
const MaterialPtr& MaterialPreview::getMaterial() | ||
{ | ||
return _material; | ||
} | ||
|
||
void MaterialPreview::setMaterial(const MaterialPtr& material) | ||
{ | ||
_material = material; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#include "ishaders.h" | ||
#include "wxutil/preview/RenderPreview.h" | ||
|
||
namespace ui | ||
{ | ||
|
||
class MaterialPreview : | ||
public wxutil::RenderPreview | ||
{ | ||
private: | ||
MaterialPtr _material; | ||
|
||
public: | ||
MaterialPreview(wxWindow* parent); | ||
|
||
const MaterialPtr& getMaterial(); | ||
void setMaterial(const MaterialPtr& material); | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters