blob: 705271f85a9ae67da2f3c8f8f33801f9d2885502 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/***********************************************************************
FONCTION :
----------
File OpenGl_togl_polygon.c :
REMARQUES:
----------
HISTORIQUE DES MODIFICATIONS :
--------------------------------
05-08-97 : PCT ; Support texture mapping
************************************************************************/
/*----------------------------------------------------------------------*/
/*
* Includes
*/
#include <OpenGl_tgl_all.hxx>
#include <InterfaceGraphic_Graphic3d.hxx>
#include <OpenGl_tgl.hxx>
#include <OpenGl_tgl_funcs.hxx>
#include <OpenGl_tgl_subrs.hxx>
#include <OpenGl_tgl_utilgr.hxx>
void EXPORT
call_togl_polygon
(
CALL_DEF_GROUP * agroup,
CALL_DEF_FACET * afacet
)
{
if (! agroup->IsOpen) call_togl_opengroup (agroup);
switch (afacet->TypePoints) {
case 1 : /* Vertex Coordinates Specified */
if (afacet->NormalIsDefined)
call_subr_polygon_data (afacet);
else
call_subr_polygon (afacet);
break;
case 2 : /* Coordinates and Vertex Normal Specified */
case 5 : /* Coordinates and Vertex Normal and Texture Coordinate Specified */
call_subr_polygon_data (afacet);
break;
}
if (! agroup->IsOpen) call_togl_closegroup (agroup);
return;
}
|