This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
public class CubeGenerator : MonoBehaviour | |
{ | |
public struct Face | |
{ | |
public Vector3[] vertices; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.ConstrainedExecution; | |
using System.Runtime.InteropServices; | |
using OpenTK; | |
public class GlxBindingsContext : IBindingsContext | |
{ | |
[DllImport("libGL", CharSet = CharSet.Ansi)] | |
private static extern IntPtr glXGetProcAddress(string procName); | |
public IntPtr GetProcAddress(string procName) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Runtime.InteropServices; | |
using Gtk; | |
using OpenToolkit.Graphics.OpenGL4; | |
//this is just a template, if you encounter incorrect drawing when resizing you can disable double buffering on the top level window for the widget, I couldn't find a better fix | |
//and will work only on Linux, to fix that you could change the bindings context that will be loaded with one that workd on another platforms like glfw | |
namespace OpenToolkit | |
{ | |
public class GLWidget : GLArea |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------// | |
// This is a modified version of Xlib class from Docky to be used--// | |
// to reserve screen space for dock-type apps----------------------// | |
//------------------------------------------------------------------// | |
using System; | |
using System.Runtime.InteropServices; | |
namespace Gtk | |
{ | |
public static class XLib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Gtk; | |
using Cairo; | |
namespace TransTest | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ |