#include <glfboapplet.h>
Classes | |
class | GLFBOAppletPrivate |
Public Member Functions | |
GLFBOApplet (QGraphicsItem *parent, const QString &serviceId, int appletId) | |
GLFBOApplet (QObject *parent, const QVariantList &args) | |
~GLFBOApplet () | |
GLuint | bindTexture (const QImage &image, GLenum target=GL_TEXTURE_2D) |
void | deleteTexture (GLuint texture_id) |
virtual void | paintGLInterface (QPainter *painter, const QStyleOptionGraphicsItem *option) |
void | makeCurrent () |
Definition at line 32 of file glfboapplet.h.
GLFBOApplet::GLFBOApplet | ( | QGraphicsItem * | parent, | |
const QString & | serviceId, | |||
int | appletId | |||
) |
Definition at line 103 of file glfboapplet.cpp.
GLFBOApplet::GLFBOApplet | ( | QObject * | parent, | |
const QVariantList & | args | |||
) |
This constructor is to be used with the plugin loading systems found in KPluginInfo and KService. The argument list is expected to have two elements: the KService service ID for the desktop entry and an applet ID which must be a base 10 number.
Definition at line 126 of file glfboapplet.cpp.
GLFBOApplet::~GLFBOApplet | ( | ) |
Definition at line 147 of file glfboapplet.cpp.
GLuint GLFBOApplet::bindTexture | ( | const QImage & | image, | |
GLenum | target = GL_TEXTURE_2D | |||
) |
Definition at line 152 of file glfboapplet.cpp.
void GLFBOApplet::deleteTexture | ( | GLuint | texture_id | ) |
Definition at line 162 of file glfboapplet.cpp.
void GLFBOApplet::makeCurrent | ( | ) |
Definition at line 296 of file glfboapplet.cpp.
void GLFBOApplet::paintGLInterface | ( | QPainter * | painter, | |
const QStyleOptionGraphicsItem * | option | |||
) | [virtual] |
Reimplement this method to render using OpenGL. QPainter passed to this method will always use OpenGL engine and rendering using OpenGL api directly is supported.
Reimplemented in GluonPlayer::PlasmaApplet.
Definition at line 168 of file glfboapplet.cpp.