7 #ifndef __image_ImageRaw_h__ 8 #define __image_ImageRaw_h__ 30 virtual I32 createSelect(
void);
31 virtual void select(I32
id);
32 virtual I32
selected(
void)
const {
return m_selected; }
33 virtual void unload(I32
id);
35 virtual void setFormat(ImageI::Format format);
36 virtual ImageI::Format
format(
void)
const 37 {
return m_selected<m_buffers.size()?
38 m_buffers[m_selected].m_format: ImageI::e_none; }
40 virtual void resize(U32 width,U32 height,U32 depth);
41 virtual void replaceRegion(U32 x,U32 y,U32 z,
42 U32 width,U32 height,U32 depth,
void*
data);
45 {
return m_selected<m_buffers.size()?
46 m_buffers[m_selected].m_width: 0; }
48 {
return m_selected<m_buffers.size()?
49 m_buffers[m_selected].m_height: 0; }
51 {
return m_selected<m_buffers.size()?
52 m_buffers[m_selected].m_depth: 0; }
53 virtual void*
raw(
void)
const 54 {
return m_selected<m_buffers.size()?
55 m_buffers[m_selected].m_pData: NULL; }
83 m_format=ImageI::e_none;
90 ImageI::Format m_format;
Image handling using raw buffers.
Definition: ImageRaw.h:23
kernel
Definition: namespace.dox:3
virtual U32 depth(void) const
return the Z dimension of the image
Definition: ImageRaw.h:50
virtual ImageI::Format format(void) const
return the format for the selected image
Definition: ImageRaw.h:36
General functionality for image support.
Definition: ImageCommon.h:20
virtual I32 selected(void) const
return the selected image ID
Definition: ImageRaw.h:32
virtual U32 width(void) const
return the X dimension of the image
Definition: ImageRaw.h:44
virtual void * raw(void) const
return the raw byte buffer of the image
Definition: ImageRaw.h:53
virtual U32 height(void) const
return the Y dimension of the image
Definition: ImageRaw.h:47