MCPcopy Create free account
hub / github.com/comaps/comaps / RenderRange

Method RenderRange

libs/drape/vertex_array_buffer.cpp:163–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void VertexArrayBuffer::RenderRange(ref_ptr<GraphicsContext> context, bool drawAsLine, IndicesRange const & range)
164{
165 if (HasBuffers() && GetIndexCount() > 0)
166 {
167 // If OES_vertex_array_object is supported than all bindings have already saved in VAO
168 // and we need only bind VAO.
169 if (!Bind())
170 BindStaticBuffers();
171
172 BindDynamicBuffers();
173 GetIndexBuffer()->Bind();
174
175 CHECK(m_impl != nullptr, ());
176 m_impl->RenderRange(context, drawAsLine, range);
177
178 Unbind();
179 }
180}
181
182void VertexArrayBuffer::Build(ref_ptr<GraphicsContext> context, ref_ptr<GpuProgram> program)
183{

Callers 1

RenderMethod · 0.45

Calls 1

BindMethod · 0.45

Tested by

no test coverage detected