Cuda::OpenGL Namespace Reference

This namespace contains all OpenGL-related classes and functions of the CUDA templates. More...


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.


Detailed Description

This namespace contains all OpenGL-related classes and functions of the CUDA templates.

Function Documentation

template<class Type, size_t Dim>
void Cuda::OpenGL::copy ( Texture< Type, Dim > &  dst,
const HostMemory< Type, Dim > &  src 
) [inline]

Copy host memory to texture.

Parameters:
dst generic destination pointer
src generic source pointer

template<class Type, size_t Dim>
void Cuda::OpenGL::copy ( Texture< Type, Dim > &  dst,
const BufferObject< Type, Dim > &  src 
) [inline]

Copy buffer object to texture.

Parameters:
dst generic destination pointer
src generic source pointer

template<class T>
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".

Returns:
format parameter

template<class T>
GLint Cuda::OpenGL::getInternalFormat (  )  [inline]

Provide "internalFormat" parameter for OpenGL texture calls.

In the current implementation, this is identical with the "format" parameter.

Returns:
internalFormat parameter

template<class T>
GLenum Cuda::OpenGL::getType (  )  [inline]

Provide "type" parameter for OpenGL texture calls.

Returns:
type parameter


Generated on Sun Sep 13 00:55:28 2009 for cudatemplates by  doxygen 1.5.6