DDraceNetwork Docs
|
#include <image.h>
Public Member Functions | |
CEditorImage (CEditor *pEditor) | |
~CEditorImage () | |
void | OnInit (CEditor *pEditor) override |
void | AnalyseTileFlags () |
Public Member Functions inherited from CImageInfo | |
void | Free () |
size_t | PixelSize () const |
const char * | FormatName () const |
size_t | DataSize () const |
bool | DataEquals (const CImageInfo &Other) const |
ColorRGBA | PixelColor (size_t x, size_t y) const |
void | SetPixelColor (size_t x, size_t y, ColorRGBA Color) const |
void | CopyRectFrom (const CImageInfo &SrcImage, size_t SrcX, size_t SrcY, size_t Width, size_t Height, size_t DestX, size_t DestY) const |
Public Member Functions inherited from CEditorComponent | |
virtual bool | OnInput (const IInput::CEvent &Event) override |
void | InitSubComponents () |
void | RegisterSubComponent (CEditorComponent &Component) |
Public Member Functions inherited from CEditorObject | |
virtual | ~CEditorObject ()=default |
virtual void | OnInit (CEditor *pEditor) |
virtual void | OnUpdate () |
virtual bool | OnInput (const IInput::CEvent &Event) |
virtual void | OnRender (CUIRect View) |
virtual void | OnHot () |
virtual void | OnActive () |
virtual void | OnReset () |
virtual void | OnMapLoad () |
bool | IsHot () |
void | SetHot () |
void | UnsetHot () |
bool | IsActive () |
void | SetActive () |
void | SetInactive () |
CEditor * | Editor () |
const CEditor * | Editor () const |
IInput * | Input () |
IClient * | Client () |
CConfig * | Config () |
IConsole * | Console () |
IEngine * | Engine () |
IGraphics * | Graphics () |
ISound * | Sound () |
ITextRender * | TextRender () |
IStorage * | Storage () |
CUi * | Ui () |
CRenderTools * | RenderTools () |
Public Attributes | |
IGraphics::CTextureHandle | m_Texture |
int | m_External = 0 |
char | m_aName [IO_MAX_PATH_LENGTH] = "" |
unsigned char | m_aTileFlags [256] |
CAutoMapper | m_AutoMapper |
Public Attributes inherited from CImageInfo | |
size_t | m_Width = 0 |
size_t | m_Height = 0 |
EImageFormat | m_Format = FORMAT_UNDEFINED |
uint8_t * | m_pData = nullptr |
Additional Inherited Members | |
Public Types inherited from CImageInfo | |
enum | EImageFormat { FORMAT_UNDEFINED = -1 , FORMAT_RGB = 0 , FORMAT_RGBA = 1 , FORMAT_R = 2 , FORMAT_RA = 3 } |
Static Public Member Functions inherited from CImageInfo | |
static size_t | PixelSize (EImageFormat Format) |
static const char * | FormatName (EImageFormat Format) |
|
explicit |
CEditorImage::~CEditorImage | ( | ) |
void CEditorImage::AnalyseTileFlags | ( | ) |
|
overridevirtual |
Initialise the component and interface pointers. Needs to be the first function that is called. The default implentation also resets the component.
Reimplemented from CEditorObject.
char CEditorImage::m_aName[IO_MAX_PATH_LENGTH] = "" |
unsigned char CEditorImage::m_aTileFlags[256] |
CAutoMapper CEditorImage::m_AutoMapper |
int CEditorImage::m_External = 0 |
IGraphics::CTextureHandle CEditorImage::m_Texture |