mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 05:44:08 -07:00
21 lines
519 B
C++
Executable file
21 lines
519 B
C++
Executable file
#include "CommandManager.h"
|
|
#include "TextureEntry.h"
|
|
#include "PaintTextureTool.h"
|
|
#include "PaintTextureCommand.h"
|
|
|
|
// default tool instance
|
|
CPaintTextureTool CPaintTextureTool::m_PaintTextureTool;
|
|
|
|
CPaintTextureTool::CPaintTextureTool()
|
|
{
|
|
m_SelectedTexture=0;
|
|
}
|
|
|
|
void CPaintTextureTool::PaintSelection()
|
|
{
|
|
// apply current texture to current selection
|
|
CPaintTextureCommand* paintCmd=new CPaintTextureCommand(m_SelectedTexture,m_BrushSize,m_SelectionCentre);
|
|
g_CmdMan.Execute(paintCmd);
|
|
}
|
|
|
|
|