Realise blink function and make speicail character with a speicial signal. and realise display the correct content when string content is bigger than window size.
This commit is contained in:
parent
f6789ced97
commit
43f042ebdf
@ -1,6 +1,7 @@
|
||||
//
|
||||
// Created by my on 2019/11/16.
|
||||
//
|
||||
#include <internal.hpp>
|
||||
#include "TextRenderer.h"
|
||||
|
||||
TextRenderer::TextRenderer(int windowWidth, int windowHeight, vkvm::Color _backGroundColor, vkvm::Color fontColor, vkvm::Color speicialFontColor,
|
||||
@ -211,6 +212,8 @@ void TextRenderer::blink1() {
|
||||
}
|
||||
signal = !signal;
|
||||
|
||||
vkvm::callEvent(vkvm::Redraw);
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(800));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user