GluonPlayer::GLFBOApplet Class Reference

#include <glfboapplet.h>

Inheritance diagram for GluonPlayer::GLFBOApplet:
GluonPlayer::PlasmaApplet

List of all members.

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 ()

Detailed Description

Definition at line 32 of file glfboapplet.h.


Constructor & Destructor Documentation

GLFBOApplet::GLFBOApplet ( QGraphicsItem *  parent,
const QString &  serviceId,
int  appletId 
)
  • parent the QGraphicsItem this applet is parented to
  • serviceId the name of the .desktop file containing the information about the widget
  • appletId a unique id used to differentiate between multiple instances of the same Applet type

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.

  • parent a QObject parent; you probably want to pass in 0
  • args a list of strings containing two entries: the service id and the applet id

Definition at line 126 of file glfboapplet.cpp.

GLFBOApplet::~GLFBOApplet (  ) 

Definition at line 147 of file glfboapplet.cpp.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:44 2010 for Gluon by  doxygen 1.6.3