Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/Defaults.cpp @ 386:e33659decec5
renamed UpdateContent() as DoAnimation()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 09 Nov 2018 17:06:28 +0100 |
parents | 6cc3ce74dc05 |
children | 3e6e10a5a6c8 |
comparison
equal
deleted
inserted
replaced
385:6cc3ce74dc05 | 386:e33659decec5 |
---|---|
100 | 100 |
101 // viewport->SetSize(width_, height_); | 101 // viewport->SetSize(width_, height_); |
102 printf("StartWasmApplication - completed\n"); | 102 printf("StartWasmApplication - completed\n"); |
103 } | 103 } |
104 | 104 |
105 void EMSCRIPTEN_KEEPALIVE NotifyUpdateContent() | 105 void EMSCRIPTEN_KEEPALIVE WasmDoAnimation() |
106 { | 106 { |
107 for (auto viewport : viewports_) { | 107 for (auto viewport : viewports_) { |
108 // TODO Only launch the JavaScript timer if "HasUpdateContent()" | 108 // TODO Only launch the JavaScript timer if "HasAnimation()" |
109 if (viewport->HasUpdateContent()) | 109 if (viewport->HasAnimation()) |
110 { | 110 { |
111 viewport->UpdateContent(); | 111 viewport->DoAnimation(); |
112 } | 112 } |
113 | 113 |
114 } | 114 } |
115 | 115 |
116 } | 116 } |