From 7812d914f217540e11748797874561096fcd9dbb Mon Sep 17 00:00:00 2001 From: cutealien Date: Thu, 26 Aug 2021 16:49:47 +0000 Subject: [PATCH] Add comments in IRenderTarget interface. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6244 dfc29bdd-3216-0410-991c-e03cc46cb475 --- include/IRenderTarget.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/IRenderTarget.h b/include/IRenderTarget.h index b6a046a8..0247f798 100644 --- a/include/IRenderTarget.h +++ b/include/IRenderTarget.h @@ -58,7 +58,7 @@ namespace video /** Set multiple textures for the render target. \param texture Array of texture objects. These textures are used for a color outputs. \param depthStencil Depth or packed depth-stencil texture. This texture is used as depth - or depth-stencil buffer. + or depth-stencil buffer. You can pass getDepthStencil() if you don't want to change it. \param cubeSurfaces When rendering to cube textures, set the surface to be used for each texture. Can be empty otherwise. */ void setTexture(const core::array& texture, ITexture* depthStencil, const core::array& cubeSurfaces = core::array()) @@ -66,7 +66,8 @@ namespace video setTextures(texture.const_pointer(), texture.size(), depthStencil, cubeSurfaces.const_pointer(), cubeSurfaces.size()); } - //! Set one texture + //! Sets one texture + depthStencil + //! You can pass getDepthStencil() for depthStencil if you don't want to change that one void setTexture(ITexture* texture, ITexture* depthStencil) { if ( texture )