All Classes |Grouped Classes |Index

Function to_opengl_pixelformat

Get a OpenGL format out of a pixel format.

	static bool CL_OpenGL::to_opengl_pixelformat(
		CL_TextureFormat  texture_format,
		GLenum & format,
		GLenum & type);

Detailed description:

The function returns false if pixelformat color depth is not convertible to OpenGL pixel format, otherwise the format and type are returned with values in format and type.