Function:cs2socb

From S2PLOT

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:01, 30 October 2007
S2plot admin (Talk | contribs)

← Previous diff
Revision as of 01:02, 30 October 2007
S2plot admin (Talk | contribs)

Next diff →
Line 11: Line 11:
==Description== ==Description==
-Register function that will draw direct OpenGL graphics when called. <i>This is a highly advanced capability of s2plot that is open to many potential pitfalls.</i> Only experienced OpenGL programmers should attempt to use it! Use NULL argument to disable this callback. The coordinate system for drawing geometry in this function is the viewport one. The OpenGL callback must be of the form: <tt>void oglfn(void)</tt>. +Register function that will draw direct OpenGL graphics when called. <i>This is a highly advanced capability of s2plot that is open to many potential pitfalls.</i> Only experienced OpenGL programmers should attempt to use it! Use NULL argument to disable this callback. The coordinate system for drawing geometry in this function is the viewport one. The OpenGL callback must be of the form:
 + 
 +<tt>void oglfn(void)</tt>.
== See Also == == See Also ==

Revision as of 01:02, 30 October 2007

cs2socb

Register function that will draw direct OpenGL graphics when called.

Prototype

void cs2socb(void *oglfn);

Description

Register function that will draw direct OpenGL graphics when called. This is a highly advanced capability of s2plot that is open to many potential pitfalls. Only experienced OpenGL programmers should attempt to use it! Use NULL argument to disable this callback. The coordinate system for drawing geometry in this function is the viewport one. The OpenGL callback must be of the form:

void oglfn(void).

See Also

cs2scb Set the callback function; can be null to cancel callback.
cs2sncb Set the function to call when number-keys pressed.
cs2shcb Set the handle callback function for when a handle is (de)selected


Code Example

/* This function should only be used by experienced OpenGL programmers 
 * Example code is available in s2uc7.c in the sample directory 
 * distributed with S2PLOT */

Back to S2PLOT function list.


Personal tools