Example #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);
Example #2
0
 [DllImport(agl)] static extern byte aglTexImagePBuffer (AGLContext ctx, AGLPbuffer pbuffer, int source);
Example #3
0
 [DllImport(agl)] internal static extern byte aglDisable(AGLContext ctx, ParameterNames pname);
Example #4
0
 internal static extern byte aglSetInteger(AGLContext ctx, ParameterNames pname, int []@params);
Example #5
0
 static extern byte aglGetCGLContext(AGLContext ctx, void** cgl_ctx);
Example #6
0
 [DllImport(agl)] static extern int aglGetVirtualScreen(AGLContext ctx);
Example #7
0
 internal static extern bool aglGetInteger(AGLContext ctx, ParameterNames pname, out int param);
Example #8
0
        /*
        ** Current state functions
        */
        #region --- aglSetCurrentContext ---

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

        [DllImport(agl,EntryPoint="aglSetCurrentContext")] static extern byte _aglSetCurrentContext(AGLContext ctx);
Example #26
0
 static extern byte aglGetInteger(AGLContext ctx, GLenum pname, int* @params);
Example #27
0
 static extern byte _aglSetDrawable(AGLContext ctx, AGLDrawable draw);
Example #28
0
 /*
  ** Surface texture function
  */
 [DllImport(agl)] static extern void aglSurfaceTexture (AGLContext context, GLenum target, GLenum internalformat, AGLContext surfacecontext) ;
Example #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));
            }
        }
Example #30
0
 /*
  ** Pbuffer Drawable Functions
  */
 [DllImport(agl)] static extern byte aglSetPBuffer (AGLContext ctx, AGLPbuffer pbuffer, int face, int level, int screen)    ;
Example #31
0
 [DllImport(agl)] static extern byte aglSetOffScreen(AGLContext ctx, int width, int height, int rowbytes, IntPtr baseaddr);
Example #32
0
 /*
  ** CGL functions
  */
 [DllImport(agl)] static extern byte aglGetCGLContext(AGLContext ctx, void **cgl_ctx) ;
Example #33
0
 [DllImport(agl)] static extern AGLDrawable aglGetDrawable(AGLContext ctx);
Example #34
0
 [DllImport(agl)] static extern byte aglCopyContext(AGLContext src, AGLContext dst, uint mask);
Example #35
0
 static extern byte _aglSetFullScreen(AGLContext ctx, int width, int height, int freq, int device);
Example #36
0
 [DllImport(agl)] static extern AGLDrawable aglGetDrawable(AGLContext ctx);
Example #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));
            }
        }
Example #38
0
 /*
 ** Virtual screen functions
 */
 [DllImport(agl)] static extern byte aglSetVirtualScreen(AGLContext ctx, int screen);
Example #39
0
 internal static extern byte aglEnable(AGLContext ctx, ParameterNames pname);