Classes | |
class | BufferObject1D |
BufferObject template specialized for 1 dimension(s). More... | |
class | BufferObject2D |
BufferObject template specialized for 2 dimension(s). More... | |
class | BufferObject3D |
BufferObject template specialized for 3 dimension(s). More... | |
class | Texture1D |
Texture template specialized for 1 dimension(s). More... | |
class | Texture2D |
Texture template specialized for 2 dimension(s). More... | |
class | Texture3D |
Texture template specialized for 3 dimension(s). More... | |
class | BufferObject |
Representation of OpenGL buffer object. More... | |
class | Texture |
Representation of OpenGL texture. More... | |
Functions | |
template<class Type, size_t Dim> | |
void | copy (Texture< Type, Dim > &dst, const BufferObject< Type, Dim > &src) |
Copy buffer object to texture. | |
template<class Type, size_t Dim> | |
void | copy (Texture< Type, Dim > &dst, const HostMemory< Type, Dim > &src) |
Copy host memory to texture. | |
template<class T> | |
GLint | getInternalFormat () |
Provide "internalFormat" parameter for OpenGL texture calls. | |
template<class T> | |
GLenum | getFormat () |
Provide "format" parameter for OpenGL texture calls. | |
template<class T> | |
GLenum | getType () |
Provide "type" parameter for OpenGL texture calls. |
void Cuda::OpenGL::copy | ( | Texture< Type, Dim > & | dst, | |
const HostMemory< Type, Dim > & | src | |||
) | [inline] |
Copy host memory to texture.
dst | generic destination pointer | |
src | generic source pointer |
void Cuda::OpenGL::copy | ( | Texture< Type, Dim > & | dst, | |
const BufferObject< Type, Dim > & | src | |||
) | [inline] |
Copy buffer object to texture.
dst | generic destination pointer | |
src | generic source pointer |
GLenum Cuda::OpenGL::getFormat | ( | ) | [inline] |
Provide "format" parameter for OpenGL texture calls.
In some situations "GL_BGR" is more efficient than "GL_RGB". However, "GL_BGR" is not yet supported. Moreover, in the current implementation, "format" and "internalFormat" are identical (see getInternalFormat), but there is no internal format "GL_BGR".
GLint Cuda::OpenGL::getInternalFormat | ( | ) | [inline] |
Provide "internalFormat" parameter for OpenGL texture calls.
In the current implementation, this is identical with the "format" parameter.
GLenum Cuda::OpenGL::getType | ( | ) | [inline] |