Support for artistic tone curves in DCPs
see issue 1527
This commit is contained in:
@@ -135,7 +135,7 @@ public:
|
||||
return *this;
|
||||
}
|
||||
// use with integer indices
|
||||
T& operator[](int index) {
|
||||
T& operator[](int index) const {
|
||||
if (((unsigned int)index)<size) return data[index];
|
||||
else
|
||||
{
|
||||
@@ -147,7 +147,7 @@ public:
|
||||
|
||||
}
|
||||
// use with float indices
|
||||
T operator[](float index) {
|
||||
T operator[](float index) const {
|
||||
int idx = (int)index; // don't use floor! The difference in negative space is no problems here
|
||||
if (((unsigned int)idx) > maxs) {
|
||||
if (idx<0)
|
||||
@@ -185,7 +185,7 @@ public:
|
||||
#endif
|
||||
|
||||
|
||||
operator bool (void)
|
||||
operator bool (void) const
|
||||
{
|
||||
return size>0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user