瀏覽代碼

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.
master
Sam Hocevar 9 年之前
父節點
當前提交
b2dbc2751a
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      neercs/video/render.cpp

+ 2
- 2
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


Loading…
取消
儲存