0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / OpenGl / OpenGl_IndexBuffer.hxx
CommitLineData
5e27df78 1// Created by: Kirill GAVRILOV
d5f74e42 2// Copyright (c) 2013-2014 OPEN CASCADE SAS
b311480e 3//
973c2be1 4// This file is part of Open CASCADE Technology software library.
b311480e 5//
d5f74e42 6// This library is free software; you can redistribute it and/or modify it under
7// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 8// by the Free Software Foundation, with special exception defined in the file
9// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10// distribution for complete text of the license and disclaimer of any warranty.
b311480e 11//
973c2be1 12// Alternatively, this file may be used under the terms of Open CASCADE
13// commercial license or contractual agreement.
b311480e 14
5bd54bef 15#ifndef OpenGl_IndexBuffer_HeaderFile
16#define OpenGl_IndexBuffer_HeaderFile
2166f0fa 17
1220d98e 18#include <OpenGl_Buffer.hxx>
2166f0fa 19
5e27df78 20//! Index buffer is just a VBO with special target (GL_ELEMENT_ARRAY_BUFFER).
1220d98e 21class OpenGl_IndexBuffer : public OpenGl_Buffer
5e27df78 22{
23public:
2166f0fa 24
1220d98e 25 //! Empty constructor.
5e27df78 26 Standard_EXPORT OpenGl_IndexBuffer();
1220d98e 27
28 //! Return buffer object target (GL_ELEMENT_ARRAY_BUFFER).
29 Standard_EXPORT virtual unsigned int GetTarget() const Standard_OVERRIDE;
2166f0fa 30
bc73b006 31 //! Dumps the content of me into the stream
32 Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
33
5e27df78 34public:
2166f0fa 35
1220d98e 36 DEFINE_STANDARD_RTTIEXT(OpenGl_IndexBuffer, OpenGl_Buffer)
2166f0fa 37
5e27df78 38};
39
1220d98e 40DEFINE_STANDARD_HANDLE(OpenGl_IndexBuffer, OpenGl_Buffer)
5e27df78 41
42#endif // _OpenGl_IndexBuffer_H__