.. _api_RenderTarget: RenderTarget ============ Inherited: None .. _api_RenderTarget_description: Description ----------- .. _api_RenderTarget_public: Public Methods -------------- +--------------------------------+-----------------------------------------------------------------------------------------------------+ | :ref:`Texture` * | :ref:`colorAttachment` (uint32_t index) const | +--------------------------------+-----------------------------------------------------------------------------------------------------+ | :ref:`uint32_t` | :ref:`colorAttachmentCount` () const | +--------------------------------+-----------------------------------------------------------------------------------------------------+ | :ref:`Texture` * | :ref:`depthAttachment` () const | +--------------------------------+-----------------------------------------------------------------------------------------------------+ | :ref:`uint32_t` | :ref:`setColorAttachment` (uint32_t index, Texture * texture) | +--------------------------------+-----------------------------------------------------------------------------------------------------+ | void | :ref:`setDepthAttachment` (Texture * texture) | +--------------------------------+-----------------------------------------------------------------------------------------------------+ .. _api_RenderTarget_static: Static Methods -------------- None .. _api_RenderTarget_methods: Methods Description ------------------- .. _api_RenderTarget_colorAttachment: :ref:`Texture` * **RenderTarget::colorAttachment** (:ref:`uint32_t` *index*) const Returns the attached color textures with *index*. **See also** setColorAttachment(). ---- .. _api_RenderTarget_colorAttachmentCount: :ref:`uint32_t` **RenderTarget::colorAttachmentCount** () const Returns the number of attached color textures. ---- .. _api_RenderTarget_depthAttachment: :ref:`Texture` * **RenderTarget::depthAttachment** () const Returns an attached depth texture if exist. **See also** setDepthAttachment(). ---- .. _api_RenderTarget_setColorAttachment: :ref:`uint32_t` **RenderTarget::setColorAttachment** (:ref:`uint32_t` *index*, :ref:`Texture` * *texture*) Attach a color *texture* at *index* to render target. **See also** colorAttachment(). ---- .. _api_RenderTarget_setDepthAttachment: void **RenderTarget::setDepthAttachment** (:ref:`Texture` * *texture*) Attach a depth *texture* to render target. **See also** depthAttachment().