19af36ef81
Upgrade MacOS for RWH_06
2023-12-23 17:24:08 -06:00
79054ec376
Remove unneeded imports
2023-10-25 20:06:31 -04:00
Aaron Helton
99f15a65c4
Merge pull request #1 from Aargonian/rwh_update/x11
...
Rwh update/x11
2023-10-25 16:56:47 -04:00
d996125571
Merge branch 'master' into rwh_update/x11
2023-10-25 16:52:45 -04:00
fc3fa9126c
Update winit example
2023-10-25 16:49:18 -04:00
31356b342a
Update RWH code for x11
2023-10-25 16:47:57 -04:00
dfa8207b26
Bump raw_window_handle to 0.6 and winit to 0.29.2
2023-10-25 16:45:13 -04:00
glowcoil
b68a05b4dc
mark GlContext::create, make_current, and make_not_current unsafe
2022-01-24 09:41:50 -06:00
glowcoil
bc2f84b4e7
unify error cleanup path on windows
2022-01-24 08:31:49 -06:00
glowcoil
598c4776a9
generate a unique WNDCLASS name and unregister it when done
2022-01-24 07:54:43 -06:00
glowcoil
01f6251e76
use __ImageBase as HINSTANCE of WNDCLASS
...
This prevents conflicts between WNDCLASSes of the same name created from
different dlls. Without this, if one dll registers a WNDCLASS of a
particular name, then is unloaded, a second dll attempting to create a
window with a WNDCLASS of that name results in a segfault.
2022-01-23 16:16:20 -06:00
Joakim Frostegård
8f0baad7a0
macOS: ask for best resolution surface for better Retina support ( #13 )
...
* macOS: ask for best resolution surface for better Retina support
* macOS: ask for best resolution surface after nil check
2022-01-13 17:29:52 -06:00
Joakim Frostegård
588d826881
Derive common traits for GlConfig and Profile ( #12 )
2021-12-08 13:10:14 -06:00
micah
a5a1b59756
assign CString to a local when using .as_ptr(), for clarity
2020-12-26 22:48:12 -05:00
Micah Johnston
b242b9ca4f
release 0.1.2
2020-12-23 17:19:53 -06:00
Micah Johnston
64079341ed
add ci workflow
2020-12-23 17:16:17 -06:00
Micah Johnston
bfe6ac0a76
refer to wndclass by name instead of atom, so creation doesn't fail if class is already registered
2020-12-23 17:09:19 -06:00
Micah Johnston
90ee9833e3
release 0.1.1
2020-12-23 01:02:10 -06:00
Micah Johnston
b35c3dcc6b
fix macos backend
2020-12-23 00:53:25 -06:00
Micah Johnston
62e144bdf4
add crates and docs shields to README
2020-12-20 14:02:19 -06:00
Micah Johnston
70aa39a1d9
link to raw-window-handle crate in README
2020-12-20 13:57:05 -06:00
Micah Johnston
01f699cf92
cargo fmt
2020-12-20 13:52:18 -06:00
Micah Johnston
5450c94f45
remove baseview example pending crate release
2020-12-20 13:45:24 -06:00
Micah Johnston
221e2dcc42
README, license, crate metadata
2020-12-20 13:27:32 -06:00
Micah Johnston
b04b2eadd0
free opengl32.dll on drop context
2020-12-20 13:14:10 -06:00
Micah Johnston
12cbd057ea
config and error handling on mac
2020-12-20 01:16:18 -06:00
micah
c0f1416cfb
catch x11 errors so we don't crash
2020-12-20 01:16:18 -06:00
micah
3403edcc9d
support config options on linux
2020-12-20 01:16:18 -06:00
micah
1388087097
get x11 building
2020-12-20 01:16:18 -06:00
Micah Johnston
26eef1a1dd
check for function pointer load failure
2020-12-20 01:16:18 -06:00
Micah Johnston
31c82f2446
support vsync on windows
2020-12-20 01:16:18 -06:00
Micah Johnston
aa351307bd
support srgb on windows
2020-12-20 01:16:18 -06:00
Micah Johnston
880d9111a2
support multisampling on windows
2020-12-20 01:16:18 -06:00
Micah Johnston
de115a7fb1
support configuring pixel format on windows
2020-12-20 01:16:18 -06:00
Micah Johnston
557e8fed26
support configuring version and profile on windows
2020-12-20 01:16:18 -06:00
Micah Johnston
5e5cc206ee
use WGL_ARB_pixel_format
2020-12-20 01:16:18 -06:00
Micah Johnston
06902704f2
create temporary window (necessary for WGL_ARB_pixel_format)
2020-12-20 01:16:18 -06:00
Micah Johnston
ab1af9529f
context creation error enum
2020-12-20 01:16:14 -06:00
Micah Johnston
ce019137e7
add struct for context configuration
2020-12-20 01:15:53 -06:00
Micah Johnston
a6d26e5a8a
fix broken url for khronos standard
2020-12-18 22:16:16 -06:00
Micah Johnston
0f999b707e
macos support
2020-12-13 23:21:29 -06:00
Micah Johnston
d846c70c6e
use wrapper struct to enforce common api between platforms
2020-12-13 21:36:59 -06:00
Micah Johnston
f9af040f91
use wglCreateContextAttribsARB on windows
2020-12-13 20:29:06 -06:00
Micah Johnston
d143c42200
switch to safer api using HasRawWindowHandle
2020-12-13 12:38:21 -06:00
Micah Johnston
d2f3109b2b
update baseview example
2020-12-13 12:38:14 -06:00
micah
a59c447613
make_not_current on windows
2020-12-06 14:37:56 -05:00
micah
569aad84d9
make_not_current on x11
2020-12-06 14:33:56 -05:00
micah
d03c7720a2
baseview example
2020-12-06 14:31:07 -05:00
micah
acb927255b
basic x11 support
2020-12-06 14:30:47 -05:00
Micah Johnston
43dd6b0387
first pass at gl context creation on windows
2020-09-04 22:51:34 -05:00