MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / FlushStream

Function FlushStream

ogsr_engine/Layers/xrRender/WallmarksEngine.cpp:378–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378ICF void FlushStream(CBackend& cmd_list, ref_geom hGeom, ref_shader shader, const u32& w_offset, FVF::LIT*& w_verts, FVF::LIT*& w_start, const BOOL bSuppressCull)
379{
380 const u32 w_count = static_cast<u32>(w_verts - w_start);
381 RImplementation.Vertex.Unlock(w_count, hGeom->vb_stride);
382 if (w_count)
383 {
384 cmd_list.set_Shader(shader);
385 cmd_list.set_Geometry(hGeom);
386 if (bSuppressCull)
387 cmd_list.set_CullMode(CULL_NONE);
388 cmd_list.Render(D3DPT_TRIANGLELIST, w_offset, w_count / 3);
389 if (bSuppressCull)
390 cmd_list.set_CullMode(CULL_CCW);
391 Device.Statistic->RenderDUMP_WMT_Count += w_count / 3;
392 }
393}
394
395void CWallmarksEngine::Render()
396{

Callers 1

RenderMethod · 0.85

Calls 5

UnlockMethod · 0.80
set_ShaderMethod · 0.80
set_GeometryMethod · 0.80
set_CullModeMethod · 0.80
RenderMethod · 0.45

Tested by

no test coverage detected