Back to index

unity  6.0.0
Public Member Functions | Private Attributes
unity::GeometryCollection Class Reference

#include <unitydialog.h>

Collaboration diagram for unity::GeometryCollection:
Collaboration graph

List of all members.

Public Member Functions

 GeometryCollection ()
bool status ()
void addGeometryForWindow (CompWindow *, const CompRegion &paintRegion)
void addGeometry (const GLTexture::MatrixList &ml, const CompRegion &r, int min, int max)

Private Attributes

MatrixListVector collectedMatrixLists
CompRegionVector collectedRegions
IntVector collectedMinVertices
IntVector collectedMaxVertices

Detailed Description

Definition at line 37 of file unitydialog.h.

Constructor & Destructor Documentation

Member Function Documentation

void unity::GeometryCollection::addGeometry ( const GLTexture::MatrixList &  ml,
const CompRegion &  r,
int  min,
int  max 

Definition at line 481 of file unitydialog.cpp.

  collectedMatrixLists.push_back (ml);
  collectedRegions.push_back (r);
  collectedMaxVertices.push_back (max);
  collectedMinVertices.push_back (min);

Here is the caller graph for this function:

void unity::GeometryCollection::addGeometryForWindow ( CompWindow *  w,
const CompRegion &  paintRegion 

Definition at line 452 of file unitydialog.cpp.

  /* We can reset the window geometry since it will be
   * re-added later */
  GLWindow::get (w)->vertexBuffer()->begin();
  GLWindow::get (w)->geometry().reset();

  for (unsigned int i = 0; i < collectedMatrixLists.size (); i++)
    GLTexture::MatrixList matl = collectedMatrixLists[i];
    CompRegion            reg  = collectedRegions[i];
    int                   min = collectedMinVertices[i];
    int                   max = collectedMaxVertices[i];

    /* Now allow plugins to mess with the geometry of our
     * dim (so we get a nice render for things like
     * wobbly etc etc */
    GLWindow::get (w)->glAddGeometry(matl, reg, paintRegion, min, max);

  GLWindow::get (w)->vertexBuffer()->end();

Here is the caller graph for this function:

Definition at line 443 of file unitydialog.cpp.

  return (collectedMatrixLists.size () == collectedRegions.size () &&
         collectedRegions.size () == collectedMaxVertices.size () &&
         collectedMaxVertices.size () == collectedMinVertices.size () &&
         collectedMinVertices.size () == collectedMatrixLists.size ());

Here is the caller graph for this function:

Member Data Documentation

Definition at line 51 of file unitydialog.h.

Definition at line 54 of file unitydialog.h.

Definition at line 53 of file unitydialog.h.

Definition at line 52 of file unitydialog.h.

The documentation for this class was generated from the following files: