Up
Authors
- Frederic De Jaeger
-
Context for openGL drawing
Copyright: (C) 2002 Free Software Foundation, Inc.
This class is simply a view with a NSOpenGLContext
attached to it. This is the simplest way to initialize
a GL context within GNUstep.
There is a mechanism to update the context when the view
is moved or resize.
- Declared in:
- AppKit/NSOpenGLView.h
Availability: OpenStep
Description forthcoming.
Instance Variables
Method summary
+ (
NSOpenGLPixelFormat*)
defaultPixelFormat;
Availability: OpenStep
return a standard NSOpenGLPixelFormat you can pass
to the initWithFrame: pixelFormat: method
- (void)
clearGLContext;
Availability: OpenStep
detach from the current context. You should call it
before releasing this object.
- (void)
dealloc;
Availability: OpenStep
Description forthcoming.
- (id)
initWithFrame: (
NSRect)frameRect
pixelFormat: (
NSOpenGLPixelFormat*)format;
Availability: OpenStep
default initializer. Can be passed [NSOpenGLContext
defaultPixelFormat] as second argument
- (
NSOpenGLContext*)
openGLContext;
Availability: OpenStep
return the current gl context associated with this
view
- (void)
reshape;
Availability: OpenStep
Description forthcoming.
- (void)
setOpenGLContext: (
NSOpenGLContext*)context;
Availability: OpenStep
Description forthcoming.
- (void)
setPixelFormat: (
NSOpenGLPixelFormat*)pixelFormat;
Availability: OpenStep
Description forthcoming.
- (void)
update;
Availability: OpenStep
Description forthcoming.
Instance Variables for NSOpenGLView Class
@protected BOOL attached;
Availability: OpenStep
Description forthcoming.
@protected NSOpenGLContext* glcontext;
Availability: OpenStep
Description forthcoming.
@protected NSOpenGLPixelFormat* pixel_format;
Availability: OpenStep
Description forthcoming.
Up