载入中...
搜索中...
未找到
eve::level_editing::Brush类 参考
Unity GridBrushBase-inspired tile brush. Operates on TileBuffer; exposes preview + change list for UI / undo. 更多...
#include <Brush.h>
Public 成员函数 | |
| Brush () | |
| Brush. | |
| void | setTool (const std::string &tool) |
| Sets the tool. | |
| std::string | getTool () const |
| Returns the tool. | |
| void | setSize (int size) |
| Sets the size. | |
| int | getSize () const |
| Returns the size. | |
| void | setShape (const std::string &shape) |
| Sets the shape. | |
| std::string | getShape () const |
| Returns the shape. | |
| void | setTile (int gid) |
| Sets the tile. | |
| int | getTile () const |
| Returns the tile. | |
| void | setEraseTile (int gid) |
| Sets the erase tile. | |
| int | getEraseTile () const |
| Returns the erase tile. | |
| void | setStampSize (int width, int height) |
| Sets the stamp size. | |
| int | getStampWidth () const |
| Returns the stamp width. | |
| int | getStampHeight () const |
| Returns the stamp height. | |
| void | setStampTile (int lx, int ly, int gid) |
| Sets the stamp tile. | |
| int | getStampTile (int lx, int ly) const |
| Returns the stamp tile. | |
| void | clearStamp () |
| Clears stamp. | |
| 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) |
| Erases at. | |
| int | floodFill (TileBuffer *buffer, int tx, int ty) |
| Flood fill. | |
| int | paintLine (TileBuffer *buffer, int x0, int y0, int x1, int y1) |
| Paint line. | |
| int | paintRect (TileBuffer *buffer, int x0, int y0, int x1, int y1, bool filled) |
| Paint rect. | |
| 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) |
| Preview line. | |
| int | previewRect (TileBuffer *buffer, int x0, int y0, int x1, int y1, bool filled) |
| Preview rect. | |
| int | getPreviewCount () const |
| Returns the preview count. | |
| int | getPreviewX (int index) const |
| Returns the preview x. | |
| int | getPreviewY (int index) const |
| Returns the preview y. | |
| int | getPreviewGid (int index) const |
| Returns the preview gid. | |
| int | getChangeCount () const |
| Returns the change count. | |
| int | getChangeX (int index) const |
| Returns the change x. | |
| int | getChangeY (int index) const |
| Returns the change y. | |
| int | getChangeOldGid (int index) const |
| Returns the change old gid. | |
| int | getChangeNewGid (int index) const |
| Returns the change new gid. | |
详细描述
Unity GridBrushBase-inspired tile brush. Operates on TileBuffer; exposes preview + change list for UI / undo.
构造及析构函数说明
◆ Brush()
|
default |
成员函数说明
◆ clearStamp()
◆ eraseAt()
| int eve::level_editing::Brush::eraseAt | ( | TileBuffer * | buffer, |
| int | tx, | ||
| int | ty | ||
| ) |
◆ floodFill()
| int eve::level_editing::Brush::floodFill | ( | TileBuffer * | buffer, |
| int | tx, | ||
| int | ty | ||
| ) |
◆ getChangeCount()
|
inline |
◆ getChangeNewGid()
| int eve::level_editing::Brush::getChangeNewGid | ( | int | index | ) | const |
◆ getChangeOldGid()
| int eve::level_editing::Brush::getChangeOldGid | ( | int | index | ) | const |
◆ getChangeX()
| int eve::level_editing::Brush::getChangeX | ( | int | index | ) | const |
◆ getChangeY()
| int eve::level_editing::Brush::getChangeY | ( | int | index | ) | const |
◆ getEraseTile()
|
inline |
◆ getPreviewCount()
|
inline |
◆ getPreviewGid()
| int eve::level_editing::Brush::getPreviewGid | ( | int | index | ) | const |
◆ getPreviewX()
| int eve::level_editing::Brush::getPreviewX | ( | int | index | ) | const |
◆ getPreviewY()
| int eve::level_editing::Brush::getPreviewY | ( | int | index | ) | const |
◆ getShape()
|
inline |
◆ getSize()
◆ getStampHeight()
|
inline |
◆ getStampTile()
| int eve::level_editing::Brush::getStampTile | ( | int | lx, |
| int | ly | ||
| ) | const |
◆ getStampWidth()
|
inline |
◆ getTile()
◆ getTool()
|
inline |
◆ paintAt()
| int eve::level_editing::Brush::paintAt | ( | TileBuffer * | buffer, |
| int | tx, | ||
| int | ty | ||
| ) |
◆ paintLine()
| int eve::level_editing::Brush::paintLine | ( | TileBuffer * | buffer, |
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1 | ||
| ) |
◆ paintRect()
| int eve::level_editing::Brush::paintRect | ( | TileBuffer * | buffer, |
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1, | ||
| bool | filled | ||
| ) |
◆ previewAt()
| int eve::level_editing::Brush::previewAt | ( | TileBuffer * | buffer, |
| int | tx, | ||
| int | ty | ||
| ) |
◆ previewLine()
| int eve::level_editing::Brush::previewLine | ( | TileBuffer * | buffer, |
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1 | ||
| ) |
◆ previewRect()
| int eve::level_editing::Brush::previewRect | ( | TileBuffer * | buffer, |
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1, | ||
| bool | filled | ||
| ) |
◆ setEraseTile()
| void eve::level_editing::Brush::setEraseTile | ( | int | gid | ) |
◆ setShape()
| void eve::level_editing::Brush::setShape | ( | const std::string & | shape | ) |
◆ setSize()
| void eve::level_editing::Brush::setSize | ( | int | size | ) |
◆ setStampSize()
| void eve::level_editing::Brush::setStampSize | ( | int | width, |
| int | height | ||
| ) |
◆ setStampTile()
| void eve::level_editing::Brush::setStampTile | ( | int | lx, |
| int | ly, | ||
| int | gid | ||
| ) |
◆ setTile()
◆ setTool()
| void eve::level_editing::Brush::setTool | ( | const std::string & | tool | ) |
该类的文档由以下文件生成: