Up

NSOpenGLView.m

Authors

Frederic De Jaeger
Context for openGL drawing

Copyright: (C) 2002 Free Software Foundation, Inc.

NSOpenGLView

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.

NSOpenGLView : NSView

Declared in:
AppKit/NSOpenGLView.h
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


Instance Variables

Method summary

defaultPixelFormat 

+ (NSOpenGLPixelFormat*) defaultPixelFormat;
Availability: Not in OpenStep/MacOS-X

return a standard NSOpenGLPixelFormat you can pass to the initWithFrame: pixelFormat: method


clearGLContext 

- (void) clearGLContext;
Availability: Not in OpenStep/MacOS-X

detach from the current context. You should call it before releasing this object.


dealloc 

- (void) dealloc;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


initWithFrame: pixelFormat: 

- (id) initWithFrame: (NSRect)frameRect pixelFormat: (NSOpenGLPixelFormat*)format;
Availability: Not in OpenStep/MacOS-X

default initializer. Can be passed [NSOpenGLContext defaultPixelFormat] as second argument


openGLContext 

- (NSOpenGLContext*) openGLContext;
Availability: Not in OpenStep/MacOS-X

return the current gl context associated with this view


pixelFormat 

- (NSOpenGLPixelFormat*) pixelFormat;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


reshape 

- (void) reshape;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setOpenGLContext: 

- (void) setOpenGLContext: (NSOpenGLContext*)context;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


setPixelFormat: 

- (void) setPixelFormat: (NSOpenGLPixelFormat*)pixelFormat;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.


update 

- (void) update;
Availability: Not in OpenStep/MacOS-X

Description forthcoming.




Instance Variables for NSOpenGLView Class

attached

@protected BOOL attached;

Description forthcoming.


glcontext

@protected NSOpenGLContext* glcontext;

Description forthcoming.


pixel_format

@protected NSOpenGLPixelFormat* pixel_format;

Description forthcoming.






Up