X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fhud.cpp;h=d60401199e10f453096534c9f9685fef8c47fab5;hb=82426ae2997d2b21703d2d5afb631a84736e975f;hp=ed5767dfeac9216f995c28351755ca94397dce5a;hpb=7caa2326d25d4fc5ba98318dfccb508bb3e16820;p=blank.git diff --git a/src/hud.cpp b/src/hud.cpp index ed5767d..d604011 100644 --- a/src/hud.cpp +++ b/src/hud.cpp @@ -27,6 +27,9 @@ HUD::HUD() { -10.0f, 0.0f, 0.0f }, { 10.0f, 0.0f, 0.0f }, { 0.0f, -10.0f, 0.0f }, { 0.0f, 10.0f, 0.0f }, }); + crosshair.indices = std::vector({ + 0, 1, 2, 3 + }); crosshair.colors.resize(4, { 10.0f, 10.0f, 10.0f }); crosshair.Invalidate(); } @@ -44,7 +47,7 @@ void HUD::Viewport(float x, float y, float width, float height) { void HUD::Display(const BlockType &type) { block.Clear(); - type.FillModel({ 0.0f, 0.0f, 0.0f }, block); + type.FillModel(block); block_visible = type.visible; }