public:
+ //! Returns state of OIT uniforms.
+ const OpenGl_OitState& OitState() const { return myOitState; }
+
//! Set the state of OIT rendering pass.
//! @param theToEnableOitWrite [in] flag indicating whether the special output should be written for OIT algorithm.
//! @param theDepthFactor [in] the scalar factor of depth influence to the fragment's coverage.
//! are declared in this class.
class OpenGl_TextureBufferArb : public OpenGl_VertexBuffer
{
-
+ DEFINE_STANDARD_RTTIEXT(OpenGl_TextureBufferArb, OpenGl_VertexBuffer)
public:
//! Helpful constants
const Graphic3d_TextureUnit theTextureUnit) const;
//! Returns name of TBO.
- GLuint TextureId() const
- {
- return myTextureId;
- }
+ GLuint TextureId() const { return myTextureId; }
+
+ //! Returns internal texture format.
+ GLenum TextureFormat() const { return myTexFormat; }
protected:
GLuint myTextureId; //!< texture id
GLenum myTexFormat; //!< internal texture format
-public:
-
- DEFINE_STANDARD_RTTIEXT(OpenGl_TextureBufferArb,OpenGl_VertexBuffer) // Type definition
-
};
DEFINE_STANDARD_HANDLE(OpenGl_TextureBufferArb, OpenGl_VertexBuffer)