X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOpenGl%2FOpenGl_VertexBuffer.cxx;h=172781775371df98a6e490752f6ec7169a5fabf7;hb=bc73b00672a218a1301520a3562ece96f72a679c;hpb=00ea7f2676893c9dd9b31cf1f0a8bcad61416a6a diff --git a/src/OpenGl/OpenGl_VertexBuffer.cxx b/src/OpenGl/OpenGl_VertexBuffer.cxx index 560ccebd66..1727817753 100644 --- a/src/OpenGl/OpenGl_VertexBuffer.cxx +++ b/src/OpenGl/OpenGl_VertexBuffer.cxx @@ -250,3 +250,21 @@ void OpenGl_VertexBuffer::unbindFixedColor (const Handle(OpenGl_Context)& theCtx theCtx->ShaderManager()->UpdateMaterialState(); } #endif + +// ======================================================================= +// function : DumpJson +// purpose : +// ======================================================================= +void OpenGl_VertexBuffer::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const +{ + OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream) + OCCT_DUMP_BASE_CLASS (theOStream, theDepth, OpenGl_Resource) + + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, GetTarget()) + OCCT_DUMP_FIELD_VALUE_POINTER (theOStream, myOffset) + + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myBufferId) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myComponentsNb) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myElemsNb) + OCCT_DUMP_FIELD_VALUE_NUMERICAL (theOStream, myDataType) +}