fixed eye blinking in vector graphics examples

pull/3471/head
kallaballa 2 years ago
parent b98f1598c7
commit 8683ce4056
  1. 4
      modules/v4d/samples/vector_graphics_and_fb.cpp

@ -6,9 +6,7 @@ using namespace cv::v4d;
int main() { int main() {
Ptr<V4D> window = V4D::make(Size(1280, 720), cv::Size(), "Vector Graphics and Framebuffer"); Ptr<V4D> window = V4D::make(Size(1280, 720), cv::Size(), "Vector Graphics and Framebuffer");
#ifdef __EMSCRIPTEN__
float start = emscripten_get_now() / 1000.0f;
#endif
//Render the framebuffer in the native window in an endless loop //Render the framebuffer in the native window in an endless loop
window->run([=]() { window->run([=]() {
//Creates a NanoVG context and draws eyes //Creates a NanoVG context and draws eyes

Loading…
Cancel
Save