Commit 8b23f2c9 authored by Frédéric Larue's avatar Frédéric Larue

Minor modifications in GPU module.

parent 82c8901a
......@@ -128,22 +128,6 @@ void GPU::FrameBuffer::Release()
}
bool GPU::FrameBuffer::Attach( const GLuint attachment,
const GLenum internalFormat )
{
RenderBuffer buff;
return buff.Create( internalFormat, m_Width, m_Height ) && Attach( attachment, buff );
}
bool GPU::FrameBuffer::Attach( const GLuint attachment,
const GLenum internalFormats[] )
{
RenderBuffer buff;
return buff.Create( internalFormats, m_Width, m_Height ) && Attach( attachment, buff );
}
bool GPU::FrameBuffer::Attach( const GLuint attachment,
const GPU::RenderBuffer &buff )
{
......
......@@ -122,24 +122,24 @@ namespace GPU
inline GLuint Height() const { return m_Height; }
inline GLuint Id() const { return m_Id; }
bool Attach( const GLuint attachment,
const GLenum internalFormat );
bool Attach( const GLuint attachment,
const GLenum internalFormats[] );
bool Attach( const GLuint attachment,
const GPU::RenderBuffer &buff );
inline bool Attach( const GLuint attachment,
const GLenum internalFormat ) { GLenum f[] = {internalFormat,GL_NONE}; return Attach(attachment,f); }
inline bool Attach( const GLuint attachment,
const GLenum internalFormats[] ) { RenderBuffer buff; return buff.Create(internalFormats,m_Width,m_Height) && Attach(attachment,buff); }
inline bool Attach( const GLuint attachment,
const GPU::RenderBuffer *buff ) { return buff? Attach(attachment,*buff) : false; }
bool Attach( const GLuint attachment,
const GPU::Texture2D &tex );
const GPU::RenderBuffer &buff );
inline bool Attach( const GLuint attachment,
const GPU::Texture2D *tex ) { return tex? Attach(attachment,*tex) : false; }
bool Attach( const GLuint attachment,
const GPU::TextureCube &tex,
const GLenum targetCubeFace );
const GPU::Texture2D &tex );
inline bool Attach( const GLuint attachment,
const GPU::TextureCube *tex,
const GLenum targetCubeFace ) { return tex? Attach(attachment,*tex,targetCubeFace) : false; }
bool Attach( const GLuint attachment,
const GPU::TextureCube &tex,
const GLenum targetCubeFace );
void Detach( const GLuint attachment );
void Enable ( const GLuint attachment );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment