Git Product home page Git Product logo

opentk's Introduction

OpenTK

I strongly recommend you turn your attention to the now up to date official fork: https://github.com/thefiddler/opentk TheFiddler's fork contains the improvements that have been made to this branch, plus more.

The Open Toolkit is an advanced, low-level C# library that wraps OpenGL, OpenCL and OpenAL.

This is an unofficial fork for community changes that we hope will someday make it into the official repository. Unfortunately, the only official maintainer of OpenTK has been missing since early 2012.

This fork was created from the latest official SVN repository. It contains numerous fixes by the original maintainer that are not found in the last release (2010-10-06). This fork is based on AndyKorth's OpenTK fork with lots of fixes from all over the community.

Documentation

Community

Head over to the OpenTK forums or the OpenTKR mailing list

The original OpenTK home is http://www.opentk.com/

opentk's People

Contributors

andykorth avatar artfunkel avatar benjaminnitschke avatar dellis1972 avatar jeske avatar jhauberg avatar neilwhite avatar robmaister avatar tamschi avatar thefiddler avatar zastrowm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opentk's Issues

Simple ES 2.0 crash on OSX 10.7.5

Disposing window 1773659856.
Launching sample: "Simple ES 2.0"

Size: 2304
System:
Darwin
11.4.2
Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64
x86_64
Detected configuration: MacOS / Mono
Using HIDInput.
Keyboard device 1825924208 discovered, sender is 1825918848
Mouse device 1825925536 discovered, sender is 1825918848
Mouse device 1825927216 discovered, sender is 1825918848
Keyboard device 1825932000 discovered, sender is 1825918848
Mouse device 1825928688 discovered, sender is 1825918848
CoreGraphics reported 2 display(s).
Display 0 is at 2560x1440
Supports 64 display modes.
Display 0 bounds: {X=0,Y=0,Width=2560,Height=1440}
Display 1 is at 1680x1050
Supports 42 display modes.
Display 1 bounds: {X=2560,Y=390,Width=1680,Height=1050}
Creating default GraphicsMode (32, 16, 0, 0, 0, 2, False).
Bits per pixel: 32
Depth: 16
Running on Mac OS X 10.7.5.
Setting process to be foreground application.
Creating window...
Created Window: 7224592
Setting window title: 7224592, CFstring : 6653424, Text : OpenTK Window
Created window.
Titlebar size: Rect: [880, 398, 800, 22]
Attached window events.
Creating GraphicsContext.
Bits per pixel: 16
Depth: 16
GraphicsMode: Index: 1825985720, Color: 32 (8888), Depth: 16, Stencil: 0, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
IWindowInfo: MacOS.CarbonWindowInfo: Handle 7224592
GraphicsContextFlags: Embedded
Requested version: 2.0
System.PlatformNotSupportedException: Please, refer to http://www.opentk.com for more information.
at OpenTK.Platform.Factory+UnsupportedPlatform.CreateGLContext (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags) [0x00006] in /Users/brendon.smith/Downloads/opentk-master/Source/OpenTK/Platform/Factory.cs:154
at OpenTK.Graphics.GraphicsContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags) [0x0014b] in /Users/brendon.smith/Downloads/opentk-master/Source/OpenTK/Graphics/GraphicsContext.cs:134
at OpenTK.GameWindow..ctor (Int32 width, Int32 height, OpenTK.Graphics.GraphicsMode mode, System.String title, GameWindowFlags options, OpenTK.DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags, IGraphicsContext sharedContext) [0x00138] in /Users/brendon.smith/Downloads/opentk-master/Source/OpenTK/GameWindow.cs:208
Disposing of CarbonGLNative window.
Disposing window 7224592.
System.PlatformNotSupportedException: Please, refer to http://www.opentk.com for more information.
at OpenTK.Platform.Factory+UnsupportedPlatform.CreateGLContext (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext shareContext, Boolean directRendering, Int32 major, Int32 minor, GraphicsContextFlags flags) [0x00006] in /Users/brendon.smith/Downloads/opentk-master/Source/OpenTK/Platform/Factory.cs:154
at OpenTK.Graphics.GraphicsContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, Int32 major, Int32 minor, GraphicsContextFlags flags) [0x0014b] in /Users/brendon.smith/Downloads/opentk-master/Source/OpenTK/Graphics/GraphicsContext.cs:134
at OpenTK.GameWindow..ctor (Int32 width, Int32 height, OpenTK.Graphics.GraphicsMode mode, System.String title, GameWindowFlags options, OpenTK.DisplayDevice device, Int32 major, Int32 minor, GraphicsContextFlags flags, IGraphicsContext sharedContext) [0x00138] in /Users/brendon.smith/Downloads/opentk-master/Source/OpenTK/GameWindow.cs:208
System.NullReferenceException: Object reference not set to an instance of an object
at OpenTK.Platform.MacOS.HIDInput.DeviceValueReceived (IntPtr context, IntPtr res, IntPtr sender, IntPtr val) [0x00001] in /Users/brendon.smith/Downloads/opentk-master/Source/OpenTK/Platform/MacOS/HIDInput.cs:203
at (wrapper managed-to-native) System.Windows.Forms.XplatUICarbon:ReceiveNextEvent (uint,intptr,double,bool,intptr&)
at System.Windows.Forms.XplatUICarbon.PeekMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, UInt32 flags) [0x00017] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs:1607
at System.Windows.Forms.XplatUICarbon.DoEvents () [0x00025] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUICarbon.cs:1270
at System.Windows.Forms.XplatUI.DoEvents () [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:610
at System.Windows.Forms.Application.DoEvents () [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:481
at Examples.ExampleBrowser.RunSample (System.Windows.Forms.Control parent, Examples.ExampleInfo e) [0x0010e] in /Users/brendon.smith/Downloads/opentk-master/Source/Examples/ExampleBrowser.cs:392
at Examples.ExampleBrowser.ActivateNode (System.Windows.Forms.TreeNode node) [0x0006e] in /Users/brendon.smith/Downloads/opentk-master/Source/Examples/ExampleBrowser.cs:333
at Examples.ExampleBrowser.treeViewSamples_NodeMouseDoubleClick (System.Object sender, System.Windows.Forms.TreeNodeMouseClickEventArgs e) [0x00019] in /Users/brendon.smith/Downloads/opentk-master/Source/Examples/ExampleBrowser.cs:171
at System.Windows.Forms.TreeView.OnNodeMouseDoubleClick (System.Windows.Forms.TreeNodeMouseClickEventArgs e) [0x0001c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs:1015
at System.Windows.Forms.TreeView.MouseUpHandler (System.Object sender, System.Windows.Forms.MouseEventArgs e) [0x0002b] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs:2049
at System.Windows.Forms.Control.OnMouseUp (System.Windows.Forms.MouseEventArgs e) [0x0001c] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6050
at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x0007e] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5279
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016f] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5020
at System.Windows.Forms.TreeView.WndProc (System.Windows.Forms.Message& m) [0x00069] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs:1129
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:228
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:209
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00085] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-3.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:240

