Skip to content

Instantly share code, notes, and snippets.

@thefiddler
thefiddler / minmax.cs
Created November 19, 2014 23:38
WindowState change test
using System;
using OpenTK;
namespace minmax
{
class MainClass
{
public static void Main(string[] args)
{
@thefiddler
thefiddler / development.log
Created October 12, 2014 06:04
taipo.log 20141210080200
`cat development.log`
Index: Source/OpenTK/Graphics/GraphicsMode.cs
===================================================================
--- Source/OpenTK/Graphics/GraphicsMode.cs (revision 3072)
+++ Source/OpenTK/Graphics/GraphicsMode.cs (working copy)
@@ -18,7 +18,7 @@
{
ColorFormat color_format, accumulator_format;
int depth, stencil, buffers, samples;
- bool stereo;
+ bool stereo, srgb;
@thefiddler
thefiddler / .Net
Last active January 2, 2016 13:19
Debug log for OpenTK 1.1 beta4 on .Net and Mono. (Forced x86 instead of AnyCPU)
GraphicsMode.Default = Index: , Color: 32 (8888), Depth: 16, Stencil: 0, Samples: 0, Accum: 0 (0000), Buffers: 2, Stereo: False
SDL2 init failed with exception: System.DllNotFoundException: Unable to load DLL 'SDL2.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at OpenTK.Platform.SDL2.SDL.WasInit(SystemFlags flags)
at OpenTK.Configuration.DetectSdl2() in c:\Users\stapostol\Documents\GitHub\opentk\Source\OpenTK\Configuration.cs:line 207
SDL2 is not supported
Detected configuration: Windows / .Net
Loaded opengl32.dll: 1466040320
SetProcessDPIAware() returned True
DisplayDevice 1 (primary) supports 47 resolutions.
GETMINMAXINFO
@thefiddler
thefiddler / gui.cs
Last active January 30, 2024 23:33
GUI example using OpenTK and OpenGL 1.1.
// This code was written for the OpenTK library and has been released
// to the Public Domain.
// It is provided "as is" without express or implied warranty of any kind.
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
using OpenTK;
using OpenTK.Graphics;