#include <ImportableImageI.h>
Inheritance diagram for ImportableImageI:
Public Methods | |
virtual PluginClass::SuperClassIdC | get_super_class_id () |
Returns the super class ID. | |
virtual PajaTypes::float32 | get_width ()=0 |
Returns width of the image in pixels. | |
virtual PajaTypes::float32 | get_height ()=0 |
Returns height of the image in pixels. | |
virtual PajaTypes::int32 | get_data_width ()=0 |
Returns width of the image data in pixels. | |
virtual PajaTypes::int32 | get_data_height ()=0 |
Returns height of the image data in pixels. | |
virtual PajaTypes::int32 | get_data_pitch ()=0 |
Returns pitch of the image, pitch is the actual length of scanline in pixels. | |
virtual PajaTypes::int32 | get_data_bpp ()=0 |
Return bits per pixel. | |
virtual PajaTypes::uint8 * | get_data ()=0 |
Returns pointer to the imagedata. | |
virtual void | bind_texture (PajaSystem::DeviceInterfaceI *pInterface, PajaTypes::uint32 ui32Properties)=0 |
Binds texture to the given device. | |
Protected Methods | |
ImportableImageI () | |
Default constructor. | |
ImportableImageI (Edit::EditableI *pOriginal) | |
Constructor with reference to the original. | |
virtual | ~ImportableImageI () |
Default destructor. |
This interface, derived from ImportableI, implements super class for image importers. There are set of methods which enables to get the information of the image and to bind it (set as active image) on specified device.
The dimension of a single pixel in the image is determined from the physical size of the image (get_width(), get_heigt()) and the data size of the image (get_data_width(), get_data_height()). This enables the image to be resized to fit the underlying rendering API an still has correct size compared to the original image.
|
Default constructor.
|
|
Constructor with reference to the original.
|
|
Default destructor.
|
|
Binds texture to the given device.
|
|
Returns pointer to the imagedata.
|
|
Return bits per pixel.
|
|
Returns height of the image data in pixels.
|
|
Returns pitch of the image, pitch is the actual length of scanline in pixels.
|
|
Returns width of the image data in pixels.
|
|
Returns height of the image in pixels.
|
|
Returns the super class ID.
Implements ImportableI. |
|
Returns width of the image in pixels.
|