Nsis build configuration fails

The errors while building are:
"The command "makensis opentk.nsi exited with code 9009"
"The command "doxygen" exited with code 9009"
"The command "7z a -tzip opentk.zip opentk" exited with code 9009"
From what I gather from stackoverflow, using macros like $(SolutionDir) to get the full path could fix the problem but I didn't test this out myself.

Future of OpenTK

Going by what's being said here (MonoGame/MonoGame#1528) it seems very unclear what's happening in the world of OpenTK, the main website seems all but dead and going by activity this repo seems to be the go to point for OpenTK.

Given that are you open to more than just bug fixes to this repo? Getting in some performance tricks (like SharpDX uses) and finishing off the bindings (especially OpenCL) would be something I'd be happy to help with. Maybe if we can show this fork of OpenTK is moving forward it will lend more weight to getting it adopted by the Mono team into mono/opentk and hopefully from there onto the mobile platforms.

I Need OpenTK with only Windows Support. No Math, No Audio. Only Windows + GLControl

Hello i need for my project OpenGL + C#. OpenTK is great but it is too complecated. Is there a chance to get a OpenTK with no strong name dependencies, no Crosspaltform support audio and math.

I need only OpenGL + WinForms Control.
I need to change the name of the lnamespace and add my own math, audio and so on. How can i do that?
Or may be there is version only OpenGL with all stuff + GLControl only for windows.

So i could add it to my project and change class names, remove unused code. And rebuild it with my project as one pice.

MouseState position is relative to cursor position on start

I have a problem where the position of the cursor has its origin ( 0, 0) set to where ever the cursor happens to be on the screen ( the entire screen) when i run my windowed subclass of GameWindow. I was expecting it to have its origin be at either the top-left or lower-left corner of the window.

All I do with the mouse is this, in a typical update loop:

MouseState ms = Mouse.GetState();

System.Diagnostics.Debug.WriteLine(
    String.Format("{0}, {1}", ms.X, ms.Y));

This is happening on Windows 8. I have not tested on OSX.

Compile Issue

Couldn't run the example with with 32 bit operating system, vshost-clr2.exe has stopped working error coming. Please let me know if any information needed

API for getting subsections of a matrix

Not sure what the proper term for it is, but I think there should be some API exposed for getting the upper-left 3x3 of a Matrix4 as there are some fairly common uses for it, like calculating a normal matrix.

The main question is how do we expose it? Should there be UpperLeft, UpperRight, LowerLeft, and LowerRight properties? In that case, would any of them besides UpperLeft be useful?

Should we create a new constructor in Matrix3 that accepts a Matrix4, or will that not be clear enough? (Though it does match the GLSL way of doing it)

Any other ideas?

Move to OpenAL Soft

I don't know when this happened, but for at least a few days, the connect.creativelabs.com domain has disappeared. This site hosted the OpenAL installer and some helpful PDFs. At the moment, the only way to get OpenAL is via those sites that aggregate software (more than half of which just link to the now-dead site) and re-uploads posted on various websites.

Leaving users to get OpenAL this way is a potential security issue. People can modify the re-uploads of the installer to include malicious software.

The Creative implementation is (was?) proprietary anyways, OpenAL Soft is LGPL, which means that we should have no problem redistributing in binary format.

I'm going to be very busy these next few weeks, otherwise I'd do it myself and just submit it as a pull request. It shouldn't be too hard, though. OpenAL Soft is supposed to be a drop-in replacement.

OpenAL Soft website

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.