Esempio n. 1
0
        public static IupHandle Canvas(string action = null)
        {
            IupHandle res = IupHandle.Create(NativeIUPGL.IupGLCanvas(action));

            if (res == null)
            {
                throw new Exception("Failed to create OpenGL canvas, was IupGL Open():ed correctly?");
            }
            return(res);
        }
Esempio n. 2
0
 public static void Open()
 {
     NativeIUPGL.IupGLCanvasOpen();
 }
Esempio n. 3
0
 public static void Wait(bool gl)
 {
     NativeIUPGL.IupGLWait(gl ? 1 : 0);
 }
Esempio n. 4
0
 public static void UseFont(IupHandle ih, int first, int count, int list_base)
 {
     NativeIUPGL.IupGLUseFont(IupHandle.GetCHandle(ih), first, count, list_base);
 }
Esempio n. 5
0
 public static void Palette(IupHandle ih, int index, float r, float g, float b)
 {
     NativeIUPGL.IupGLPalette(IupHandle.GetCHandle(ih), index, r, g, b);
 }
Esempio n. 6
0
 public static void SwapBuffers(IupHandle ih)
 {
     NativeIUPGL.IupGLSwapBuffers(IupHandle.GetCHandle(ih));
 }
Esempio n. 7
0
 public static bool IsCurrent(IupHandle ih)
 {
     return(NativeIUPGL.IupGLIsCurrent(IupHandle.GetCHandle(ih)) != 0);
 }
Esempio n. 8
0
 public static void MakeCurrent(IupHandle ih)
 {
     NativeIUPGL.IupGLMakeCurrent(IupHandle.GetCHandle(ih));
 }