28 #ifndef opengl_CSetOfObjects_H
29 #define opengl_CSetOfObjects_H
70 inline const_iterator
begin()
const {
return m_objects.begin(); }
78 insert(objs.begin(),objs.end());
87 for (T_it it=begin;it!=
end;it++) insert(*it);
99 size_t size() {
return m_objects.size(); }
102 inline bool empty()
const {
return m_objects.empty(); }
106 void initializeAllTextures();
119 template <
typename T>
120 typename T::SmartPtr getByClass(
const size_t &ith = 0 )
const
123 size_t foundCount = 0;
126 if ( (*it).present() && (*it)->GetRuntimeClass()->derivedFrom( class_ID ) )
127 if (foundCount++ == ith)
128 return typename T::SmartPtr(*it);
140 return typename T::SmartPtr();
158 virtual CRenderizable& setColorR_u8(
const uint8_t r);
159 virtual CRenderizable& setColorG_u8(
const uint8_t g);
160 virtual CRenderizable& setColorB_u8(
const uint8_t b);
161 virtual CRenderizable& setColorA_u8(
const uint8_t a);
209 template<
class T>
inline CSetOfObjectsPtr &operator<<(CSetOfObjectsPtr &o,const std::vector<T> &v) {