Commit Graph

274 Commits

Author SHA1 Message Date
gingerBill
ad98efe1fd Revert "Remove the workaround for NSWindow initWithContentFrame" 2022-09-09 10:47:02 +01:00
gingerBill
3b5998af12 Fix typo for pow in runtime.js 2022-09-08 14:48:37 +01:00
Hasen Judy
e6b91d3d7c Remove the workaround for NSWindow initWithContentFrame
Reverts #1841

Resolves #1825
2022-09-06 16:56:17 +09:00
Joakim Hentula
0efc79bcb9 Add GL_DEBUG config that falls back to ODIN_DEBUG to preserve previous behaviour, but allows debug builds without OpenGL debug features 2022-09-02 13:30:45 +01:00
Jeroen van Rijn
c39b1a31db vendor:cmark -> vendor:commonmark 2022-09-01 23:44:38 +02:00
Jeroen van Rijn
635c7fa153 Merge branch 'master' into cmark 2022-09-01 23:42:15 +02:00
SyndaKai
eb4891bcc8 Fix for SDL GetPreferredLocales 2022-08-31 04:28:46 -04:00
Jeroen van Rijn
803fd8f037 Wrap CMark allocator as Odin allocator
```odin
	// Smaller allocation to larger allocation resize
	{
		// Allocated on CMark's allocator
		foo := make([dynamic]int, 13)

		for i in 0..<13 {
			foo[i] = i
		}
		fmt.println("Before resize:", foo)

		resize(&foo, 42)
		fmt.println("After resize:", foo)

		delete(foo)
	}
```
2022-08-30 16:35:18 +02:00
Jeroen van Rijn
67bdb5b1a3 [cmark] Add static library for Linux
Built on Ubuntu 20.04.3 LTS.

Remove Odin allocator wrapper.
2022-08-30 16:02:40 +02:00
Jeroen van Rijn
acc635b535 [cmark] Move wrapped allocator next to get_default_allocator 2022-08-30 14:56:10 +02:00
Jeroen van Rijn
4e8ce87792 [cmark] Allow wrapping context.allocator 2022-08-30 14:53:48 +02:00
Jeroen van Rijn
2c8daa25dc [cmark] Add wrappers. 2022-08-30 13:55:53 +02:00
Jeroen van Rijn
054ee0a8b5 [cmark] Change to static library 2022-08-30 13:32:07 +02:00
Jeroen van Rijn
d0cadaf1a6 Add CMark bindings 2022-08-30 00:54:12 +02:00
gingerBill
a460d140fe Merge pull request #1889 from thePHTest/master
fix glfw/native.odin foreign lib import
2022-08-15 10:24:19 +01:00
Jeroen van Rijn
081e36c909 Add additional mouse buttons to Raylib bindings. 2022-08-13 15:34:52 +02:00
Lucas Perlind
43b78e51a4 Add ID3D11Debug interface to d3d11 package 2022-08-10 22:28:24 +10:00
Phil
0cb1a578d0 fix glfw/native.odin foreign lib import 2022-08-01 08:26:26 -07:00
Hyp-X
0815b4d59f Update dxgi.odin
Fixed CreateDXGIFactory* last parameter to be ^rawptr instead of rawptr
2022-08-01 14:04:12 +02:00
William Roe
a9304f2fef Update Windows GLFW libraries to 3.3.8
This matches the latest libraries committed for macOS/Darwin
2022-07-28 15:38:14 +01:00
William Roe
a0697ab057 Fix build on Apple Silicon when linking to GLFW
This also updates the library to GLFW 3.3.8
This includes the lib-universal static library, rather than just the
Intel one (lib-x86_64), so software building with GLFW on Apple Silicon
will work again.
2022-07-28 15:29:30 +01:00
Jeroen van Rijn
674ebe395f Merge branch 'master' into master 2022-07-28 16:01:18 +02:00
pvance
9746e25784 Update stb_image_resize.odin 2022-07-28 04:27:42 -04:00
pvance
d26cfd2141 Update bindings.odin 2022-07-28 04:26:22 -04:00
pvance
21f2c06f4b Update stb_image_resize.odin 2022-07-28 04:25:18 -04:00
pvance
727a25f41f Replace ODIN_OS strings with enum values 2022-07-28 04:23:24 -04:00
pvance
3f27cb2309 replace ODIN_OS string with enums 2022-07-28 04:22:00 -04:00
pvance
f213622982 replace ODIN_OS string with enums 2022-07-28 04:20:37 -04:00
pvance
4aad835a66 replaced ODIN_OS string values with enums 2022-07-28 04:19:28 -04:00
Eduardo Nunes
59b4c889d3 Update vendor:raylib to support macos-arm64 (apple silicon) 2022-07-20 18:23:09 -03:00
gingerBill
7420fbd95b Add custom event handling to wasm 2022-07-19 16:16:51 +01:00
gingerBill
e91f8feedf Keep -vet happy 2022-07-18 15:12:54 +01:00
gingerBill
c90b7c38f1 Rename strings.Builder procedures to be consistent with the rest of the core library 2022-07-11 11:50:08 +01:00
gingerBill
9e376fbda7 Update README.md 2022-07-10 00:52:59 +01:00
Phil
0a8e6169d7 remove unneeded semicolons 2022-06-28 11:36:50 -07:00
Phil
b89bb87759 Add OpenGL bindless textures ARB api to vendor 2022-06-27 14:50:24 -07:00
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