|
||||
File indexing completed on 2025-01-18 10:04:34
0001 // Created by: Kirill GAVRILOV 0002 // Copyright (c) 2013-2014 OPEN CASCADE SAS 0003 // 0004 // This file is part of Open CASCADE Technology software library. 0005 // 0006 // This library is free software; you can redistribute it and/or modify it under 0007 // the terms of the GNU Lesser General Public License version 2.1 as published 0008 // by the Free Software Foundation, with special exception defined in the file 0009 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0010 // distribution for complete text of the license and disclaimer of any warranty. 0011 // 0012 // Alternatively, this file may be used under the terms of Open CASCADE 0013 // commercial license or contractual agreement. 0014 0015 #ifndef OpenGl_IndexBuffer_HeaderFile 0016 #define OpenGl_IndexBuffer_HeaderFile 0017 0018 #include <OpenGl_Buffer.hxx> 0019 0020 //! Index buffer is just a VBO with special target (GL_ELEMENT_ARRAY_BUFFER). 0021 class OpenGl_IndexBuffer : public OpenGl_Buffer 0022 { 0023 public: 0024 0025 //! Empty constructor. 0026 Standard_EXPORT OpenGl_IndexBuffer(); 0027 0028 //! Return buffer object target (GL_ELEMENT_ARRAY_BUFFER). 0029 Standard_EXPORT virtual unsigned int GetTarget() const Standard_OVERRIDE; 0030 0031 //! Dumps the content of me into the stream 0032 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE; 0033 0034 public: 0035 0036 DEFINE_STANDARD_RTTIEXT(OpenGl_IndexBuffer, OpenGl_Buffer) 0037 0038 }; 0039 0040 DEFINE_STANDARD_HANDLE(OpenGl_IndexBuffer, OpenGl_Buffer) 0041 0042 #endif // _OpenGl_IndexBuffer_H__
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |