mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-17 15:58:21 +01:00
Add comment that createScreenShot only supports ERT_FRAME_BUFFER
Thanks @Eduuu for bringing this to attention git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6444 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
817d59f379
commit
cfa42b743c
@ -514,8 +514,8 @@ namespace video
|
|||||||
- For a 32-bit texture only the red channel is regarded
|
- For a 32-bit texture only the red channel is regarded
|
||||||
- For a 16-bit texture the rgb-values are averaged.
|
- For a 16-bit texture the rgb-values are averaged.
|
||||||
Output channels red/green for X/Y and blue for up (Z).
|
Output channels red/green for X/Y and blue for up (Z).
|
||||||
For a 32-bit texture we store additionally the height value in the
|
For a 32-bit texture we store additionally the height value in the
|
||||||
alpha channel. This value is used by the video::EMT_PARALLAX_MAP_SOLID
|
alpha channel. This value is used by the video::EMT_PARALLAX_MAP_SOLID
|
||||||
material and similar materials.
|
material and similar materials.
|
||||||
On the borders the texture is considered to repeat.
|
On the borders the texture is considered to repeat.
|
||||||
\param texture Height map texture which is converted to a normal map.
|
\param texture Height map texture which is converted to a normal map.
|
||||||
@ -789,7 +789,7 @@ namespace video
|
|||||||
//! Draws a 2d image without any special effects
|
//! Draws a 2d image without any special effects
|
||||||
/** \param texture Pointer to texture to use.
|
/** \param texture Pointer to texture to use.
|
||||||
\param destPos Upper left 2d destination position where the
|
\param destPos Upper left 2d destination position where the
|
||||||
image will be drawn.
|
image will be drawn.
|
||||||
\param useAlphaChannelOfTexture: If true, the alpha channel of
|
\param useAlphaChannelOfTexture: If true, the alpha channel of
|
||||||
the texture is used to draw the image.*/
|
the texture is used to draw the image.*/
|
||||||
virtual void draw2DImage(const video::ITexture* texture,
|
virtual void draw2DImage(const video::ITexture* texture,
|
||||||
@ -1231,7 +1231,7 @@ namespace video
|
|||||||
\param data A byte array with pixel color information
|
\param data A byte array with pixel color information
|
||||||
\param ownForeignMemory If true, the image will use the data
|
\param ownForeignMemory If true, the image will use the data
|
||||||
pointer directly and own it afterward. If false, the memory
|
pointer directly and own it afterward. If false, the memory
|
||||||
will by copied internally.
|
will by copied internally.
|
||||||
WARNING: Setting this to 'true' will not work across dll boundaries.
|
WARNING: Setting this to 'true' will not work across dll boundaries.
|
||||||
So unless you link Irrlicht statically you should keep this to 'false'.
|
So unless you link Irrlicht statically you should keep this to 'false'.
|
||||||
The parameter is mainly for internal usage.
|
The parameter is mainly for internal usage.
|
||||||
@ -1429,7 +1429,9 @@ namespace video
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! Make a screenshot of the last rendered frame.
|
//! Make a screenshot of the last rendered frame.
|
||||||
/** \return An image created from the last rendered frame. */
|
/**
|
||||||
|
\param target All current drivers only support ERT_FRAME_BUFFER
|
||||||
|
\return An image created from the last rendered frame. */
|
||||||
virtual IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) =0;
|
virtual IImage* createScreenShot(video::ECOLOR_FORMAT format=video::ECF_UNKNOWN, video::E_RENDER_TARGET target=video::ERT_FRAME_BUFFER) =0;
|
||||||
|
|
||||||
//! Check if the image is already loaded.
|
//! Check if the image is already loaded.
|
||||||
|
Loading…
Reference in New Issue
Block a user