Esempio n. 1
0
 /*
  ** Font function
  */
  // TODO: face parameter should be of type StyleParameter in QuickDraw.
 [DllImport(agl)] static extern byte aglUseFont(AGLContext ctx, int fontID, int face, int size, int first, int count, int @base);
Esempio n. 2
0
 [DllImport(agl)] static extern byte aglTexImagePBuffer (AGLContext ctx, AGLPbuffer pbuffer, int source);
Esempio n. 3
0
 [DllImport(agl)] internal static extern byte aglDisable(AGLContext ctx, ParameterNames pname);
Esempio n. 4
0
 internal static extern byte aglSetInteger(AGLContext ctx, ParameterNames pname, int []@params);
Esempio n. 5
0
 static extern byte aglGetCGLContext(AGLContext ctx, void** cgl_ctx);
Esempio n. 6
0
 [DllImport(agl)] static extern int aglGetVirtualScreen(AGLContext ctx);
Esempio n. 7
0
 internal static extern bool aglGetInteger(AGLContext ctx, ParameterNames pname, out int param);
Esempio n. 8
0
        /*
        ** Current state functions
        */
        #region --- aglSetCurrentContext ---

        [DllImport(agl, EntryPoint = "aglSetCurrentContext")] static extern byte _aglSetCurrentContext(AGLContext ctx);
Esempio n. 9
0
 internal static extern bool aglDisable(AGLContext ctx, ParameterNames pname);
Esempio n. 10
0
 static extern bool aglIsEnabled(AGLContext ctx, GLenum pname);
Esempio n. 11
0
 static extern byte aglGetCGLContext(AGLContext ctx, void **cgl_ctx);
Esempio n. 12
0
 static extern byte aglGetInteger(AGLContext ctx, GLenum pname, int * @params);
Esempio n. 13
0
 internal static extern byte aglSetInteger(AGLContext ctx, ParameterNames pname, ref int @params);
Esempio n. 14
0
 [DllImport(agl)] static extern byte aglGetPBuffer (AGLContext ctx, AGLPbuffer *pbuffer, int *face, int *level, int *screen)  ;
Esempio n. 15
0
 /*
  ** Context functions
  */
 [DllImport(agl)] internal static extern AGLContext aglCreateContext(AGLPixelFormat pix, AGLContext share);
Esempio n. 16
0
 [DllImport(agl, EntryPoint = "aglDestroyContext")] static extern byte _aglDestroyContext(AGLContext ctx);
Esempio n. 17
0
 [DllImport(agl,EntryPoint="aglDestroyContext")] static extern byte _aglDestroyContext(AGLContext ctx);
Esempio n. 18
0
 static extern byte _aglSetFullScreen(AGLContext ctx, int width, int height, int freq, int device);
Esempio n. 19
0
 internal static bool aglDestroyContext(AGLContext context)
 {
     return (_aglDestroyContext(context) != 0) ? true : false;
 }
Esempio n. 20
0
 /*
  ** Virtual screen functions
  */
 [DllImport(agl)] static extern byte aglSetVirtualScreen(AGLContext ctx, int screen);
Esempio n. 21
0
 [DllImport(agl)] static extern byte aglCopyContext(AGLContext src, AGLContext dst, uint mask);
Esempio n. 22
0
 /*
  ** Swap functions
  */
 [DllImport(agl)] internal static extern void aglSwapBuffers(AGLContext ctx);
Esempio n. 23
0
 [DllImport(agl)] internal static extern byte aglUpdateContext(AGLContext ctx);
Esempio n. 24
0
 [DllImport(agl)] static extern byte aglIsEnabled(AGLContext ctx, GLenum pname);
Esempio n. 25
0
        /*
         ** Current state functions
         */
        #region --- aglSetCurrentContext ---

        [DllImport(agl,EntryPoint="aglSetCurrentContext")] static extern byte _aglSetCurrentContext(AGLContext ctx);
Esempio n. 26
0
 static extern byte aglGetInteger(AGLContext ctx, GLenum pname, int* @params);
Esempio n. 27
0
 static extern byte _aglSetDrawable(AGLContext ctx, AGLDrawable draw);
Esempio n. 28
0
 /*
  ** Surface texture function
  */
 [DllImport(agl)] static extern void aglSurfaceTexture (AGLContext context, GLenum target, GLenum internalformat, AGLContext surfacecontext) ;
Esempio n. 29
0
        internal static void aglSetDrawable(AGLContext ctx, AGLDrawable draw)
        {
            byte retval = _aglSetDrawable(ctx, draw);

            if (retval == 0)
            {
                AglError err = GetError();

                throw new MacOSException(err, ErrorString(err));
            }
        }
Esempio n. 30
0
 /*
  ** Pbuffer Drawable Functions
  */
 [DllImport(agl)] static extern byte aglSetPBuffer (AGLContext ctx, AGLPbuffer pbuffer, int face, int level, int screen)    ;
Esempio n. 31
0
 [DllImport(agl)] static extern byte aglSetOffScreen(AGLContext ctx, int width, int height, int rowbytes, IntPtr baseaddr);
Esempio n. 32
0
 /*
  ** CGL functions
  */
 [DllImport(agl)] static extern byte aglGetCGLContext(AGLContext ctx, void **cgl_ctx) ;
Esempio n. 33
0
 [DllImport(agl)] static extern AGLDrawable aglGetDrawable(AGLContext ctx);
Esempio n. 34
0
 [DllImport(agl)] static extern byte aglCopyContext(AGLContext src, AGLContext dst, uint mask);
Esempio n. 35
0
 static extern byte _aglSetFullScreen(AGLContext ctx, int width, int height, int freq, int device);
Esempio n. 36
0
 [DllImport(agl)] static extern AGLDrawable aglGetDrawable(AGLContext ctx);
Esempio n. 37
0
        internal static void aglSetFullScreen(AGLContext ctx, int width, int height, int freq, int device)
        {
            byte retval = _aglSetFullScreen(ctx, width, height, freq, device);

            if (retval == 0)
            {
                AglError err = GetError();
                Debug.Print("AGL Error: {0}", err);
                Debug.Indent();
                Debug.Print(ErrorString(err));
                Debug.Unindent();

                throw new MacOSException(err, ErrorString(err));
            }
        }
Esempio n. 38
0
 /*
 ** Virtual screen functions
 */
 [DllImport(agl)] static extern byte aglSetVirtualScreen(AGLContext ctx, int screen);
Esempio n. 39
0
 internal static extern byte aglEnable(AGLContext ctx, ParameterNames pname);