本文整理匯總了C#中AGLContext類的典型用法代碼示例。如果您正苦於以下問題:C# AGLContext類的具體用法?C# AGLContext怎麽用?C# AGLContext使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
AGLContext類屬於命名空間,在下文中一共展示了AGLContext類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: aglGetCGLContext
static extern byte aglGetCGLContext(AGLContext ctx, void** cgl_ctx);
示例2: aglTexImagePBuffer
[DllImport(agl)] static extern byte aglTexImagePBuffer (AGLContext ctx, AGLPbuffer pbuffer, int source);
示例3: aglGetPBuffer
[DllImport(agl)] static extern byte aglGetPBuffer (AGLContext ctx, AGLPbuffer *pbuffer, int *face, int *level, int *screen) ;
示例4: aglSetInteger
internal static extern byte aglSetInteger(AGLContext ctx, ParameterNames pname, int []@params);
示例5: aglUseFont
/*
** 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);
示例6: aglGetVirtualScreen
[DllImport(agl)] static extern int aglGetVirtualScreen(AGLContext ctx);
示例7: aglDisable
[DllImport(agl)] internal static extern byte aglDisable(AGLContext ctx, ParameterNames pname);
示例8: aglDestroyContext
internal static bool aglDestroyContext(AGLContext context)
{
return (_aglDestroyContext(context) != 0) ? true : false;
}
示例9: aglCopyContext
[DllImport(agl)] static extern byte aglCopyContext(AGLContext src, AGLContext dst, uint mask);
示例10: aglCreateContext
/*
** Context functions
*/
[DllImport(agl)] internal static extern AGLContext aglCreateContext(AGLPixelFormat pix, AGLContext share);
示例11: _aglDestroyContext
[DllImport(agl,EntryPoint="aglDestroyContext")] static extern byte _aglDestroyContext(AGLContext ctx);
示例12: aglGetInteger
internal static extern bool aglGetInteger(AGLContext ctx, ParameterNames pname, out int param);
示例13: aglIsEnabled
static extern bool aglIsEnabled(AGLContext ctx, GLenum pname);
示例14: aglDisable
internal static extern bool aglDisable(AGLContext ctx, ParameterNames pname);
示例15: aglSetFullScreen
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));
}
}