| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#if !defined ( INCLUDED_BRUSHWRAPPER_H ) |
| 23 |
#define INCLUDED_BRUSHWRAPPER_H |
| 24 |
|
| 25 |
#include <cstddef> |
| 26 |
#include <uilib/uilib.h> |
| 27 |
#include "string/stringfwd.h" |
| 28 |
#include "generic/callback.h" |
| 29 |
|
| 30 |
enum EBrushPrefab |
| 31 |
{ |
| 32 |
eBrushCuboid, |
| 33 |
eBrushPrism, |
| 34 |
eBrushCone, |
| 35 |
eBrushSphere, |
| 36 |
eBrushRock, |
| 37 |
}; |
| 38 |
|
| 39 |
class TextureProjection; |
| 40 |
class ContentsFlagsValue; |
| 41 |
namespace scene |
| 42 |
{ |
| 43 |
class Graph; |
| 44 |
} |
| 45 |
void Scene_BrushConstructPrefab( scene::Graph& graph, EBrushPrefab type, std::size_t sides, const char* shader ); |
| 46 |
class AABB; |
| 47 |
void Scene_BrushResize_Selected( scene::Graph& graph, const AABB& bounds, const char* shader ); |
| 48 |
void Scene_BrushSetTexdef_Selected( scene::Graph& graph, const TextureProjection& projection ); |
| 49 |
void Scene_BrushSetTexdef_Component_Selected( scene::Graph& graph, const TextureProjection& projection ); |
| 50 |
void Scene_BrushGetTexdef_Selected( scene::Graph& graph, TextureProjection& projection ); |
| 51 |
void Scene_BrushGetTexdef_Component_Selected( scene::Graph& graph, TextureProjection& projection ); |
| 52 |
void Scene_BrushGetShaderSize_Component_Selected( scene::Graph& graph, size_t& width, size_t& height ); |
| 53 |
void Scene_BrushSetFlags_Selected( scene::Graph& graph, const ContentsFlagsValue& flags ); |
| 54 |
void Scene_BrushSetFlags_Component_Selected( scene::Graph& graph, const ContentsFlagsValue& flags ); |
| 55 |
void Scene_BrushGetFlags_Selected( scene::Graph& graph, ContentsFlagsValue& flags ); |
| 56 |
void Scene_BrushGetFlags_Component_Selected( scene::Graph& graph, ContentsFlagsValue& flags ); |
| 57 |
void Scene_BrushShiftTexdef_Selected( scene::Graph& graph, float s, float t ); |
| 58 |
void Scene_BrushShiftTexdef_Component_Selected( scene::Graph& graph, float s, float t ); |
| 59 |
void Scene_BrushScaleTexdef_Selected( scene::Graph& graph, float s, float t ); |
| 60 |
void Scene_BrushScaleTexdef_Component_Selected( scene::Graph& graph, float s, float t ); |
| 61 |
void Scene_BrushRotateTexdef_Selected( scene::Graph& graph, float angle ); |
| 62 |
void Scene_BrushRotateTexdef_Component_Selected( scene::Graph& graph, float angle ); |
| 63 |
void Scene_BrushSetShader_Selected( scene::Graph& graph, const char* name ); |
| 64 |
void Scene_BrushSetShader_Component_Selected( scene::Graph& graph, const char* name ); |
| 65 |
void Scene_BrushGetShader_Selected( scene::Graph& graph, CopiedString& shader ); |
| 66 |
void Scene_BrushGetShader_Component_Selected( scene::Graph& graph, CopiedString& shader ); |
| 67 |
void Scene_BrushFindReplaceShader( scene::Graph& graph, const char* find, const char* replace ); |
| 68 |
void Scene_BrushFindReplaceShader_Selected( scene::Graph& graph, const char* find, const char* replace ); |
| 69 |
void Scene_BrushFindReplaceShader_Component_Selected( scene::Graph& graph, const char* find, const char* replace ); |
| 70 |
void Scene_BrushSelectByShader( scene::Graph& graph, const char* name ); |
| 71 |
void Scene_BrushSelectByShader_Component( scene::Graph& graph, const char* name ); |
| 72 |
void Scene_BrushFitTexture_Selected( scene::Graph& graph, float s_repeat, float t_repeat ); |
| 73 |
void Scene_BrushFitTexture_Component_Selected( scene::Graph& graph, float s_repeat, float t_repeat ); |
| 74 |
|
| 75 |
void Brush_constructMenu( ui::Menu menu ); |
| 76 |
|
| 77 |
extern Callback<void()> g_texture_lock_status_changed; |
| 78 |
|
| 79 |
void BrushFilters_construct(); |
| 80 |
void Brush_registerCommands(); |
| 81 |
|
| 82 |
#endif |