mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-21 00:59:13 +00:00
Start wiring up wgpu+winit
This commit is contained in:
@@ -70,15 +70,15 @@ CCompoundTargetReticle::CCompoundTargetReticle(const CStateManager& mgr)
|
||||
}
|
||||
|
||||
CCompoundTargetReticle::SScanReticuleRenderer::SScanReticuleRenderer() {
|
||||
CGraphics::CommitResources([this](boo::IGraphicsDataFactory::Context& ctx) {
|
||||
// CGraphics::CommitResources([this](boo::IGraphicsDataFactory::Context& ctx) {
|
||||
for (size_t i = 0; i < m_lineRenderers.size(); ++i) {
|
||||
m_lineRenderers[i].emplace(ctx, CLineRenderer::EPrimitiveMode::Lines, 8, nullptr, true, true);
|
||||
m_lineRenderers[i].emplace(CLineRenderer::EPrimitiveMode::Lines, 8, nullptr, true, true);
|
||||
for (auto& stripRenderer : m_stripRenderers[i]) {
|
||||
stripRenderer.emplace(ctx, CLineRenderer::EPrimitiveMode::LineStrip, 4, nullptr, true, true);
|
||||
stripRenderer.emplace(CLineRenderer::EPrimitiveMode::LineStrip, 4, nullptr, true, true);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
} BooTrace);
|
||||
// return true;
|
||||
// } BooTrace);
|
||||
}
|
||||
|
||||
CCompoundTargetReticle::EReticleState CCompoundTargetReticle::GetDesiredReticleState(const CStateManager& mgr) const {
|
||||
|
||||
Reference in New Issue
Block a user