载入中...
搜索中...
未找到
eve::editor::Brush类 参考
Unity GridBrushBase-inspired tile brush. Operates on TileBuffer; exposes preview + change list for UI / undo. 更多...
#include <Brush.h>
Public 成员函数 | |
| Brush () | |
| void | setTool (const std::string &tool) |
| std::string | getTool () const |
| void | setSize (int size) |
| int | getSize () const |
| void | setShape (const std::string &shape) |
| std::string | getShape () const |
| void | setTile (int gid) |
| int | getTile () const |
| void | setEraseTile (int gid) |
| int | getEraseTile () const |
| void | setStampSize (int width, int height) |
| int | getStampWidth () const |
| int | getStampHeight () const |
| void | setStampTile (int lx, int ly, int gid) |
| int | getStampTile (int lx, int ly) const |
| void | clearStamp () |
| int | paintAt (TileBuffer *buffer, int tx, int ty) |
| Apply current tool at / between cells. Returns cells changed. | |
| int | eraseAt (TileBuffer *buffer, int tx, int ty) |
| int | floodFill (TileBuffer *buffer, int tx, int ty) |
| int | paintLine (TileBuffer *buffer, int x0, int y0, int x1, int y1) |
| int | paintRect (TileBuffer *buffer, int x0, int y0, int x1, int y1, bool filled) |
| int | previewAt (TileBuffer *buffer, int tx, int ty) |
| Fill preview buffer without mutating target. | |
| int | previewLine (TileBuffer *buffer, int x0, int y0, int x1, int y1) |
| int | previewRect (TileBuffer *buffer, int x0, int y0, int x1, int y1, bool filled) |
| int | getPreviewCount () const |
| int | getPreviewX (int index) const |
| int | getPreviewY (int index) const |
| int | getPreviewGid (int index) const |
| int | getChangeCount () const |
| int | getChangeX (int index) const |
| int | getChangeY (int index) const |
| int | getChangeOldGid (int index) const |
| int | getChangeNewGid (int index) const |
详细描述
Unity GridBrushBase-inspired tile brush. Operates on TileBuffer; exposes preview + change list for UI / undo.
构造及析构函数说明
◆ Brush()
|
default |
成员函数说明
◆ clearStamp()
◆ eraseAt()
| int eve::editor::Brush::eraseAt | ( | TileBuffer * | buffer, |
| int | tx, | ||
| int | ty | ||
| ) |
◆ floodFill()
| int eve::editor::Brush::floodFill | ( | TileBuffer * | buffer, |
| int | tx, | ||
| int | ty | ||
| ) |
◆ getChangeCount()
◆ getChangeNewGid()
◆ getChangeOldGid()
◆ getChangeX()
◆ getChangeY()
◆ getEraseTile()
◆ getPreviewCount()
◆ getPreviewGid()
◆ getPreviewX()
◆ getPreviewY()
◆ getShape()
◆ getSize()
◆ getStampHeight()
◆ getStampTile()
◆ getStampWidth()
◆ getTile()
◆ getTool()
◆ paintAt()
| int eve::editor::Brush::paintAt | ( | TileBuffer * | buffer, |
| int | tx, | ||
| int | ty | ||
| ) |
Apply current tool at / between cells. Returns cells changed.
引用了 eraseAt() , 以及 floodFill().
◆ paintLine()
| int eve::editor::Brush::paintLine | ( | TileBuffer * | buffer, |
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1 | ||
| ) |
◆ paintRect()
| int eve::editor::Brush::paintRect | ( | TileBuffer * | buffer, |
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1, | ||
| bool | filled | ||
| ) |
◆ previewAt()
| int eve::editor::Brush::previewAt | ( | TileBuffer * | buffer, |
| int | tx, | ||
| int | ty | ||
| ) |
Fill preview buffer without mutating target.
引用了 eve::editor::TileBuffer::getGid(), eve::editor::TileBuffer::inBounds(), p, x , 以及 y.
◆ previewLine()
| int eve::editor::Brush::previewLine | ( | TileBuffer * | buffer, |
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1 | ||
| ) |
◆ previewRect()
| int eve::editor::Brush::previewRect | ( | TileBuffer * | buffer, |
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1, | ||
| bool | filled | ||
| ) |
◆ setEraseTile()
◆ setShape()
◆ setSize()
◆ setStampSize()
| void eve::editor::Brush::setStampSize | ( | int | width, |
| int | height | ||
| ) |
◆ setStampTile()
◆ setTile()
◆ setTool()
该类的文档由以下文件生成: