Fix StyleCop issues in GLControl
This commit is contained in:
parent
3f1f427c94
commit
531167454c
2 changed files with 10 additions and 10 deletions
|
@ -333,7 +333,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
** Context functions
|
** Context functions
|
||||||
*/
|
*/
|
||||||
[DllImport(agl)] internal static extern AGLContext aglCreateContext(AGLPixelFormat pix, AGLContext share);
|
[DllImport(agl)] internal static extern AGLContext aglCreateContext(AGLPixelFormat pix, AGLContext share);
|
||||||
[DllImport(agl,EntryPoint="aglDestroyContext")]
|
[DllImport(agl, EntryPoint="aglDestroyContext")]
|
||||||
private static extern byte _aglDestroyContext(AGLContext ctx);
|
private static extern byte _aglDestroyContext(AGLContext ctx);
|
||||||
internal static bool aglDestroyContext(AGLContext context)
|
internal static bool aglDestroyContext(AGLContext context)
|
||||||
{
|
{
|
||||||
|
@ -348,7 +348,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
** Current state functions
|
** Current state functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
[DllImport(agl,EntryPoint="aglSetCurrentContext")]
|
[DllImport(agl, EntryPoint="aglSetCurrentContext")]
|
||||||
private static extern byte _aglSetCurrentContext(AGLContext ctx);
|
private static extern byte _aglSetCurrentContext(AGLContext ctx);
|
||||||
internal static bool aglSetCurrentContext(IntPtr context)
|
internal static bool aglSetCurrentContext(IntPtr context)
|
||||||
{
|
{
|
||||||
|
@ -370,7 +370,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
/*
|
/*
|
||||||
** Drawable Functions
|
** Drawable Functions
|
||||||
*/
|
*/
|
||||||
[DllImport(agl,EntryPoint="aglSetDrawable")]
|
[DllImport(agl, EntryPoint="aglSetDrawable")]
|
||||||
private static extern byte _aglSetDrawable(AGLContext ctx, AGLDrawable draw);
|
private static extern byte _aglSetDrawable(AGLContext ctx, AGLDrawable draw);
|
||||||
|
|
||||||
internal static void aglSetDrawable(AGLContext ctx, AGLDrawable draw)
|
internal static void aglSetDrawable(AGLContext ctx, AGLDrawable draw)
|
||||||
|
@ -458,8 +458,8 @@ namespace OpenTK.Platform.MacOS
|
||||||
/*
|
/*
|
||||||
** Error functions
|
** Error functions
|
||||||
*/
|
*/
|
||||||
[DllImport(agl,EntryPoint="aglGetError")] internal static extern AglError GetError();
|
[DllImport(agl, EntryPoint="aglGetError")] internal static extern AglError GetError();
|
||||||
[DllImport(agl,EntryPoint="aglErrorString")]
|
[DllImport(agl, EntryPoint="aglErrorString")]
|
||||||
private static extern IntPtr _aglErrorString(AglError code);
|
private static extern IntPtr _aglErrorString(AglError code);
|
||||||
internal static string ErrorString(AglError code)
|
internal static string ErrorString(AglError code)
|
||||||
{
|
{
|
||||||
|
@ -476,7 +476,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
** Surface texture function
|
** Surface texture function
|
||||||
*/
|
*/
|
||||||
[DllImport(agl)]
|
[DllImport(agl)]
|
||||||
private static extern void aglSurfaceTexture (AGLContext context, GLenum target, GLenum internalformat, AGLContext surfacecontext) ;
|
private static extern void aglSurfaceTexture (AGLContext context, GLenum target, GLenum internalformat, AGLContext surfacecontext);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** PBuffer functions
|
** PBuffer functions
|
||||||
|
@ -494,15 +494,15 @@ namespace OpenTK.Platform.MacOS
|
||||||
** Pbuffer Drawable Functions
|
** Pbuffer Drawable Functions
|
||||||
*/
|
*/
|
||||||
[DllImport(agl)]
|
[DllImport(agl)]
|
||||||
private static extern byte aglSetPBuffer (AGLContext ctx, AGLPbuffer pbuffer, int face, int level, int screen) ;
|
private static extern byte aglSetPBuffer (AGLContext ctx, AGLPbuffer pbuffer, int face, int level, int screen);
|
||||||
[DllImport(agl)]
|
[DllImport(agl)]
|
||||||
private static extern byte aglGetPBuffer (AGLContext ctx, AGLPbuffer *pbuffer, int *face, int *level, int *screen) ;
|
private static extern byte aglGetPBuffer (AGLContext ctx, AGLPbuffer *pbuffer, int *face, int *level, int *screen);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CGL functions
|
** CGL functions
|
||||||
*/
|
*/
|
||||||
[DllImport(agl)]
|
[DllImport(agl)]
|
||||||
private static extern byte aglGetCGLContext(AGLContext ctx, void **cgl_ctx) ;
|
private static extern byte aglGetCGLContext(AGLContext ctx, void **cgl_ctx);
|
||||||
[DllImport(agl)]
|
[DllImport(agl)]
|
||||||
private static extern byte aglGetCGLPixelFormat(AGLPixelFormat pix, void **cgl_pix);
|
private static extern byte aglGetCGLPixelFormat(AGLPixelFormat pix, void **cgl_pix);
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ namespace OpenTK.Platform.MacOS
|
||||||
|
|
||||||
dummyContext = new GraphicsContext(Context,
|
dummyContext = new GraphicsContext(Context,
|
||||||
GetAddress,
|
GetAddress,
|
||||||
delegate()
|
delegate
|
||||||
{
|
{
|
||||||
return new ContextHandle(Agl.aglGetCurrentContext());
|
return new ContextHandle(Agl.aglGetCurrentContext());
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue