link19
05-05-2004, 11:25 AM
Im trying to use this call like so:
// .h
std::vector<BYTE> m_pix;
// .cpp (onrender)
m_pix.resize( m_nWidth * m_nHeight );
glReadPixels( 0, 0, m_nWidth, m_nHeight, GL_RGB, GL_UNSIGNED_BYTE, reinterpret_cast<LPVOID>( &m_pix ) );This crashes...memory issue?
How can i use vectors with this call?
TIA
// .h
std::vector<BYTE> m_pix;
// .cpp (onrender)
m_pix.resize( m_nWidth * m_nHeight );
glReadPixels( 0, 0, m_nWidth, m_nHeight, GL_RGB, GL_UNSIGNED_BYTE, reinterpret_cast<LPVOID>( &m_pix ) );This crashes...memory issue?
How can i use vectors with this call?
TIA