OCC22391 Polylines arrays not drawn for mesh with VBO flag enabled
[occt.git] / src / OpenGl / OpenGl_togl_opengroup.cxx
CommitLineData
7fd59977 1/***********************************************************************
2
3FONCTION :
4----------
5File OpenGl_togl_opengroup.c :
6
7
8REMARQUES:
9----------
10
11HISTORIQUE DES MODIFICATIONS :
12--------------------------------
13xx-xx-xx : xxx ; Creation.
1403-03-98 : CAL ; Modification des structures CALL_DEF_GROUP et STRUCTURE
15
16************************************************************************/
17
18/*----------------------------------------------------------------------*/
19/*
20* Includes
21*/
22
23#include <OpenGl_tgl_all.hxx>
24
25#include <InterfaceGraphic_Graphic3d.hxx>
26#include <OpenGl_tgl.hxx>
27#include <OpenGl_tgl_funcs.hxx>
28#include <OpenGl_tgl_utilgr.hxx>
29
30/*----------------------------------------------------------------------*/
31
32/*
33call_togl_opengroup (agroup)
34CALL_DEF_GROUP * agroup
35
36Opens the associated structure and sets the pointer
37at the end of the primitives.
38
39Method :
40
41- go to the end of the group in the specified structure.
42- skip the structure element which set all attributes of the structure.
43
44*/
45
46void EXPORT
47call_togl_opengroup
48(
49 CALL_DEF_GROUP * agroup
50 )
51{
52 call_func_set_edit_mode (CALL_PHIGS_EDIT_INSERT);
53 call_func_open_struct (agroup->Struct->Id);
54 call_func_set_elem_ptr (0);
55 call_func_set_elem_ptr_label (agroup->LabelEnd);
56 call_func_offset_elem_ptr (- call_util_context_group_place (agroup) - 1);
57}