| 10 | { |
| 11 | |
| 12 | class ScriptFace |
| 13 | { |
| 14 | private: |
| 15 | IFace* _face; |
| 16 | static std::string _emptyShader; |
| 17 | static IWinding _emptyWinding; |
| 18 | |
| 19 | public: |
| 20 | ScriptFace(); |
| 21 | |
| 22 | ScriptFace(IFace& face); |
| 23 | |
| 24 | void undoSave(); |
| 25 | |
| 26 | const std::string& getShader() const; |
| 27 | |
| 28 | void setShader(const std::string& name); |
| 29 | |
| 30 | void shiftTexdef(float s, float t); |
| 31 | |
| 32 | void scaleTexdef(float s, float t); |
| 33 | |
| 34 | void rotateTexdef(float angle); |
| 35 | |
| 36 | void fitTexture(float s_repeat, float t_repeat); |
| 37 | |
| 38 | void flipTexture(unsigned int flipAxis); |
| 39 | |
| 40 | void normaliseTexture(); |
| 41 | |
| 42 | IWinding& getWinding(); |
| 43 | }; |
| 44 | |
| 45 | class ScriptBrushNode : |
| 46 | public ScriptSceneNode |