From b2dbc2751a7554a8417f46ed2d79f621ae3f1909 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 27 Apr 2015 14:54:21 +0000 Subject: [PATCH] base: clean up and refactor containers. The containers no longer force the user to use the ptrdiff_t type for size information. For convenience, size() now always returns an int, and the size_s() method offers a way to handle arrays with more than 2 billion elements. Internally, we still use ptrdiff_t, though. Since so much code had to be changed, I took the opportunity to get rid of capitalised accessors for classes that are lowercase. --- neercs/video/render.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neercs/video/render.cpp b/neercs/video/render.cpp index b8301b2..5cdf65d 100644 --- a/neercs/video/render.cpp +++ b/neercs/video/render.cpp @@ -876,8 +876,8 @@ int Render::InitDrawResources(void) vertices << vec2(1, -1); vertices << vec2(1, 1); vertices << vec2(-1, 1); - m_vbo = new VertexBuffer(vertices.Bytes()); - memcpy(m_vbo->Lock(0, 0), vertices.Data(), vertices.Bytes()); + m_vbo = new VertexBuffer(vertices.bytes()); + memcpy(m_vbo->Lock(0, 0), vertices.data(), vertices.bytes()); m_vbo->Unlock(); // shader simple