diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 00:45:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-07 14:59:51 +0300 |
commit | bb2aeb4504907cab1cf8c4afc4dd1d6495c940e4 (patch) | |
tree | 550d043273b767d55ef32409e58de17cb75e724e /source/blender/gpu/opengl/gl_vertex_buffer.cc | |
parent | 99e3541d3b1a1fc62fcd24e9f0d12a631e4caead (diff) |
GPUVertBuf: Rename GPUVertBuf to VertBuf and add some getters
to avoid more typecasts.
Diffstat (limited to 'source/blender/gpu/opengl/gl_vertex_buffer.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_vertex_buffer.cc | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_vertex_buffer.cc b/source/blender/gpu/opengl/gl_vertex_buffer.cc new file mode 100644 index 00000000000..ee9e0a0b0c9 --- /dev/null +++ b/source/blender/gpu/opengl/gl_vertex_buffer.cc @@ -0,0 +1,56 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * The Original Code is Copyright (C) 2016 by Mike Erwin. + * All rights reserved. + */ + +/** \file + * \ingroup gpu + */ + +#include "gl_backend.hh" + +#include "gl_vertex_buffer.hh" + +namespace blender::gpu { + +void GLVertBuf::bind(void) +{ +} + +void GLVertBuf::upload_data(void) +{ +} + +uchar *GLVertBuf::acquire_data(void) +{ + return nullptr; +} + +uchar *GLVertBuf::resize_data(void) +{ + return nullptr; +} + +void GLVertBuf::release_data(void) +{ +} + +void GLVertBuf::duplicate_data(VertBuf *) +{ +} + +} // namespace blender::gpu
\ No newline at end of file |