DDraceNetwork Docs
CEditorImage Class Reference

#include <image.h>

Inheritance diagram for CEditorImage:
[legend]
Collaboration diagram for CEditorImage:
[legend]

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 ()
 
CEditorEditor ()
 
const CEditorEditor () const
 
IInputInput ()
 
IClientClient ()
 
CConfigConfig ()
 
IConsoleConsole ()
 
IEngineEngine ()
 
IGraphicsGraphics ()
 
ISoundSound ()
 
ITextRenderTextRender ()
 
IStorageStorage ()
 
CUiUi ()
 
CRenderToolsRenderTools ()
 

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)
 

Constructor & Destructor Documentation

◆ CEditorImage()

CEditorImage::CEditorImage ( CEditor pEditor)
explicit

◆ ~CEditorImage()

CEditorImage::~CEditorImage ( )

Member Function Documentation

◆ AnalyseTileFlags()

void CEditorImage::AnalyseTileFlags ( )

◆ OnInit()

void CEditorImage::OnInit ( CEditor pEditor)
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.

Member Data Documentation

◆ m_aName

char CEditorImage::m_aName[IO_MAX_PATH_LENGTH] = ""

◆ m_aTileFlags

unsigned char CEditorImage::m_aTileFlags[256]

◆ m_AutoMapper

CAutoMapper CEditorImage::m_AutoMapper

◆ m_External

int CEditorImage::m_External = 0

◆ m_Texture

IGraphics::CTextureHandle CEditorImage::m_Texture

The documentation for this class was generated from the following files: