- performance improve for color picking using pbo

This commit is contained in:
Mark Vejvoda
2011-12-13 22:50:14 +00:00
parent 724d274367
commit 2fd89f11d5
2 changed files with 17 additions and 15 deletions

View File

@@ -225,6 +225,7 @@ public:
static Pixmap2D *getPixelBufferFor(int x,int y,int w,int h, int colorComponents);
static void begin();
static void end();
static bool getIsPBOEnable() { return isPBOEnabled; }
private:
static bool isPBOEnabled;
@@ -239,7 +240,7 @@ class BaseColorPickEntity {
public:
BaseColorPickEntity();
static const int COLOR_COMPONENTS = 3;
static const int COLOR_COMPONENTS = 4;
static void init(int bufferSize);
static void beginPicking();
static void endPicking();