Pierre Krieger
c61c33a833
Add set_cursor_position function
2015-03-10 10:29:07 +01:00
Pierre Krieger
689ace8b25
Add is_current function
2015-03-04 07:43:55 +01:00
Andrey Lesnikov
2da557c0cc
android: Updated to latest android-rs-glue
2015-02-22 22:58:08 +03:00
mitchmindtree
1055eed078
Removed as_slice_with_nul as CString now derefs to a CStr
2015-02-22 01:17:47 +11:00
mitchmindtree
0389c834e4
RingBuf -> VecDeque for other platforms, as_slice_with_nul -> as_bytes_with_nul
2015-02-22 00:40:23 +11:00
Ryan Stewart
25ce029cf6
expose the platform-specific window handle (currently Win only)
2015-02-20 12:33:25 -08:00
Pierre Krieger
f4f84c6566
Improve the OpenGL context request system
2015-02-18 17:15:01 +01:00
Pierre Krieger
ba7f2a923f
Don't call MakeCurrent(null, null) when destroying
2015-02-18 09:00:00 +01:00
Glenn Watson
8b3750ec3d
Android: Use platform specific iterators.
2015-02-10 08:32:29 +01:00
Andrey Lesnikov
81dbaea29e
android: Implemented color_bits and depth_bits
2015-02-08 02:32:29 +03:00
Eduard Bopp
b2367fe2e6
Rename enum variants of MouseButton
...
With enums that are namespaced by default, it seems reasonable to be less
redundant in the variant naming here.
2015-02-05 16:52:53 +01:00
Andrew Kelley
6a27fa9d26
fix for rust nightly
2015-01-28 12:43:44 -07:00
Ms2ger
8005b012ce
Fix a use-after-free in Android get_proc_address.
2015-01-23 19:24:42 +01:00
Glenn Watson
213f8b8534
Fix android API
2015-01-19 11:59:34 +10:00
Glenn Watson
fd5e77f23e
Add missing get_api stubs.
...
Add hidpi_factor() support for retina displays.
Fix Resize and MouseMoved events to handle retina displays.
Fix inverted y position for MouseMoved events on mac.
Fix initial painting on retina display.
2015-01-19 11:54:11 +10:00
Andrey Lesnikov
5a589b1783
android: Fixed depth buffer
2015-01-15 10:05:19 +03:00
Andrey Lesnikov
5a4fee967a
x11, android, win32: [ui]size, [u]int -> [ui]32
2015-01-13 16:23:30 +03:00
Andrey Lesnikov
d11f63a749
Fixed android: Added 'MouseCursor' import
2015-01-13 13:58:05 +03:00
Bryan Bell
b532b8c65f
Add mouse cursor support
...
Add a new api, window.set_cursor, for setting the cursor. The enum MouseCursor lists the possible cursors.
Only X11 is implemented. On OSX, Android, & Win32 the window.set_cursor function
either does nothing or calls the "unimplemented!" macro.
2015-01-12 16:22:37 -08:00
Andrey Lesnikov
dbe38ff49a
android: Updated for Rust ea6f65c5f 2015-01-06
2015-01-08 20:57:04 +03:00
Andrey Lesnikov
2b7e74d55a
android: Updated for rust fc2ba1393 2015-01-03
2015-01-04 21:49:30 +03:00
Pierre Krieger
4c5e430dd3
Update for Rustc
2015-01-03 23:15:39 +01:00
Ty Overby
a698146943
Change the way that events are represented.
...
The bulk of this commit is changing instances of Vec to RingBuf which is
optimized for the push_back() / pop_front() strategy that is used
internaly in the event system.
The glutin custom iterators are now just wrappers around the RingBuf
iterator type. This will bring the running time of iterator traversal from
O(n^2) to O(n) because shifting-on-delete won't be performed.
2015-01-01 23:44:02 -08:00
Pierre Krieger
b9710f05a9
Unify WindowBuilder and HeadlessRendererBuilder for easier implementations
2014-12-31 07:34:26 +01:00
Pierre Krieger
b9a6366f96
Update for changes in Send/Sync traits
2014-12-30 08:20:50 +01:00
Andrey Lesnikov
9a5f02984d
android: Implemented basic poll_events()
2014-12-26 01:29:54 +03:00
Pierre Krieger
7f6f4f8d04
Update for gl_generator's changes
2014-12-24 08:12:10 +01:00
Glenn Watson
fa5cb66cff
Add resize example, fix warnings, make callback an option so it can be removed.
2014-12-19 05:44:47 +10:00
Glenn Watson
0ad9c3d453
Add callback function to allow resize messages to be sent on mac.
2014-12-19 05:44:20 +10:00
Glenn Watson
95f82927b3
Change todo to unimplemented
2014-12-19 05:00:43 +10:00
Glenn Watson
9dc5689eef
Introduce a WindowProxy for accessing a subset of functionality
...
from other threads. This currently provides a way for other threads
to wakeup a blocked event loop on X11. Other platforms have stub
functions that need to be implemented. This is similar to
the functionality of glfwPostEmptyEvent.
2014-12-17 14:50:05 +10:00
Pierre Krieger
c893e4faec
Add get_api() function
2014-12-07 13:52:08 +01:00
Andrey Lesnikov
b28273de04
android: updated for rust 5484d6f6d 2014-12-02 00:22:00 +0000
2014-12-05 01:30:17 +04:00
Andrey Lesnikov
adc6c00aa8
android: Updated for rust 395901393 2014-11-24 00:46:30 +0000
2014-11-26 17:11:08 +04:00
Glenn Watson
02f3287d70
Add support for GLESv2 on android. Remove a few warnings.
2014-11-26 15:21:58 +10:00
Glenn Watson
d99ba30216
Allows android to compile when headless feature is enabled.
2014-11-26 08:17:09 +10:00
Pierre Krieger
4c0413bc7c
Implement lists sharing
2014-11-24 20:13:52 +01:00
Andrey Lesnikov
f4be17b92e
android: Updated for rust e583c4d24 2014-11-21 09:01:50 +0000
2014-11-21 18:33:29 +04:00
Pierre Krieger
ff3a29aaf5
Update for rustc
2014-11-19 07:06:27 +01:00
Andrey Lesnikov
c0305c4781
Android: Implemented basic inputs
2014-11-17 13:32:28 +04:00
Tomaka17
584bb3e7df
Use a proper error type for window creation
2014-11-05 16:42:18 +01:00
Tomaka17
b6f7491157
Add visibility-related functions to window
2014-11-01 09:03:21 +01:00
tomaka
fa99f0e701
Revert "Add platform_display
impls for win32 and android"
2014-10-25 10:40:27 +02:00
Tomaka17
0eda82c28f
Add platform_display
impls for win32 and android
...
Fix the cocoa function
2014-10-24 12:54:58 +02:00
Glenn Watson
5693fbcce3
Add accessor for underlying display handle on Linux. Although unimplemented on other platforms, this applies to at least android as well.
2014-10-24 15:20:25 +10:00
Tomaka17
2ff393fe62
Update for rustc and gl-rs
2014-10-22 11:23:21 +02:00
Tomaka17
0d0c14e6ec
Update for gl-rs
2014-10-21 08:11:08 +02:00
Tomaka17
c316c86e7c
Update for rustc f9fc49c06 2014-10-10 00:07:08 +0000
2014-10-10 17:52:47 +02:00
Tomaka17
ce052484f7
Remove some unused imports
2014-09-13 09:04:47 +02:00
Tomaka17
f3e0c57158
Use gl_generator to generate EGL bindings for Android
2014-09-13 09:01:21 +02:00