Back to index

unity  6.0.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes
unity::PaintInfoCollector Class Reference

#include <unitydialog.h>

Collaboration diagram for unity::PaintInfoCollector:
Collaboration graph

List of all members.

Public Member Functions

 PaintInfoCollector (CompWindow *w)
void collect ()
void drawGeometriesForWindow (CompWindow *w, unsigned int pm)
void processGeometry (const GLTexture::MatrixList &ml, const CompRegion &r, int min, int max)
void processTexture (GLTexture *tex)

Static Public Member Functions

static PaintInfoCollectorActive ()

Static Public Attributes

static PaintInfoCollectoractive_collector = NULL

Private Attributes

< TexGeometryCollection
CompWindow * mWindow

Detailed Description

Definition at line 80 of file unitydialog.h.

Constructor & Destructor Documentation

Definition at line 571 of file unitydialog.cpp.

  mWindow (w)

Member Function Documentation

Definition at line 638 of file unitydialog.cpp.

  return active_collector;

Here is the caller graph for this function:

Definition at line 577 of file unitydialog.cpp.

  GLWindow *gWindow = GLWindow::get (mWindow);
  UnityDialogWindow *udw = UnityDialogWindow::get (mWindow);
  GLMatrix sTransform;

  sTransform.toScreenSpace(&screen->outputDevs()[screen->outputDeviceForGeometry(mWindow->geometry())], -DEFAULT_Z_CAMERA);

  gWindow->glDrawTextureSetEnabled(udw, true);
  gWindow->glAddGeometrySetEnabled(udw, true);
  gWindow->glDrawSetEnabled(udw, false);
  gWindow->glPaintSetEnabled(udw, false);

  mCollection.push_back (unity::TexGeometryCollection ());

  unity::PaintInfoCollector::active_collector = this;

  gWindow->glPaint(gWindow->lastPaintAttrib(), sTransform, infiniteRegion, 0);

  unity::PaintInfoCollector::active_collector = NULL;

  gWindow->glDrawTextureSetEnabled(udw, false);
  gWindow->glAddGeometrySetEnabled(udw, false);
  gWindow->glDrawSetEnabled(udw, true);
  gWindow->glPaintSetEnabled(udw, true);

Here is the caller graph for this function:

void unity::PaintInfoCollector::drawGeometriesForWindow ( CompWindow *  w,
unsigned int  pm 

Definition at line 621 of file unitydialog.cpp.

  for (unity::TexGeometryCollection &tcg : mCollection)
    tcg.addGeometriesAndDrawTextureForWindow (w, transform, pm);
    tcg.addGeometriesAndDrawTextureForWindow (w, pm);

Here is the caller graph for this function:

void unity::PaintInfoCollector::processGeometry ( const GLTexture::MatrixList &  ml,
const CompRegion &  r,
int  min,
int  max 

Definition at line 605 of file unitydialog.cpp.

  mCollection.back ().addGeometry (ml, r, min, max);

Here is the caller graph for this function:

void unity::PaintInfoCollector::processTexture ( GLTexture *  tex)

Definition at line 614 of file unitydialog.cpp.

  mCollection.back().setTexture (tex);
  mCollection.push_back (unity::TexGeometryCollection ());

Here is the caller graph for this function:

Member Data Documentation

Definition at line 104 of file unitydialog.h.

Definition at line 109 of file unitydialog.h.

CompWindow* unity::PaintInfoCollector::mWindow [private]

Definition at line 110 of file unitydialog.h.

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