载入中...
搜索中...
未找到
eve::editor::TileBuffer类 参考
Independent GID grid for map brushes (no hard dependency on map.TileLayer). 更多...
#include <TileBuffer.h>
Public 成员函数 | |
| TileBuffer (int width, int height) | |
| int | getWidth () const |
| int | getHeight () const |
| void | resize (int width, int height) |
| void | clear () |
| void | fill (int gid) |
| void | setGid (int x, int y, int gid) |
| int | getGid (int x, int y) const |
| bool | inBounds (int x, int y) const |
详细描述
Independent GID grid for map brushes (no hard dependency on map.TileLayer).
在文件 TileBuffer.h 第 9 行定义.
构造及析构函数说明
◆ TileBuffer()
| eve::editor::TileBuffer::TileBuffer | ( | int | width, |
| int | height | ||
| ) |
在文件 TileBuffer.cpp 第 9 行定义.
成员函数说明
◆ clear()
| void eve::editor::TileBuffer::clear | ( | ) |
在文件 TileBuffer.cpp 第 31 行定义.
◆ fill()
| void eve::editor::TileBuffer::fill | ( | int | gid | ) |
在文件 TileBuffer.cpp 第 33 行定义.
◆ getGid()
| int eve::editor::TileBuffer::getGid | ( | int | x, |
| int | y | ||
| ) | const |
在文件 TileBuffer.cpp 第 44 行定义.
引用了 inBounds(), x , 以及 y.
被这些函数引用 eve::editor::Brush::floodFill() , 以及 eve::editor::Brush::previewAt().
◆ getHeight()
|
inline |
在文件 TileBuffer.h 第 14 行定义.
被这些函数引用 eve::editor::Brush::floodFill().
◆ getWidth()
|
inline |
在文件 TileBuffer.h 第 13 行定义.
被这些函数引用 eve::editor::Brush::floodFill().
◆ inBounds()
| bool eve::editor::TileBuffer::inBounds | ( | int | x, |
| int | y | ||
| ) | const |
◆ resize()
| void eve::editor::TileBuffer::resize | ( | int | width, |
| int | height | ||
| ) |
◆ setGid()
| void eve::editor::TileBuffer::setGid | ( | int | x, |
| int | y, | ||
| int | gid | ||
| ) |
在文件 TileBuffer.cpp 第 39 行定义.
引用了 inBounds(), x , 以及 y.
被这些函数引用 eve::editor::EditorHistory::applyLastToBuffer() , 以及 eve::editor::Brush::floodFill().
该类的文档由以下文件生成:
- src/modules/editor/TileBuffer.h
- src/modules/editor/TileBuffer.cpp