Changeset 13041 for OpenSceneGraph/trunk/include/osg/BufferObject
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/BufferObject (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/BufferObject
r12912 r13041 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of … … 28 28 (defined(GL_VERSION_ES_CM_1_1) && GL_VERSION_ES_CM_1_1 > 0) 29 29 30 #define OPENGLES_1_1_FOUND 1 30 #define OPENGLES_1_1_FOUND 1 31 31 32 32 #endif … … 51 51 #ifndef GL_ARB_vertex_buffer_object 52 52 #define GL_ARB_vertex_buffer_object 53 53 54 54 typedef GLintptr GLintptrARB; 55 55 typedef GLsizeiptr GLsizeiptrARB; 56 56 57 57 #define GL_ARRAY_BUFFER_ARB 0x8892 58 58 #define GL_ELEMENT_ARRAY_BUFFER_ARB 0x8893 … … 115 115 #endif 116 116 117 namespace osg 117 namespace osg 118 118 { 119 119 … … 227 227 228 228 inline void unbindBuffer() 229 { 229 { 230 230 _extensions->glBindBuffer(_profile._target,0); 231 231 } … … 322 322 323 323 /** Function to call to get the extension of a specified context. 324 * If the Extension object for that context has not yet been created 324 * If the Extension object for that context has not yet been created 325 325 * and the 'createIfNotInitalized' flag been set to false then returns NULL. 326 * If 'createIfNotInitalized' is true then the Extensions object is 326 * If 'createIfNotInitalized' is true then the Extensions object is 327 327 * automatically created. However, in this case the extension object is 328 328 * only created with the graphics context associated with ContextID..*/ … … 724 724 725 725 META_Object(osg,ElementBufferObject); 726 726 727 727 unsigned int addDrawElements(osg::DrawElements* PrimitiveSet); 728 728 void removeDrawElements(osg::DrawElements* PrimitiveSet); … … 733 733 734 734 protected: 735 735 736 736 virtual ~ElementBufferObject(); 737 737 }; … … 757 757 758 758 protected: 759 759 760 760 virtual ~PixelBufferObject(); 761 761 }; … … 778 778 inline void setDataSize(unsigned int size) { _profile._size = size; dirty(); } 779 779 780 //! Get data size of the used buffer 780 //! Get data size of the used buffer 781 781 inline unsigned int getDataSize() const { return _profile._size; } 782 782 … … 790 790 virtual void bindBufferInWriteMode(State& state); 791 791 792 //! Unbind the buffer 792 //! Unbind the buffer 793 793 virtual void unbindBuffer(unsigned int contextID) const; 794 794 … … 815 815 816 816 typedef osg::buffered_value<unsigned int> ModeList; 817 817 818 818 mutable ModeList _mode; 819 819 820 820 }; 821 821
