its's picture

[Solved] Call GL.Bitmap with null as last argument

I'd like to move raster position whith no image,
so I tried to call GL.Bitmap with null as last argument.

gl.Bitmap( 0, 0, 0f, 0f, xMove, yMove, null );
gl.Bitmap( 0, 0, 0f, 0f, xMove, yMove, IntPtr.Zero );

But, these code may be compile error.
How can I do this?


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Try this:

GL.Bitmap(0, 0, 0, 0, xMove, yMove, (byte[])null);

Specifying null on its own matches two different overloads: (byte*)null and (byte[])null. You have to help the compiler understand which one you meant.

Please post the error message when asking for help. Otherwise, it might be impossible to find the exact cause of the issue.

its's picture

Thanks.