Panda3D
panda
src
gobj
vertexBufferContext.cxx
1
// Filename: vertexBufferContext.cxx
2
// Created by: drose (17Mar05)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#include "vertexBufferContext.h"
16
#include "config_gobj.h"
17
18
TypeHandle
VertexBufferContext::_type_handle;
19
20
////////////////////////////////////////////////////////////////////
21
// Function: VertexBufferContext::output
22
// Access: Public, Virtual
23
// Description:
24
////////////////////////////////////////////////////////////////////
25
void
VertexBufferContext::
26
output(ostream &out)
const
{
27
out << *
get_data
() <<
", "
<<
get_data_size_bytes
();
28
}
29
30
////////////////////////////////////////////////////////////////////
31
// Function: VertexBufferContext::write
32
// Access: Published, Virtual
33
// Description:
34
////////////////////////////////////////////////////////////////////
35
void
VertexBufferContext::
36
write(ostream &out,
int
indent_level)
const
{
37
SavedContext::write(out, indent_level);
38
}
BufferContext::get_data_size_bytes
size_t get_data_size_bytes() const
Returns the number of bytes previously reported for the data object.
Definition:
bufferContext.I:26
VertexBufferContext::get_data
GeomVertexArrayData * get_data() const
Returns the pointer to the client-side array data object.
Definition:
vertexBufferContext.I:36
TypeHandle
TypeHandle is the identifier used to differentiate C++ class types.
Definition:
typeHandle.h:85
Generated on Wed May 17 2017 23:43:01 for Panda3D by
1.8.13