7fd59977 |
1 | /*********************************************************************** |
2 | |
3 | FONCTION : |
4 | ---------- |
5 | File OpenGl_togl_pick : |
6 | |
7 | |
8 | REMARQUES: |
9 | ---------- |
10 | |
11 | |
12 | HISTORIQUE DES MODIFICATIONS : |
13 | -------------------------------- |
14 | xx-xx-xx : xxx ; Creation. |
15 | 06-03-96 : FMN ; Ajout OpenGl_tgl_tox.h pour call_thedisplay |
16 | 01-04-96 : CAL ; Integration MINSK portage WNT |
17 | 05-02-97 : FMN ; Suppression de OpenGl_tgl_vis.h |
18 | |
19 | ************************************************************************/ |
20 | |
21 | /*----------------------------------------------------------------------*/ |
22 | /* |
23 | * Includes |
24 | */ |
25 | |
26 | #include <OpenGl_tgl_all.hxx> |
27 | #include <InterfaceGraphic_Graphic3d.hxx> |
28 | #include <OpenGl_tgl_subrvis.hxx> |
29 | #include <OpenGl_txgl.hxx> |
30 | #include <OpenGl_tgl_tox.hxx> |
31 | |
32 | |
33 | /*----------------------------------------------------------------------*/ |
34 | |
35 | void EXPORT |
36 | call_togl_pick |
37 | ( |
38 | CALL_DEF_PICK *apick |
39 | ) |
40 | { |
41 | call_tox_rect( apick->WsId, |
42 | TxglGetSubWindow( call_thedisplay, (WINDOW)apick->DefWindow.XWindow) |
43 | , apick->x, apick->y ); |
44 | apick->Pick.depth = 0; |
45 | if( apick->x <= apick->DefWindow.dx && |
46 | apick->y <= apick->DefWindow.dy ) |
47 | call_subr_pick( apick ); |
48 | return; |
49 | } |
50 | /*----------------------------------------------------------------------*/ |