the_fiddler
bf8e2c695a
Added simpler constructor overload for external GraphicsContexts.
2009-11-04 17:18:32 +00:00
the_fiddler
e3781e0b91
Don't forget to load all bindings when constructing an external context - this constructor was added for precisely this reason, after all.
2009-11-04 17:14:57 +00:00
the_fiddler
38576a20f2
Deprecated the LoadAll() method in favor of the new GraphicsContext constructors.
2009-11-04 17:03:59 +00:00
the_fiddler
2073a8805c
Added missing base.On* calls.
2009-11-04 17:01:44 +00:00
the_fiddler
9f4eca541f
Support external EGL contexts.
2009-11-04 17:00:52 +00:00
the_fiddler
1f254a9f55
Added missing documentation to GraphicsContext constructor.
2009-11-04 17:00:34 +00:00
the_fiddler
5142354cda
Renamed internal BindingsBase.LoadAll/Load methods to LoadEntryPoints/LoadEntryPoint, in order to avoid name clashes with the static GL.LoadAll() method.
...
Added GraphicsContext() constructor that takes an existing, valid OpenGL context. This can be used for interop with third-party toolkits which create the OpenGL context themselves.
2009-11-04 16:49:56 +00:00
the_fiddler
8ce46fafde
Set window title and icon.
2009-11-04 11:47:58 +00:00
the_fiddler
507a890ceb
Doubled the size of particles and made them slightly faster.
2009-11-04 10:47:20 +00:00
the_fiddler
74657d94f8
Cleaned up sample, added color and motion.
2009-11-04 10:44:56 +00:00
the_fiddler
3ca21ed1b6
Initialize threads before calling any other X methods.
2009-11-04 10:04:16 +00:00
the_fiddler
9f96fe71c1
Removed unnecessary debugging messages from main loop.
2009-11-04 10:03:50 +00:00
the_fiddler
f5de2fc8d3
Added Toolkit.Init() method that can be used to configure the underlying platform correctly when using OpenTK along with other toolkits (e.g. OpenTK+GTK# on X, where GTK# does not initialize threads).
2009-11-04 09:46:45 +00:00
the_fiddler
765f54917e
Default window style flags can be constants rather than static readonly fields.
...
Throw an exception if we fail to register the window class, the previous solution (check for "class already exists" error) was a workaround for a threading issue that has been solved.
Set the small icon when registering the class.
2009-11-04 09:21:41 +00:00
the_fiddler
5d303f6257
Now recognizes Resources folder for Examples project.
...
Added icon to Examples project.
2009-11-04 01:20:13 +00:00
the_fiddler
f58fe867e8
Added default icon to samples and the example browser.
2009-11-04 01:19:35 +00:00
the_fiddler
72045f4901
Added default application icon.
2009-11-04 00:57:14 +00:00
the_fiddler
15ab0d3ea7
Fixed ClassName and ModalLoopTimerId when constructing multiple WinGLNative windows in parallel.
...
WinGLNative windows are now correctly focused when clicked on the client area.
2009-11-03 23:42:06 +00:00
the_fiddler
544cf9d405
Serialize context construction to avoid threading issues with shared contexts.
2009-11-03 23:39:03 +00:00
the_fiddler
7e1ebfea6b
Avoid static caching of extension strings and improve multithreading behavior - WGL extension checking is fast enough that caching is not very useful.
2009-11-03 23:36:37 +00:00
the_fiddler
bd3334dd2b
Added SyncRoot object to BindingsBase that can be used to protect shared state in the various bindings.
2009-11-03 23:26:57 +00:00
the_fiddler
9b63078b11
Fixed race condition in GraphicsMode.Default.
2009-11-03 13:16:59 +00:00
the_fiddler
baf44cff90
No need to burn 100% CPU time just for a spinning cube! (Especially important for the multithreading test, which opens multiple such windows).
2009-11-03 13:03:35 +00:00
the_fiddler
18109103e3
Use new string(sbyte*) instead of Marshal.PtrToStringAnsi to increase performance when calling GetString to retrieve the list of available extensions.
2009-11-03 12:59:25 +00:00
the_fiddler
eb92aa8223
Implemented Tranform(Vector, Quaternion) overloads. Fixes issue [ #1028 ]: "[Math] Add vector transformation by quaternion".
2009-11-03 12:20:21 +00:00
the_fiddler
b5eb7fdb93
Deprecated Mult in favor of Multiply.
...
Modified operator * to use Multiply internally (reduces code duplication).
2009-11-03 12:11:51 +00:00
the_fiddler
eeda1bf866
Fixed Vector3.Transform signature to return a Vector3, not a Vector4. It was previously impossible to transform a Vector3 structure without intermediate conversions to Vector4.
2009-11-03 11:45:20 +00:00
the_fiddler
4d3e84701c
Modified Transform(ref Vector4, ref Matrix4, out Vector4) overload to work correctly when the ref and out parameters point to the same Vector4.
...
Modified Transform(Vector4, Matrix4): Vector4 to call the reference overload internally. Faster and reduces code duplication.
2009-11-03 11:41:36 +00:00
the_fiddler
d757b00e0a
Added missing TextureBuffer token to BufferTarget and TextureTarget enums (promoted from ARB_texture_buffer_object). Fixes issue [ #1313 ]: "TextureBuffer target".
2009-11-03 10:33:24 +00:00
the_fiddler
dc572d7a6f
Added type-safe parameters to FramebufferTexture (fixes issue [ #1303 ]: "[GL] fix FramebufferTexture parameters").
2009-11-03 10:22:50 +00:00
the_fiddler
c2a40d0b66
Added multithreading test to verify GameWindow behavior with multiple threads.
2009-11-03 09:58:39 +00:00
the_fiddler
00d966641b
* DocProcessor.cs: Remove any trailing newlines in XML docs. Output
...
between Mono/Linux and .Net/Windows is now consistent.
2009-11-03 08:48:49 +00:00
the_fiddler
74bae3e196
Use more aggressive xlib locking following the advice of the multithreaded X manpages (needs work).
2009-11-02 22:37:13 +00:00
the_fiddler
0bfb7897b0
Do not allow MakeCurrent() to change the display connection of the context. This would result in an X error and the change allows us to simplify shutdown/cleanup logic.
2009-11-02 20:50:16 +00:00
the_fiddler
1073c8ccac
* Matrix4d.cs: M44 should be 1.0 to conform with GL.Ortho(). Fixes issue [ #1307 ]: "GL.Ortho behaves other than combination of OpenTK.Matrix4d.CreateOrthographic and GL.MultMatrix".
2009-11-02 13:25:41 +00:00
the_fiddler
9d8cf134c1
Qualify System.Drawing.Rectangle/Point/Size structs fully when necessary, to avoid namespace clash with OpenTK.Rectangle/Point/Size.
2009-11-02 09:37:18 +00:00
the_fiddler
c8c652131e
Added experimental Icon and IconConverter implementations from Mono.
...
Modified INativeWindow implementations to not qualify Icon class fully, so we can change the implementation between System.Drawing and OpenTK at will (using the EXPERIMENTAL #define).
2009-11-02 09:33:53 +00:00
the_fiddler
600f657b70
Improved interoperation with System.Drawing with new addition, subtraction and implicit conversion operators, as well as additional method overloads.
...
Only expose fields through public properties to allow for parameter validation.
2009-11-02 07:20:59 +00:00
the_fiddler
af2d77cdc5
Updated version numbers in preparation for release.
2009-11-01 23:07:38 +00:00
the_fiddler
041c491f19
Fixed an issue where "const unsigned [type] [pointer]" parameters where not parsed correctly. Solves issue [ #1300 ]: "[OpenCL] Possible bug at CL.CreateProgramWithBinary".
2009-11-01 19:15:44 +00:00
the_fiddler
ff572e83b7
Added experimental OpenTK.Point/Size/Rectangle alternatives to System.Drawing, to make OpenTK usable without referencing System.Drawing (disabled by default, #define EXPERIMENTAL to test). Modified a number of using directives and namespace qualifiers to accommodate this change.
2009-11-01 12:44:38 +00:00
the_fiddler
4914574bd4
Document that these APIs are incomplete.
2009-11-01 12:40:25 +00:00
the_fiddler
792c4e3645
Merged es20 branch back into trunk.
2009-10-28 23:09:25 +00:00
the_fiddler
fca4dde7cf
Initialize input vectors to random values.
...
Use smaller data blocks that can be verified visually.
Perform error checking when executing the kernel.
Wait for the command queue to finish before displaying the results.
2009-10-28 14:54:20 +00:00
the_fiddler
13a77d5452
Recognize and copy dds files as part of example resources.
2009-10-28 09:31:59 +00:00
the_fiddler
8e9ebf4fe1
Renamed dds textures to not contain strange characters that confuse Prebuild.
...
Added checks for extension support to SwizzledParallax sample.
2009-10-28 09:05:13 +00:00
the_fiddler
038e140e41
Return readonly IList<> instead of copying arrays of data.
2009-10-28 00:39:38 +00:00
the_fiddler
0c0acfbf75
Track mouse enter/leave events.
2009-10-27 23:58:29 +00:00
the_fiddler
3d0a3dfb4e
Implemented INativeWindow.MouseEnter/MouseLeave events on Win32 and X11.
2009-10-27 23:57:44 +00:00
the_fiddler
852fdc3662
Generate UpdateFrame events even if TargetUpdateFrequency is 0. According to the documentation, setting this value to 0 will result in unconstrained UpdateFrame frequency. Fixes issue [ #1294 ]: "OnUpdateFrame function does not work with maximum update rate".
2009-10-27 22:23:11 +00:00