Conforms To:
NSObject
Declared In:
SCDrawable.h
The SCView class conforms to this protocol and handles setting the controller's drawable behind the scenes; in most cases you will be able to simply use an SCView for drawing.
However, if you do not have a view (i.e. an NSView-derived instance,
such as SCView), you have to create an object that conforms to this
protocol and set your SCController's drawable outlet. A typical
case where you have to use this approach is "real" fullscreen
rendering. (Refer to the Sc21 fullscreen example that ships with
Sc21 for an example on how to do this.)
display
Render a frame, and swap the front and back buffers.
SCView does this by simply sending display to NSView.
When implementing this method yourself, you would typically
send the render message to your SCController and flush the
buffers of your context.
frame
Returns the position and size of the drawable.
SCView returns it's own frame (as returned by NSView's method of the same name).
When running in fullscreen mode, you should return an NSRect of the dimensions (0, 0, displaywidth, displayheight).