X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fhud.cpp;h=d60401199e10f453096534c9f9685fef8c47fab5;hb=e70967c971f77a4ac0f5c074e6eb94bdd0e2b7ab;hp=ed5767dfeac9216f995c28351755ca94397dce5a;hpb=4422bc40677f5a8e476fc89ada56b33c50f25bd8;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; }