MonobjcMonobjc Documented Class Library
InitWithTextureTargetTextureInternalFormatTextureMaxMipMapLevelPixelsWidePixelsHigh Method (target, format, maxLevel, pixelsWide, pixelsHigh)
NamespacesMonobjc.AppKitNSOpenGLPixelBufferInitWithTextureTargetTextureInternalFormatTextureMaxMipMapLevelPixelsWidePixelsHigh(Int32, Int32, Int32, Int32, Int32)

Returns an NSOpenGLPixelBuffer object initialized with the specified parameters.

Original signature is '- (id)initWithTextureTarget:(GLenum)target textureInternalFormat:(GLenum)format textureMaxMipMapLevel:(GLint)maxLevel pixelsWide:(GLsizei)pixelsWide pixelsHigh:(GLsizei)pixelsHigh'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithTextureTargetTextureInternalFormatTextureMaxMipMapLevelPixelsWidePixelsHigh(
	int target,
	int format,
	int maxLevel,
	int pixelsWide,
	int pixelsHigh
)
Public Overridable Function InitWithTextureTargetTextureInternalFormatTextureMaxMipMapLevelPixelsWidePixelsHigh ( _
	target As Integer, _
	format As Integer, _
	maxLevel As Integer, _
	pixelsWide As Integer, _
	pixelsHigh As Integer _
) As Id
public:
virtual Id^ InitWithTextureTargetTextureInternalFormatTextureMaxMipMapLevelPixelsWidePixelsHigh(
	int target, 
	int format, 
	int maxLevel, 
	int pixelsWide, 
	int pixelsHigh
)
Parameters
target (Int32)
The texture object. This value should be one of the following: GL_TEXTURE_2D,GL_TEXTURE_CUBE_MAP, or GL_TEXTURE_RECTANGLE_EXT.
format (Int32)
The base internal format of the texture. This value should be GL_RGB, GL_RGBA, or GL_DEPTH_COMPONENT.
maxLevel (Int32)
The desired maximum mipmap level of the structure, starting with zero.
pixelsWide (Int32)
The width of the texture (in pixels) in the pixel buffer.
pixelsHigh (Int32)
The height of the texture (in pixels) in the pixel buffer.
Return Value
An initialized NSOpenGLPixelBuffer object or nil if the initialization failed. Initialization can fail if there is inconsistency among the parameter values. See the OpenGL documentation for glTexImage2D for more information.
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.AppKit (Module: Monobjc.AppKit)