本文整理汇总了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));
}
}