Added Object::resizeGLObjectBuffers(uint) method to help improve the ability
to change the number of active graphics contexts on the fly during an applications life.
This commit is contained in:
@@ -48,6 +48,8 @@ class buffered_value
|
||||
inline bool empty() const { return _array.empty(); }
|
||||
|
||||
inline unsigned int size() const { return _array.size(); }
|
||||
|
||||
inline void resize(unsigned int newSize) { _array.resize(newSize,0); }
|
||||
|
||||
inline T& operator[] (unsigned int pos)
|
||||
{
|
||||
@@ -99,6 +101,8 @@ class buffered_object
|
||||
|
||||
inline unsigned int size() const { return _array.size(); }
|
||||
|
||||
inline void resize(unsigned int newSize) { _array.resize(newSize); }
|
||||
|
||||
inline T& operator[] (unsigned int pos)
|
||||
{
|
||||
// automatically resize array.
|
||||
|
||||
Reference in New Issue
Block a user