GLC_ImagePlane : Viewport background image. More...
#include <glc_imageplane.h>
Public Member Functions | |
Constructor / Destructor | |
| GLC_ImagePlane (const QGLContext *pContext, const QString &ImageName) | |
| Construct image plane from the given image file name and QGLContext. | |
| GLC_ImagePlane (const QGLContext *pContext, const QImage &image) | |
| Construct image plane from the given image and QGLContext. | |
| ~GLC_ImagePlane () | |
OpenGL Functions | |
| void | render () |
| Render this image plane. | |
Private Attributes | |
| GLC_Material | m_Material |
| The image plane material. | |
GLC_ImagePlane : Viewport background image.
An GLC_ImagePlane is just a plane with a image texture.
Definition at line 41 of file glc_imageplane.h.
| GLC_ImagePlane::GLC_ImagePlane | ( | const QGLContext * | pContext, | |
| const QString & | ImageName | |||
| ) |
Construct image plane from the given image file name and QGLContext.
Definition at line 36 of file glc_imageplane.cpp.
References GLC_Factory::createTexture(), GLC_Texture::imageOfTexture(), GLC_Factory::instance(), m_Material, GLC_Texture::setMaxTextureSize(), and GLC_Material::setTexture().
| GLC_ImagePlane::GLC_ImagePlane | ( | const QGLContext * | pContext, | |
| const QImage & | image | |||
| ) |
Construct image plane from the given image and QGLContext.
Definition at line 44 of file glc_imageplane.cpp.
References GLC_Factory::createTexture(), GLC_Factory::instance(), m_Material, GLC_Texture::setMaxTextureSize(), and GLC_Material::setTexture().
| GLC_ImagePlane::~GLC_ImagePlane | ( | ) |
Definition at line 52 of file glc_imageplane.cpp.
| void GLC_ImagePlane::render | ( | ) |
Render this image plane.
Definition at line 61 of file glc_imageplane.cpp.
References GLC_Material::glExecute(), and m_Material.
Referenced by GLC_Viewport::renderImagePlane().
GLC_Material GLC_ImagePlane::m_Material [private] |
The image plane material.
Definition at line 73 of file glc_imageplane.h.
Referenced by GLC_ImagePlane(), and render().