'\"! eqn | mmdoc '\"macro stdmacro .\"0 WORD: direct 直接コンテクスト .\"0 WORD: indirect 間接コンテクスト .\"0 .ds Vn Version 1.2 .ds Dt 6 March 1997 .ds Re Release 1.2.0 .ds Dp Feb 16 02:56 .ds Dm Feb 10 17:2 .ds Xs 49166 6 xcopycontext.gl .TH GLXCOPYCONTEXT .\"0 .SH NAME .SH 名前 .B "glXCopyContext .\"0 \- copy state from one rendering context to another \- あるレンダリングコンテクストから他のレンダリングコンテクストへ状態をコピーする .\"0 .SH C SPECIFICATION .SH 書式 void \f3glXCopyContext\fP( Display \fI*dpy\fP, .nf .ta \w'\f3void \fPglXCopyContext( 'u GLXContext \fIsrc\fP, GLXContext \fIdst\fP, unsigned long \fImask\fP ) .fi .EQ delim $$ .EN .\"0 .SH PARAMETERS .SH 引き数 .TP \w'\fImask\fP\ \ 'u \f2dpy\fP .\"0 Specifies the connection to the X server. X サーバへの接続を指定。 .TP \f2src\fP .\"0 Specifies the source context. コピー元のコンテクストを指定する。 .TP \f2dst\fP .\"0 Specifies the destination context. コピー先のコンテクストを指定する。 .TP \f2mask\fP .\"0 Specifies which portions of \f2src\fP state are to be copied to \f2dst\fP. \f2src\fP が持っているどの状態を \f2dst\fP にコピーするかを指定する。 .\"0 .SH DESCRIPTION .SH 説明 .\"0 \f3glXCopyContext\fP copies selected groups of state variables from \f2src\fP to \f2dst\fP. \f3glXCopyContext\fP は、選択された状態変数のグループを \f2src\fP から \f2dst\fP にコピーする。 .\"0 \f2mask\fP indicates which groups of state variables are to be copied. \f2mask\fP は、コピーする状態変数のグループを示す。 .\"0 \f2mask\fP contains the bitwise OR of the same symbolic names that are .\"0 passed to the GL command \f3glPushAttrib\fP. \f2mask\fP は、GL のコマンドである \f3glPushAttrib\fP に渡すのと同じ シンボル名について,ビットごとの OR を取ったものである。 .\"0 The single symbolic constant \f3GL_ALL_ATTRIB_BITS\fP can be used to .\"0 copy the maximum possible portion of rendering state. シンボル定数 \f3GL_ALL_ATTRIB_BITS\fP を単独で使うと、レンダリング状態 のうち可能な限り多くの部分をコピーすることができる。 .P .\"0 The copy can be done only if the renderers named by \f2src\fP and \f2dst\fP .\"0 share an address space. コピーが行われるのは、\f2src\fP と \f2dst\fP で示されるレンダラが アドレス空間を共有している場合だけである。 .\"0 Two rendering contexts share an address space if both are nondirect .\"0 using the same server, .\"0 or if both are direct and owned by a single process. 2 つのレンダリングコンテクストがアドレス空間を共有するのは、どちらの レンダリングコンテクストも同じサーバを用いている間接コンテクストの場合 か、どちらも直接コンテクストであり、かつ 1 つのプロセスに所有されてい る場合である。 .\"0 Note that in the nondirect case it is not necessary for the calling .\"0 threads to share an address space, .\"0 only for their related rendering contexts to share an address space. 間接コンテクストの場合には、呼び出しを行うスレッドがアドレス空間を共有 する必要はない。アドレス空間を共有する必要があるのは関連するレンダリング コンテクストだけである。 .P .\"0 Not all values for GL state can be copied. GL の状態を表す値は必ずしも全てがコピーできるわけではない。 .\"0 For example, .\"0 pixel pack and unpack state, .\"0 render mode state, .\"0 and select and feedback state are not copied. 例えば、ピクセルのパックやアンパックの状態、レンダリングモードの状態、 セレクションやフィードバックの状態はコピーされない。 .\"0 The state that can be copied is exactly the state that is manipulated .\"0 by the GL command .\"0 .br .\"0 \f3glPushAttrib\fP. コピーできる状態は、GL のコマンド .br \f3glPushAttrib\fP で操作される状態と全く同じである。 .P .\"0 An implicit \f3glFlush\fP is done by \f3glXCopyContext\fP if \f2src\fP is the current .\"0 context for the calling thread. 呼び出しを行っているスレッドに対して \f2src\fP が現在のコンテクストで あれば、\f3glXCopyContext\fP によって暗黙的に \f3glFlush\fP が実行され る。 .\"0 .SH NOTES .SH 注意 .P .\"0 A \f2process\fP is a single execution environment, .\"0 implemented in a single address space, .\"0 consisting of one or more threads. \f2プロセス\fP は単一の実行環境である。これは単一のアドレス空間内にお いて実行され、1 つ以上のスレッドで構成される。 .P .\"0 A \f2thread\fP is one of a set of subprocesses that share .\"0 a single address space, .\"0 but maintain separate program counters, .\"0 stack spaces, .\"0 and other related global data. \f2スレッド\fPは、1 つのアドレス空間を共有しているサブプロセスの集合の 1 つであるが、別々のプログラムカウンタ、スタック空間、その他の 関連グローバルデータを管理する。 .\"0 A \f2thread\fP that is the only member of its subprocess group .\"0 is equivalent to a \f2process\fP. ある\f2スレッド\fPがサブプロセスグループの唯一のメンバーならば、これは \f2プロセス\fPと等価である。 .\"0 .SH ERRORS .SH エラー .\"0 \f3BadMatch\fP is generated if rendering contexts \f2src\fP and \f2dst\fP .\"0 do not share an address space .\"0 or were not created with respect to the same screen. レンダリングコンテクスト \f2src\fP と \f2dst\fP がアドレス空間を共有し ていないか、同じスクリーンに対して生成されていなければ、\f3BadMatch\fP が生成される。 .P .\"0 \f3BadAccess\fP is generated if \f2dst\fP is current to any thread .\"0 (including the calling thread) at the time \f3glXCopyContext\fP is called. \f3glXCopyContext\fP が呼び出された際、(呼び出しを行ったスレッドを含め て)いずれかのスレッドに対して \f2dst\fP が現在のコンテクストならば、 \f3BadAccess\fP が生成される。 .P .\"0 \f3GLXBadCurrentWindow\fP is generated if \f2src\fP is the current .\"0 context and the current drawable is a window that is no longer valid. \f2src\fP が現在のコンテクストであり、かつ現在のドロウアブルがもはや 有効でないウィンドウならば、\f3GLXBadCurrentWindow\fP が生成される。 .P .\"0 \f3GLXBadContext\fP is generated if either \f2src\fP or \f2dst\fP is not .\"0 a valid GLX context. \f2src\fP または \f2dst\fP が有効な GLX コンテクストでなければ \f3GLXBadContext\fP が生成される。 .\"0 .SH SEE ALSO .SH 関連項目 \f3glPushAttrib\fP, \f3glXCreateContext\fP, \f3glXIsDirect\fP