Added List::GetArray() and then update Gradient

This commit is contained in:
2023-07-24 14:33:30 +08:00
parent 3a99617538
commit 555d445d30
2 changed files with 4 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ namespace hgl
Comparator<GS> comp;
hgl::Sort(stop_list,&comp);
hgl::Sort(stop_list.GetArray(),&comp);
dirty=false;
}

View File

@@ -32,6 +32,9 @@ namespace hgl
public:
DataArray<T> & GetArray() {return data_array;}
const DataArray<T> &GetArray()const {return data_array;}
operator DataArray<T> & () {return data_array;}
operator const DataArray<T> & ()const {return data_array;}