mirror of
https://github.com/glest/glest-source.git
synced 2025-09-30 01:18:58 +02:00
- changed selection code to use color picking, can disable using new ini setting:
EnableColorPicking=false
This commit is contained in:
@@ -216,6 +216,31 @@ private:
|
||||
void buildInterpolationData() const;
|
||||
};
|
||||
|
||||
class BaseColorPickEntity {
|
||||
private:
|
||||
static const int COLOR_COMPONENTS = 3;
|
||||
unsigned char uniqueColorID[COLOR_COMPONENTS];
|
||||
|
||||
static unsigned char nextColorID[COLOR_COMPONENTS];
|
||||
static Mutex mutexNextColorID;
|
||||
|
||||
public:
|
||||
|
||||
BaseColorPickEntity();
|
||||
static void beginPicking();
|
||||
static void endPicking();
|
||||
static vector<int> getPickedList(int x,int y,int w,int h, const vector<BaseColorPickEntity *> &rendererModels);
|
||||
|
||||
void setUniquePickingColor() const;
|
||||
bool isUniquePickingColor(unsigned char *pixel) const;
|
||||
|
||||
string getColorDescription() const;
|
||||
virtual string getUniquePickName() const = 0;
|
||||
|
||||
~BaseColorPickEntity() {};
|
||||
};
|
||||
|
||||
|
||||
}}//end namespace
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user