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: Not in OpenStep/MacOS-X
Description forthcoming.
Instance Variables
Method summary
+ (NSOpenGLPixelFormat*) defaultPixelFormat;
Availability: Not in OpenStep/MacOS-X
return a standard NSOpenGLPixelFormat you can pass
to the initWithFrame: pixelFormat: method
- (void) clearGLContext;
Availability: Not in OpenStep/MacOS-X
detach from the current context. You should call it
before releasing this object.
- (void) dealloc;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (id) initWithFrame: (NSRect)frameRect pixelFormat: (NSOpenGLPixelFormat*)format;
Availability: Not in OpenStep/MacOS-X
default initializer. Can be passed [NSOpenGLContext
defaultPixelFormat] as second argument
- (NSOpenGLContext*) openGLContext;
Availability: Not in OpenStep/MacOS-X
return the current gl context associated with this
view
- (NSOpenGLPixelFormat*) pixelFormat;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) reshape;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setOpenGLContext: (NSOpenGLContext*)context;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) setPixelFormat: (NSOpenGLPixelFormat*)pixelFormat;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
- (void) update;
Availability: Not in OpenStep/MacOS-X
Description forthcoming.
Instance Variables for NSOpenGLView Class
@protected BOOL attached;
Description forthcoming.
@protected NSOpenGLContext* glcontext;
Description forthcoming.
@protected NSOpenGLPixelFormat* pixel_format;
Description forthcoming.
Up