diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-05-24 13:32:27 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-05-24 13:32:27 -0400 |
commit | c5e5d7c939a2640763775b0688ed698c51ec28c1 (patch) | |
tree | eaa9f5493cf218471f96207d2fa86a9192f07606 /shared_cpp | |
parent | d5326e9f605e11fc33a7f37cc0ae674258de2424 (diff) |
Applying force to the object using the mouse cursor
Diffstat (limited to 'shared_cpp')
-rw-r--r-- | shared_cpp/WebglContext.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared_cpp/WebglContext.h b/shared_cpp/WebglContext.h index 017498f..8064b04 100644 --- a/shared_cpp/WebglContext.h +++ b/shared_cpp/WebglContext.h @@ -7,10 +7,10 @@ struct WebglContext { EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context; - int width = 640; - int height = 480; + int width = 800; + int height = 600; - void init(const char* query, int inWidth = 640, int inHeight = 480) { + void init(const char* query, int inWidth = 800, int inHeight = 600) { width = inWidth; height = inHeight; emscripten_set_canvas_element_size( query, width, height); |