1 /***********************************************************************
5 Fichier OpenGl_tgl_funcs.h
12 HISTORIQUE DES MODIFICATIONS :
13 --------------------------------
14 ??-??-?? : PCT ; creation
15 10-07-96 : FMN ; Suppression #define sur calcul matrice
16 05-08-97 : PCT ; support texture mapping
17 23-12-97 : FMN ; Suppression TelBackInteriorStyle, TelBackInteriorStyleIndex
18 15-01-98 : FMN ; Ajout Hidden line
19 08-04-98 : FGU ; Ajout emission
20 27-11-98 : CAL ; S4062. Ajout des layers.
21 30-11-98 : FMN ; S3819 : Textes toujours visibles
22 22-03-04 : SAN ; OCC4895 High-level interface for controlling polygon offsets
23 04-10-04 : ABD ; Added User Defined marker type
25 ************************************************************************/
27 /*----------------------------------------------------------------------*/
29 #ifndef OPENGL_TGL_FUNCS_H
30 #define OPENGL_TGL_FUNCS_H
32 #define BUC60570 /* GG 06-09-99
33 // The model view SD_NORMAL must shown objects with FLAT shading
37 #define G003 /* EUG 06-10-99 Degeneration support
42 #define BUC61044 /* 25/10/01 SAV ; added functionality to control gl depth testing
44 #define BUC61045 /* 25/10/01 SAV ; added functionality to control gl lighting
48 /*----------------------------------------------------------------------*/
52 #include <OpenGl_tgl_all.hxx>
53 #include <InterfaceGraphic_Graphic3d.hxx>
54 #include <InterfaceGraphic_Visual3d.hxx>
56 #include <OSD_FontAspect.hxx>
57 #include <Graphic3d_CGraduatedTrihedron.hxx>
59 /*----------------------------------------------------------------------*/
64 typedef float matrix3[4][4];
77 float x; /* x coordinate */
78 float y; /* y coordinate */
79 float z; /* z coordinate */
83 float delta_x; /* x magnitude */
84 float delta_y; /* y magnitude */
85 float delta_z; /* z magnitude */
89 float x_min; /* x min */
90 float x_max; /* x max */
91 float y_min; /* y min */
92 float y_max; /* y max */
93 float z_min; /* z min */
94 float z_max; /* z max */
98 float x_min; /* x min */
99 float x_max; /* x max */
100 float y_min; /* y min */
101 float y_max; /* y max */
105 limit win; /* window limits */
106 limit3 proj_vp; /* viewport limits */
107 projtype proj_type; /* projection type */
108 point3 proj_ref_point; /* projection reference point */
109 float view_plane; /* view plane distance */
110 float back_plane; /* back plane distance */
111 float front_plane; /* front plane distance */
114 /*----------------------------------------------------------------------*/
119 extern void call_func_eval_ori_matrix3 (const point3* vrp,
125 extern void call_func_eval_map_matrix3(view_map3 *Map, int *err_ind, matrix3 mat);
127 int EXPORT call_togl_create_texture (int Type, unsigned int Width, unsigned int Height, unsigned char *Data, char *FileName);
129 void EXPORT call_togl_destroy_texture (int TexId);
131 void EXPORT call_togl_modify_texture (int TexId, CALL_DEF_INIT_TEXTURE *init_tex);
133 int EXPORT call_togl_inquiretexture ();
135 int EXPORT call_togl_inquireplane ();