Commit Graph

234 Commits

Author SHA1 Message Date
gingerBill
776b48c10d Fix GetEventState 2022-06-27 11:02:40 +01:00
gingerBill
199dae6cd5 Make SDL.*Event procedures return booleans instead of an integer where appropriate 2022-06-27 11:02:20 +01:00
Luxko
d89c4606bd Add missing field for TEXTURE_COPY_LOCATION
Add missing anonymous union field for [D3D12_TEXTURE_COPY_LOCATION ](https://docs.microsoft.com/en-us/windows/win32/api/d3d12/ns-d3d12-d3d12_texture_copy_location):
```C
union {
    D3D12_PLACED_SUBRESOURCE_FOOTPRINT PlacedFootprint;
    UINT                               SubresourceIndex;
  };
```
2022-06-19 19:06:31 +08:00
Hasen Judy
4be92c7eb8 HACK work around for creating a cocoa window
See #1825 for more details.

This does not fix the underlying issue; it's merely a work around for
this specific manifestation of the bug.
2022-06-10 17:10:00 +09:00
gingerBill
4fac7a8f27 Update wasm/README.md 2022-06-01 10:40:59 +01:00
gingerBill
25dae06b6a Remove loader.mjs 2022-06-01 10:32:24 +01:00
hasen
9fa41a97b9 Missing lib imports for raylib on macOS
The following frameworks are required for linking to work (due to dependency on glfw):

    Cocoa, OpenGL, IOKit
2022-05-30 22:27:13 +09:00
Jeroen van Rijn
233b32fd3e Correct return value. 2022-05-25 00:47:29 +02:00
gingerBill
f3432e6bb5 Rename to CreateProgramFromStrings 2022-05-21 21:31:24 +01:00
gingerBill
43b350c590 Add more procedures for window related positions 2022-05-21 21:31:05 +01:00
gingerBill
c2c66aad60 Add Context_Menu event kind; Fix event_prevent_default() 2022-05-21 17:29:19 +01:00
gingerBill
d7681d5b06 Add utilities for Rects 2022-05-21 17:24:03 +01:00
gingerBill
c902615192 Improve writeToConole logic for the console.log difference between stdout and stderr 2022-05-21 17:03:44 +01:00
gingerBill
2895830ce6 Add wasm/js/general.odin 2022-05-21 16:37:12 +01:00
gingerBill
1eef9552b4 Fix typo 2022-05-21 16:35:27 +01:00
gingerBill
577fa2d29b Update time procedures for js targets 2022-05-21 16:35:06 +01:00
gingerBill
72fcf16a39 Rename to writeToConsole 2022-05-21 16:15:20 +01:00
gingerBill
b9d523e0b2 Add color when writing to stderr 2022-05-21 16:11:10 +01:00
gingerBill
f3d225ca4f Improve addConsoleLine 2022-05-21 16:00:36 +01:00
gingerBill
d84d2f85e8 Add WebGL helper (CreateProgramHelper) 2022-05-21 15:34:12 +01:00
gingerBill
dfbe68bcfe Begin to add support for experimental wasm64 2022-05-21 13:30:43 +01:00
gingerBill
e43eccbb91 Merge branch 'master' of https://github.com/odin-lang/Odin 2022-05-21 13:02:03 +01:00
gingerBill
e48f41165c Begin work on Atomics for wasm32 (wait and notify intrinsics) 2022-05-21 12:58:48 +01:00
gingerBill
2612f241c9 Minor clean up 2022-05-21 12:14:12 +01:00
gingerBill
0f1153fae2 Add page_alloc and page_allocator 2022-05-21 12:11:22 +01:00
Jeroen van Rijn
b84561f2b8 Merge pull request #1800 from DaseinPhaos/master
add constants for DXGI_ERROR and DXGI_STATUS
2022-05-21 13:03:35 +02:00
Jeroen van Rijn
d10a2bc5d5 Format DXGI constants 2022-05-21 12:59:16 +02:00
gingerBill
94fda3d48d Rename to runWasm 2022-05-21 11:41:50 +01:00
gingerBill
5cf4f565d6 Merge branch 'master' of https://github.com/odin-lang/Odin 2022-05-21 11:39:47 +01:00
gingerBill
c20b5cbd10 Change wasm/js/runtime.mjs to a normal .js file; Add interfaces and functions to a global odin variable 2022-05-21 11:39:35 +01:00
Luxko
a5bf3b0bc5 add dxgi HRESULT constants 2022-05-21 15:53:20 +09:00
gingerBill
836c325021 Merge pull request #1755 from bkrypt/update_miniaudio
Update `vendor/miniaudio` to v0.11.9
2022-05-19 20:53:19 +01:00
gingerBill
3bb31093fa Add documentation for CreateCurrentContextById and SetCurrentContextById 2022-05-18 13:08:31 +01:00
gingerBill
214b43974d Add WebGL ContextAttributes 2022-05-18 13:06:29 +01:00
gingerBill
55556aea77 Add WebGL runtime into the js/runtime.mjs; Allow for multiple WebGL contexts 2022-05-18 12:31:25 +01:00
gingerBill
33895b6d92 Convert all uses of *_from_slice to *_from_bytes where appropriate 2022-05-16 01:43:43 +01:00
gingerBill
0d4e710b96 Add vendor:ggpo 2022-05-09 23:32:23 +01:00
gingerBill
205aa10b88 Improve events handling 2022-05-09 22:08:14 +01:00
gingerBill
6f1cc3946b Begin work on Event System for js_wasm32 target 2022-05-09 16:58:34 +01:00
gingerBill
0cf37bde8b Update foreign import for OpenEXRCore for non-windows platforms 2022-05-04 17:51:36 +01:00
gingerBill
1146604344 Add LICENSE.md 2022-05-03 14:52:09 +01:00
gingerBill
971d498e79 Change path 2022-05-03 14:21:24 +01:00
gingerBill
6e7a50c02f Add .lib for vendor:openexr 2022-05-03 14:11:26 +01:00
gingerBill
97717d65ef Add vendor:openexr
No foreign library yet
2022-05-02 16:09:09 +01:00
bkrypt
be9b935953 Fix indentation 2022-04-30 20:43:22 +02:00
bkrypt
9e69452327 Remove unnecessary value (count) from enum 2022-04-30 20:42:42 +02:00
bkrypt
4911df9f99 Remove unneeded semicolons 2022-04-29 21:39:10 +02:00
bkrypt
a223340c44 Update vendor/miniaudio to v0.11.9 2022-04-29 21:13:25 +02:00
awwdev
e9cfcf9ecc fix typo in TexImage3D 2022-04-29 11:26:57 +02:00
awwdev
789ab99c4d replaced a few [^]u8 with cstring 2022-04-29 11:21:23 +02:00