nux-0.9.48

nux::PBuffer Class Reference

#include <NuxGraphics/GLPBuffer.h>

Public Member Functions

 PBuffer (const char *strMode, bool managed=false)
 ~PBuffer ()
bool Initialize (int iWidth, int iHeight, bool bShareContexts, bool bShareObjects)
void Destroy ()
void Activate (PBuffer *current=NULL)
void Deactivate ()
unsigned int GetSizeInBytes ()
unsigned int CopyToBuffer (void *ptr, int w=-1, int h=-1)
int GetNumComponents ()
int GetBitsPerComponent ()
int GetWidth ()
int GetHeight ()
bool IsSharedContext ()

Protected Attributes

int m_iWidth
int m_iHeight
int m_iNComponents
int m_iBitsPerComponent
const char * m_strMode
bool m_bSharedContext
bool m_bShareObjects

Constructor & Destructor Documentation

nux::PBuffer::PBuffer ( const char *  strMode,
bool  managed = false 
)
nux::PBuffer::~PBuffer ( )

Member Function Documentation

void nux::PBuffer::Activate ( PBuffer current = NULL)
unsigned int nux::PBuffer::CopyToBuffer ( void *  ptr,
int  w = -1,
int  h = -1 
)
void nux::PBuffer::Deactivate ( )
void nux::PBuffer::Destroy ( )
int nux::PBuffer::GetBitsPerComponent ( ) [inline]

References m_iBitsPerComponent.

int nux::PBuffer::GetHeight ( ) [inline]

References m_iHeight.

int nux::PBuffer::GetNumComponents ( ) [inline]

References m_iNComponents.

unsigned int nux::PBuffer::GetSizeInBytes ( )
int nux::PBuffer::GetWidth ( ) [inline]

References m_iWidth.

bool nux::PBuffer::Initialize ( int  iWidth,
int  iHeight,
bool  bShareContexts,
bool  bShareObjects 
)
bool nux::PBuffer::IsSharedContext ( ) [inline]

References m_bSharedContext.


Field Documentation

Referenced by IsSharedContext().

int nux::PBuffer::m_iHeight [protected]

Referenced by GetHeight().

Referenced by GetNumComponents().

int nux::PBuffer::m_iWidth [protected]

Referenced by GetWidth().

const char* nux::PBuffer::m_strMode [protected]

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