Mercurial > hg > orthanc-stone
annotate Platforms/WebAssembly/WasmViewport.h @ 233:68856534f005 am
added layout to VSOL, SDL & wasm working
author | am@osimis.io |
---|---|
date | Fri, 15 Jun 2018 14:29:25 +0200 |
parents | 5027cb2feb51 |
children |
rev | line source |
---|---|
231
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
1 #pragma once |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
2 |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
3 #include <Framework/Viewport/WidgetViewport.h> |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
4 |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
5 #include <emscripten/emscripten.h> |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
6 |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
7 #ifdef __cplusplus |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
8 extern "C" { |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
9 #endif |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
10 |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
11 // JS methods accessible from C++ |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
12 extern OrthancStone::WidgetViewport* CreateWasmViewportFromCpp(const char* htmlCanvasId); |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
13 |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
14 #ifdef __cplusplus |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
15 } |
5027cb2feb51
viewport is now part of the Application itself and not global anymore
am@osimis.io
parents:
diff
changeset
|
16 #endif |