MonobjcMonobjc Documented Class Library
CanDrawInOpenGLContextPixelFormatForLayerTimeDisplayTime Method (context, pixelFormat, timeInterval, timeStamp)
NamespacesMonobjc.AppKitNSOpenGLLayerCanDrawInOpenGLContextPixelFormatForLayerTimeDisplayTime(NSOpenGLContext, NSOpenGLPixelFormat, Double, IntPtr)

Invoked to ask the layer whether it can (or should) draw.

Original signature is '- (BOOL)canDrawInOpenGLContext:(NSOpenGLContext *)context pixelFormat:(NSOpenGLPixelFormat *)pixelFormat forLayerTime:(CFTimeInterval)timeInterval displayTime:(const CVTimeStamp *)timeStamp'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool CanDrawInOpenGLContextPixelFormatForLayerTimeDisplayTime(
	NSOpenGLContext context,
	NSOpenGLPixelFormat pixelFormat,
	double timeInterval,
	IntPtr timeStamp
)
Public Overridable Function CanDrawInOpenGLContextPixelFormatForLayerTimeDisplayTime ( _
	context As NSOpenGLContext, _
	pixelFormat As NSOpenGLPixelFormat, _
	timeInterval As Double, _
	timeStamp As IntPtr _
) As Boolean
public:
virtual bool CanDrawInOpenGLContextPixelFormatForLayerTimeDisplayTime(
	NSOpenGLContext^ context, 
	NSOpenGLPixelFormat^ pixelFormat, 
	double timeInterval, 
	IntPtr timeStamp
)
Parameters
context (NSOpenGLContext)
The NSOpenGLContext in to which the OpenGL content would be drawn.
pixelFormat (NSOpenGLPixelFormat)
The pixel format used when the context was created.
timeInterval (Double)
The current layer time.
timeStamp (IntPtr)
The display timestamp associated with timeInterval. Can be null.
Return Value
YES if the receiver should render OpenGL content, NO otherwise.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)