http://irrlicht.sourceforge.net/docu/cl ... r.html#a16
Zitat:
virtual void irr::video::IVideoDriver::draw2DImage ( video::ITexture * texture,
const core::position2d< s32 > & pos,
const core::array< core::rect< s32 > > & sourceRects,
const core::array< s32 > & indices,
s32 kerningWidth,
const core::rect< s32 > * clipRect,
SColor color,
bool useAlphaChannelOfTexture
) [pure virtual]
draws a set of 2d images, using a color and the alpha
channel of the texture if desired. The images are drawn beginning at pos and concatenated in one line. All drawings are clipped against clipRect (if != 0). The subtextures are defined by the array of sourceRects and are chosen by the indices given.
Parameters:
texture,: Texture to be drawn.
pos,: Upper left 2d destination position where the image will be drawn.
sourceRects,: Source rectangles of the image.
indices,: List of indices which choose the actual rectangle used each time.
kerningWidth,: Offset to Position on X
clipRect,: Pointer to rectangle on the screen where the image is clipped to. This pointer can be 0. Then the image is not clipped.
color,: Color with which the image is colored. Note that the alpha component is used: If alpha is other than 255, the image will be transparent.
useAlphaChannelOfTexture,: If true, the alpha channel of the texture is used to draw the image.
Wenn ich dich richtig verstanden habe, ist dieser Parameter (sourceRects) das, was du suchst, oder?
(Hab das so noch nie benutzt, müsste aber so stimmen)