MonobjcMonobjc Documented Class Library
CreatePBuffer Method (width, height, target, internalFormat, max_level, pbuffer)
NamespacesMonobjc.OpenGLCGLCreatePBuffer(Int32, Int32, Int32, Int32, Int32, IntPtr)

Creates a pixel buffer of the specified size, compatible with the specified texture target.

Original signature is 'CGLError CGLCreatePBuffer ( GLsizei width, GLsizei height, GLenum target, GLenum internalFormat, GLint max_level, CGLPBufferObj *pbuffer );'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static CGLError CreatePBuffer(
	int width,
	int height,
	int target,
	int internalFormat,
	int max_level,
	IntPtr pbuffer
)
Public Shared Function CreatePBuffer ( _
	width As Integer, _
	height As Integer, _
	target As Integer, _
	internalFormat As Integer, _
	max_level As Integer, _
	pbuffer As IntPtr _
) As CGLError
public:
static CGLError CreatePBuffer(
	int width, 
	int height, 
	int target, 
	int internalFormat, 
	int max_level, 
	IntPtr pbuffer
)
Parameters
width (Int32)
MISSING
height (Int32)
MISSING
target (Int32)
MISSING
internalFormat (Int32)
MISSING
max_level (Int32)
MISSING
pbuffer (IntPtr)
MISSING
Return Value
A result code. See “CGL Result Codes.” This function returns kCGLBadAlloc if it cannot allocate storage for the pixel buffer data structure. It returns kCGLBadValue for any of these conditions:
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.OpenGL (Module: Monobjc.OpenGL)