In general, it void*will be converted to IntPtrin C # code.
: IntPtr .NET/# . , "" (, , ), , , . C/++ #, void*, # IntPtr, , .
pinvoke.net glTexImage2D, , . byte[] .NET/#, , byte[]. IntPtr #, , IntPtr.
pinvoke.net opengl32:
[DllImport(LIBRARY_OPENGL)] protected static extern void glTexImage2D (
uint target,
int level,
int internalformat,
int width,
int height,
int border,
uint format,
uint type,
byte[] pixels);
[DllImport(LIBRARY_OPENGL)] protected static extern void glTexImage2D (
uint target,
int level,
int internalformat,
int width,
int height,
int border,
uint format,
uint type,
IntPtr pixels);