LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
OpenGLTexture Class Referencefinal

#include <texture.hxx>

Collaboration diagram for OpenGLTexture:
[legend]

Public Member Functions

 OpenGLTexture ()
 
 OpenGLTexture (const std::shared_ptr< ImplOpenGLTexture > &pImpl, tools::Rectangle aRectangle, int nSlotNumber)
 
 OpenGLTexture (int nWidth, int nHeight, bool bAllocate=true)
 
 OpenGLTexture (int nWidth, int nHeight, int nFormat, int nType, void const *pData)
 
 OpenGLTexture (int nX, int nY, int nWidth, int nHeight)
 
 OpenGLTexture (const OpenGLTexture &rTexture)
 
 OpenGLTexture (OpenGLTexture &&rTexture)
 
 OpenGLTexture (const OpenGLTexture &rTexture, int nX, int nY, int nWidth, int nHeight)
 
 ~OpenGLTexture ()
 
bool IsUnique () const
 
GLuint Id () const
 
int GetWidth () const
 
int GetHeight () const
 
void GetCoord (GLfloat *pCoord, const SalTwoRect &rPosAry, bool bInverted=false) const
 
void GetWholeCoord (GLfloat *pCoord) const
 
void Bind ()
 
void Unbind ()
 
void Read (GLenum nFormat, GLenum nType, sal_uInt8 *pData)
 
GLuint AddStencil ()
 
GLuint StencilId () const
 
bool CopyData (int nWidth, int nHeight, int nFormat, int nType, sal_uInt8 const *pData)
 
void SaveToFile (const OUString &rFileName)
 
GLenum GetFilter () const
 
void SetFilter (GLenum nFilter)
 
 operator bool () const
 
OpenGLTextureoperator= (const OpenGLTexture &rTexture)
 
OpenGLTextureoperator= (OpenGLTexture &&rTexture)
 
bool operator== (const OpenGLTexture &rTexture) const
 
bool operator!= (const OpenGLTexture &rTexture) const
 
template<GLenum type>
void FillCoords (std::vector< GLfloat > &aCoordVector, const SalTwoRect &rPosAry) const
 
template<>
void FillCoords (std::vector< GLfloat > &aCoord, const SalTwoRect &rPosAry) const
 
template<>
void FillCoords (std::vector< GLfloat > &aCoord, const SalTwoRect &rPosAry) const
 

Private Member Functions

void GetTextureRect (const SalTwoRect &rPosAry, GLfloat &x1, GLfloat &x2, GLfloat &y1, GLfloat &y2) const
 
bool IsValid () const
 

Private Attributes

tools::Rectangle maRect
 
std::shared_ptr< ImplOpenGLTexturempImpl
 
int mnSlotNumber
 

Detailed Description

Definition at line 70 of file texture.hxx.

Constructor & Destructor Documentation

OpenGLTexture::OpenGLTexture ( )
OpenGLTexture::OpenGLTexture ( const std::shared_ptr< ImplOpenGLTexture > &  pImpl,
tools::Rectangle  aRectangle,
int  nSlotNumber 
)
OpenGLTexture::OpenGLTexture ( int  nWidth,
int  nHeight,
bool  bAllocate = true 
)
OpenGLTexture::OpenGLTexture ( int  nWidth,
int  nHeight,
int  nFormat,
int  nType,
void const *  pData 
)
OpenGLTexture::OpenGLTexture ( int  nX,
int  nY,
int  nWidth,
int  nHeight 
)
OpenGLTexture::OpenGLTexture ( const OpenGLTexture rTexture)
OpenGLTexture::OpenGLTexture ( OpenGLTexture &&  rTexture)
OpenGLTexture::OpenGLTexture ( const OpenGLTexture rTexture,
int  nX,
int  nY,
int  nWidth,
int  nHeight 
)
OpenGLTexture::~OpenGLTexture ( )

Member Function Documentation

GLuint OpenGLTexture::AddStencil ( )
void OpenGLTexture::Bind ( )
bool OpenGLTexture::CopyData ( int  nWidth,
int  nHeight,
int  nFormat,
int  nType,
sal_uInt8 const *  pData 
)
template<GLenum type>
void OpenGLTexture::FillCoords ( std::vector< GLfloat > &  aCoordVector,
const SalTwoRect rPosAry 
) const
template<>
void OpenGLTexture::FillCoords ( std::vector< GLfloat > &  aCoord,
const SalTwoRect rPosAry 
) const
template<>
void OpenGLTexture::FillCoords ( std::vector< GLfloat > &  aCoord,
const SalTwoRect rPosAry 
) const
void OpenGLTexture::GetCoord ( GLfloat *  pCoord,
const SalTwoRect rPosAry,
bool  bInverted = false 
) const
GLenum OpenGLTexture::GetFilter ( ) const
int OpenGLTexture::GetHeight ( ) const
void OpenGLTexture::GetTextureRect ( const SalTwoRect rPosAry,
GLfloat &  x1,
GLfloat &  x2,
GLfloat &  y1,
GLfloat &  y2 
) const
inlineprivate
void OpenGLTexture::GetWholeCoord ( GLfloat *  pCoord) const
int OpenGLTexture::GetWidth ( ) const
GLuint OpenGLTexture::Id ( ) const
bool OpenGLTexture::IsUnique ( ) const
bool OpenGLTexture::IsValid ( ) const
inlineprivate

Definition at line 81 of file texture.hxx.

OpenGLTexture::operator bool ( ) const
bool OpenGLTexture::operator!= ( const OpenGLTexture rTexture) const
OpenGLTexture& OpenGLTexture::operator= ( const OpenGLTexture rTexture)
OpenGLTexture& OpenGLTexture::operator= ( OpenGLTexture &&  rTexture)
bool OpenGLTexture::operator== ( const OpenGLTexture rTexture) const
void OpenGLTexture::Read ( GLenum  nFormat,
GLenum  nType,
sal_uInt8 pData 
)
void OpenGLTexture::SaveToFile ( const OUString &  rFileName)
void OpenGLTexture::SetFilter ( GLenum  nFilter)
GLuint OpenGLTexture::StencilId ( ) const
void OpenGLTexture::Unbind ( )

Member Data Documentation

tools::Rectangle OpenGLTexture::maRect
private

Definition at line 75 of file texture.hxx.

int OpenGLTexture::mnSlotNumber
private

Definition at line 77 of file texture.hxx.

std::shared_ptr<ImplOpenGLTexture> OpenGLTexture::mpImpl
private

Definition at line 76 of file texture.hxx.


The documentation for this class was generated from the following file: