examples/Qt/ISFEditor/ISFEditor_app/Spout/SpoutGLDXinterop.cpp
// If an OpenGL texture has not been created or it is a different size, create a new one

If an OpenGL texture has not been created or it is a different size, create a new one
If an OpenGL texture has not been created or it is a different size create a new one
void spoutGLDXinterop::CheckOpenGLTexture(GLuint &texID, GLenum GLformat,
										  unsigned int newWidth, unsigned int newHeight,
										  unsigned int &texWidth, unsigned int &texHeight)
{
	if(texID == 0 || newWidth != texWidth || newHeight != texHeight) {
		InitTexture(texID, GLformat, newWidth, newHeight);
		texWidth = newWidth;
		texHeight = newHeight;
	}
}
void spoutGLDXinterop :: CheckOpenGLTexture ( GLuint & texID , GLenum GLformat , unsigned int newWidth , unsigned int newHeight , unsigned int & texWidth , unsigned int & texHeight ) { if ( texID == 0 || newWidth != texWidth || newHeight != texHeight ) { InitTexture ( texID , GLformat , newWidth , newHeight ) ; texWidth = newWidth ; texHeight = newHeight ; } }
If an OpenGL texture has not been created or it is a different size, create a new one
If an OpenGL texture has not been created or it is a different size create a new one