ut_GL.c File Reference


Detailed Description

OpenGL functions GL_.

=====================================================
Liste_Funktionen_Beginn:

GL_DrawPoint
GL_DrawLine
GL_DrawDimen          Hor, Vert Dimension
GL_DrawDima           Angular Dimension
GL_DrawDimdia         Diameter-Dimension
GL_DrawDimrad         Radius-Dimension
GL_DrawLdr
GL_DrawTxtA           Text; .. ??
GL_DrawTag1           Text + Farbiges Rechteck ?
GL_DrawSymV3          GERICHTETE VEKTOR-Symbole   SYM_ARROW ..
GL_DrawVec            Vector m wahrer Laenge; SYM_VEC

GL_Draw_obj           Draw 1-n Polygons as GL_LINE_STRIPs from ObjGX

-------------- draw into open offene GL-List -----------------------------
GL_Draw_Ini                Init Flaechen 
GL_Draw_Ini1               Init Lines,Curves|Flaechen
GL_DrawLn_Ini              Init Lines,Curves
GL_Surf_Ini
GL_EndList,GL_EndList1,GL_EndList2                      close GL-Ausgaben
GL_Disp_ln                                              Ausgabe GL_LINES
GL_Disp_ln2                                             Ausgabe GL_LINES
GL_Disp_ci2                                             Ausgabe 2D-Circ
GL_Disp_cv                                              Ausgabe Polygon
GL_Disp_cv2                                             Ausgabe Polygon
GL_DrawCirSc                                            Ausgabe Circ ..
GL_Disp_vSym          Vector m wahrer Laenge; SYM_VEC   Ausgabe Vektor
GL_Disp_vc            Vector normiert; SYM_ARROW        Ausgabe Vektor
GL_Disp_symV          Vectorsymbols; zB SYM_ARROH SYM_VEC
GL_Disp_symB          Bitmapsymbols
GL_Disp_2D_box1                                not-zooming 2D-box
GL_Disp_2D_box2                    unused      zoomed 2D-fields (DrawPixels)
GL_Disp_sq1           Disp. quadrat. Flaeche 
GL_Disp_sur           Draw 1-n Planar Patches from ObjGX

GL_DefColSet
GL_DefColGet

GL_MousePos           get Mousepos in userCoords
GL_GetEyeLn           Sichtstrahl (Point & Vector) retournieren
GL_GetEyeX            Sichtstrahl (Vector) retournieren
GL_GetActSelPos       get screenCoords & userCoords of selectionPoint
GL_set_viewPlnPos       save screenCoords & userCoords of selectionPoint
GL_GetViewPos         Curpos in userkoord. retournieren
GL_GetConstrPos       Curpos in userkoord. retournieren
GL_GetColorBits       returns Nr of ColorBits (usually 24)
GL_selPt              2D-test: find actCurPos in pTab
GL_selSubPt           2D-test: find point in pTab
GL_Uk2Sk
GL_Sk2Uk

GL_Query_siz          Estimate size of all OpenGL-objects for FeedbackBufferSize.
GL_query_ViewZ        return GL_cen.z;
GL_get_Scale        return GL_Scale;

------------------ InitFunctions:
GL_InitModelSize
GL_InitNewAtt
GL_InitPtAtt
GL_InitAFont
GL_InitGFont
GL_InitGF2

GL_Del_om             del multiple objects from DL
GL_Del0               ein Obj der DL loeschen od gesamte DL loeschen
GL_Del1               ein Obj der Gl-DispList loeschen
GL_Delete             DispList zuruecksetzen;
GL_last_del           delete last obj of DL, if its DB-index is 0
GL_temp_Delete        eine bestimmte loeschen ..
GL_temp_delete        alle temp. obj loeschen ..
GL_Regen1             reset GR_TAB_IND (remove unused recs at end)

GL_Tex_Ini
GL_Tex_Load
GL_Tex_Del            delete OpenGL-texture
GL_Tex_End

GL_GetInd_temp

GL_config_test

Liste_Funktionen_Ende:
=====================================================

- test functions:
GL_tst_pta             testen der GL_Disp_pta

#include "../xa/MS_Def1.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_TX.h"
#include "../gr/ut_UI.h"
#include "../db/ut_DB.h"
#include "../gr/ut_gr.h"
#include "../gr/ut_DL.h"
#include "../gr/ut_GL.h"
#include "../gr/ut_GL_bitmaps.h"
#include "../gr/vf.h"
#include "../xa/xa_uid.h"
#include "../xa/xa.h"

Defines

#define SCALE_MAX   1000000.0
#define SCALE_MIN   0.0000001
#define VAL_HUGE   9999999999.9
#define COL_ANZ   15
#define BUF_SIZ   2048
#define DR_BUF_SIZ   1000000
#define DR_BUF_SIZ   1000000

Functions

GLuint GL_fix_DL_ind (long *)
int GL_Test ()
int GL_selPt (int *is, int *pSel, Point *spt, int ptNr, Point *pTab, int iNr, int *iTab)
int GL_Tex_End ()
int GL_EndList ()
int GL_EndList1 (int mode)
int GL_EndList2 ()
void GL_UnHiliObj (long ind)
void GL_HiliObj (long ind)
void GL_Reframe ()
void GL_Reframe2 ()
void GL_Reframe1 ()
void GL_Translate ()
void GL_Translate1 ()
void GL_Transl_VertP (Point *pt1)
int GL_ScalBack (double sc)
int GL_Feedback (GLint *size, GLfloat *feedBuffer)
void GL_Redraw ()
void GL_GetGLMat0 (void)
int GL_dump_Mat0 ()
void GL_Uk2Sk (double *sx, double *sy, double *sz, double ux, double uy, double uz)
void GL_Sk2Uk (double *ux, double *uy, double *uz, double sx, double sy, double sz)
int GL_Query_siz (int *siz)
void GL_Init0 ()
void GL_Init1 ()
void GL_Init_View ()
void GL_DefineView (int mode)
void GL_DefineDisp (int mode, int mode1)
int GL_Regen1 ()
int GL_Del_om (int typ, int ind, int iatt)
void GL_Del0 (long ind)
int GL_Del1 (long ind)
void GL_Delete (long ind)
void GL_last_del ()
void GL_temp_Delete (long ind)
void GL_temp_delete ()
long GL_GetInd_temp ()
void GL_Start_RubberBox ()
void GL_Stop_RubberX (double *siz, Point *ptC)
void GL_Do_RubberBox ()
void * GL_Print1 (int *iw, int *ih)
int GL_Select (int mode, int *typTab, long *indTab, long *dlTab)
int GL_Select2 (int mode, int *typTab, long *indTab, long *dlTab, GLuint hits, GLuint *selectBuf)
int GL_tstFuncs (int mode)
long GL_GetActInd ()
long GL_Get_DLind ()
int GL_SetViewPln ()
int GL_SetConstrPln ()
int GL_DefColGet (ColRGB *nxtCol)
int GL_DefColSet (ColRGB *nxtCol)
Point GL_GetViewPt (Point *pti)
int GL_GetCurPosSc (int *xpos, int *ypos)
int GL_GetEyeLn (Point *curPos, Vector *eyeVec)
Vector GL_GetEyeX ()
int GL_set_viewPlnPos ()
int GL_GetActSelPos (Point *posUsr, Point *posScr)
Point GL_GetViewPos ()
Point GL_GetConstrPos ()
void GL_Do_Idle (int x, int y)
Point GL_GetCen ()
void GL_Do_CenRot (double zval)
void GL_Do_Pan__ (int x, int y)
void GL_Do_Pan (int x, int y)
void GL_Do_Rot (int x, int y)
void GL_Do_Rot__ (int x, int y)
void GL_Do_Rot1 ()
void GL_Do_Scale__ (int x, int y)
void GL_Do_Scale (int x, int y)
int GL_Get_View (double view[])
int GL_Set_View (double view[])
double GL_fix_Scale (double sci)
void GL_Set_Scale (double Scale)
void GL_Reshape (int width, int height)
int GL_Get_Cen (Point *cen)
int GL_Set_Cen (Point *Ucen)
int GL_Rescal1 (Point *pb1, Point *pb2, float *fa)
int GL_Rescal0 (Point *pb1, Point *pb2)
int GL_FeedGet (int *fsiz, float **feedBuffer)
void GL_Rescale (double Usiz, Point *Ucen)
int GL_fix_DL_base (int mode)
int GL_DrawLn_Ini (long *ind, int attInd)
int GL_Surf_Ini (long *ind, ColRGB *col)
int GL_Tex_Ini (long *ind, TexBas *tb, TexRef *tr)
void GL_Draw_Ini (long *ind, int attInd)
int GL_Draw_Ini1 (long *ind, int attInd, int mode)
void GL_DrawPoint (long *ind, int attInd, Point *pt1)
void GL_DrawLine (long *ind, int attInd, Line *ln1)
void GL_Disp_ln (Point *p1, Point *p2)
void GL_Disp_ln2 (Point2 *p1, Point2 *p2)
void GL_DrawPoly2D (long *ind, int attInd, int ianz, Point2 pta[], double zval)
int GL_DrawPolySc (long *ind, int attInd, int ianz, Point *pTab)
int GL_DrawCvIpTab (long *ind, int att, int *iba, int ibNr, Point *pTab, int mode)
void GL_DrawPoly (long *ind, int attInd, int ianz, Point *pTab)
void GL_DrawRSur (long *ind, int attInd, int ptAnz, Point *pa1, Point *pa2)
int GL_orient__ (int dir)
int GL_DrawFace (int ptNr, Point *pta, int ptiNr, short *pti, int side)
int GL_DrawLStrip (Point *pTab, int ptAnz)
int GL_DrawStrip1 (Point *ps, Point *pa1, Point *pa2, int ptAnz)
int GL_DrawStrip2 (Point *pa1, Point *pa2, int ptAnz, int newS)
void GL_DrawFan (Point *pt1, int ptAnz, Point *pa1, int typ, int newS)
void GL_DrawFtab (Point *pTab, Fac3 *fTab, int fNr, int styl)
int GL_DrawSur (long *ind, int att, ObjGX *os)
int GL_Disp_sur (ObjGX *os)
int GL_ColSet (ColRGB *pCol)
int GL_Disp_face (int gTyp, int ptNr, Point *pa)
int GL_Draw_obj (long *dli, int att, ObjGX *oxi)
int GL_LoadBMP (long *ind, Point *p1, Point *p2, int ltyp, double scl, char *symNam)
void GL_DrawSymB (long *ind, int attInd, int symTyp, Point *pt1)
void GL_DrawSymV (long *ind, int symTyp, int att, Point *pt1, double scale)
void GL_DrawSymV2 (long *ind, int symTyp, int att, Point *pt1, Point *pt2, double scale)
int GL_DrawCirSc (long *ind, int att, Point *ptc, Vector *vc1, double ang1)
int GL_DrawVc1 (long *ind, int att, Point *pti, Vector *vc1)
void GL_DrawVec (long *ind, int att, Point *pt1, Vector *vc1)
int GL_Disp_vc (Vector *vc1, Point *pt1, int att)
int GL_Disp_vSym (int symTyp, Point *pt1, Vector *vc1, double scale, int att)
int GL_Disp_symV (int symTyp, Point *pt1, double az, double ay, double scale)
int GL_Disp_symB (int symTyp, Point *pt1)
int GL_Disp_2D_box1 (Point *p1, int sx, int sy, int dx, int dy)
int GL_Disp_ci2 (Point2 *pc, Point2 *p1, double ao)
int GL_Disp_cv2 (int pnr, Point2 *pta)
int GL_Disp_cv (int pnr, Point *pta)
int GL_DrawSymVX (long *ind, int att, Plane *pln1, int typ, double scale)
void GL_DrawSymV3 (long *ind, int symTyp, int att, Point *pt1, Vector *vc1, double scale)
int GL_Tex_Load (TexBas *tbAct, char *fNam)
int GL_DrawTxtsym (long *ind, int typ, Point *pts, Vector *vc1, int att, double scl)
int GL_DrawTag1 (long *ind, Point *pTxt, Point *pLdr, char *txt, int symTyp, int atta, int attl)
void GL_DrawTxtA (long *ind, int att, Point *P1, char *txt)
int GL_DrawDimrad (long *ind, int att, Dimen *dim1)
int GL_DrawDimdia (long *ind, int att, Dimen *dim1)
int GL_DrawDima (long *ind, int att, Dimen *dim1)
int GL_DrawLdr (long *ind, int att, Dimen *dim1)
int GL_DrawDim3 (long *ind, int att, Dim3 *dim3)
void GL_DrawDimen (long *ind, int att, Dimen *dim1)
int GL_txt__ (int dMod, int bMod, Point *ptx, double txAng, double ay, double az, double scale, char *txt)
int GL_Disp_sq1 (Point *p1, Point *p2)
int GL_txtss ()
int GL_txt_ar2 (int hd, Point2 *ptx, Vector2 *vc)
int GL_txt_ar3 (int hd, Point *ptx, Vector *vcx, Vector *vcy)
int GL_DrawTxtLBG (long *ind, Point *pTxt, Point *pLdr, char *txt, long bNr)
int GL_DrawTxtLG (long *ind, Point *pTxt, Point *pLdr, char *txt)
void GL_DrawTxtG (long *ind, int att, Point *pt1, float size, float ang, char *txt)
int GL_DrawDitto (long *ind, Point *p1, Point *po, long dlNr, long dlInd)
int GL_DrawDitto1 (long *ind, Point *p1, Point *po, double az1, double ay, double az2, double scl, long dlNr, long dlInd)
void GL_DrawDitto2 (long *ind, Point *p1, double az, char mir, Ditto *di)
void GL_DrawModel (long *ind, int att, ModelRef *mdr, ModelBas *mdb)
void GL_Clear ()
void GL_Resize (int w, int h)
void GL_InitModelSize (double NewModSiz, int mode)
int GL_InitCol (int ic)
int GL_Col__ (int ic)
void GL_InitPtAtt (int ithick)
void GL_InitNewAtt (int mode, long Ind)
void GL_InitAttTab ()
void GL_InitAFont ()
void GL_InitGFont ()
int GL_InitGF2 (int ind, int ianz, char mode[], double cx[], double cy[])
void GL_InitSymb ()
int GL_Exit__ ()
int GL_InitInfo ()
void GL_Init__ (int mode, int width, int height)
int GL_alloc__ (long Ind)
int GL_MousePos (Point *pt1)
int GL_SelVert__ (Point *pts)
int GL_SelVert_scan (int size, float *buffer)
int GL_SelVert_aux (int mode, float *ptf)
int GL_GetColorBits ()
double GL_query_ViewZ ()
double GL_get_Scale ()
int GL_Tex_Del (int ii)
int GL_config_test ()

Variables

DL_AttGR_ObjTab
long GR_TAB_IND
GR_Att GR_AttTab [GR_ATT_TAB_SIZ]
ObjAttGA_ObjTab
int GA_recNr
int UI_InpMode
AP_STAT AP_stat
 progress of Start
int WC_modnr
 the Nr of the active submodel; -1 = main.
int WC_mod_stat
 -1=primary Model is active;
Plane WC_sur_act
 die fuer Definition (zB P10=0,0) aktive Plane
double WC_sur_Z
 active Z-value of WC_sur_sur;
int WC_sur_ind
 Der Index auf die ActiveConstrPlane.
Mat_4x3 WC_sur_mat
 TrMat of ActiveConstrPlane.
Mat_4x3 WC_sur_imat
 inverse TrMat of ActiveConstrPlane
int WC_stat_bound
 ON OFF; Draw boundary of Flächen J/N.
double AP_txsiz
 Notes-Defaultsize.
double AP_txdimsiz
 Dimensions-Text-Defaultsize.
double GR_tx_ldExt
double GR_tx_ardx
double GR_tx_ardy
double GR_tx_ardp
double GR_tx_chw
double GR_tx_chh
int GR_tx_nkNr
PointGLT_pta
long GLT_pta_SIZ
int TSU_mode
int APT_dispSOL
static unsigned long * GL_IndTab
long GL_TAB_SIZ = 0
long GL_TAB_INC = 5000
int GL_modified = 0
static GLfloat GL_light_2si [4] = {0.0f, 0.0f, 0.0f, 1.0f}
static GLfloat GL_light_amb [4] = {0.7f, 0.7f, 0.7f, 1.0f}
static GLfloat GL_light_dif [4] = {0.7f, 0.7f, 0.7f, 1.0f}
static GLfloat GL_light_spc [4] = {0.7f, 0.7f, 0.7f, 1.0f}
static GLfloat GL_mod_amb [] = {0.1f, 0.1f, 0.1f, 1.0f}
static GLfloat GL_mat_spec [4] = {0.3f, 0.3f, 0.3f, 1.0f}
static GLfloat GL_mat_hili [] = {0.8f, 0.8f, 0.8f, 1.0f}
static GLfloat GL_local_view [] = { 0.0f}
static GLfloat GL_light0_pos [4] = {0.0, 20.0, 0.0, 1.0}
static GLfloat GL_light1_pos [4] = { 0.3f, 0.3f, 0.3f, 0.5f}
static GLfloat GL_light0_spo [4] = { 0.3f, 0.3f, 0.3f, 0.0f}
static GLfloat GLcol_t1 [] = {1.0, 1.0, 0.0, 1.0}
static GLfloat GLcol_black [] = {0.0, 0.0, 0.0, 0.0}
static GLfloat GL_diff1 [] = {0.6, 0.6, 0.6, 1.0}
static GLfloat GL_amb1 [] = {0.8, 0.8, 0.8, 1.0}
static GLint LtypTab1 [] = { 1, 3, 1, 2}
static GLushort LtypTab2 [] = {0xFFFF, 16377, 0x0FFF, 0x0FFF}
static GLfloat GL_col_tab [COL_ANZ][4]
static GLfloat GL_col_bg [4] = {0.4, 0.4, 0.4, 1.0}
static GLfloat GL_col_be [4] = {0.6, 0.4, 0.4, 1.0}
static ColRGB GL_defCol
ColRGB GL_actCol
static unsigned char GL_transpTab [4] = { 254, 254, 32, 32}
static int GL_stat_blend = 0
static double GL_Scr_Siz_X
static double GL_Scr_Siz_Y
static double GL_Svfakt
static double GL_Scale = 1.0
static double GL_Scale_back = 1.0
static Plane GL_constr_pln
static Plane GL_view_pln
static Point GL_cen = {0., 0., 0.}
 GL_cen: centerpoint of the Viewport (in UserCoords).
static Vector GL_eyeX = {-200.,-200.,200.}
 GL_eyeX=Sichtlinie Sichtstrahl; from screenCenter to eye;.
static Vector GL_eyeZ = {0.,1.,0.}
double GL_Siz_X
double GL_Siz_Y
double GL_Siz_Z
static GLdouble GL_ModSiz = 500.
static GLdouble GL_ModScale
static double GL_SclNorm = 1.
static double GL_box_X1
static double GL_box_X2
static double GL_box_Y1
static double GL_box_Y2
static int GL_StatRubberBand
static int GL_StatRubberBox
static int GL_mouse_x_act = 0
static int GL_mouse_y_act = 0
static Point GL_actScrPos
 curPos in screenCoords
static Point GL_actUsrPos
 curPos in userCoords on viewPlane
static Point GL_Rubber_Ori
static int GL_Func_Act
 FUNC_Idle|FUNC_Pan|FUNC_RotCen|FUNC_Rot; aus base.
static GLint GL_Viewp [4]
static GLdouble GL_MatMod [16]
static GLdouble GL_MatProj [16]
static int GL_actView = FUNC_ViewTop
static int GL_initMode = 0
static int GL_pickSiz = 8
static int GL_mode_draw_select = GR_MODE_DRAW
static int GL_mode_feed = 0
static int GL_mode_wire_shade = GR_STATE_WIRE
static GLuint DL_Ind_tmp = 1
static GLuint DL_base_font1 = 32
static GLuint DL_Ind_ScBack = 129
static GLuint DL_base_LnAtt = 150
static GLuint DL_base_font2 = 200
static GLuint DL_base_PtAtt = 298
static GLuint DL_Img_ScBack = 299
static GLuint DL_base_mod = 300
static GLuint DL_base__
static int DL_FontOff


Define Documentation

#define SCALE_MAX   1000000.0

#define SCALE_MIN   0.0000001

#define VAL_HUGE   9999999999.9

#define COL_ANZ   15

#define BUF_SIZ   2048

#define DR_BUF_SIZ   1000000

#define DR_BUF_SIZ   1000000


Function Documentation

GLuint GL_fix_DL_ind ( long *  ind  ) 

int GL_Test (  ) 

int GL_selPt ( int *  is,
int *  pSel,
Point spt,
int  ptNr,
Point pTab,
int  iNr,
int *  iTab 
)

int GL_Tex_End (  ) 

int GL_EndList (  ) 

int GL_EndList1 ( int  mode  ) 

int GL_EndList2 (  ) 

void GL_UnHiliObj ( long  ind  ) 

void GL_HiliObj ( long  ind  ) 

void GL_Reframe (  ) 

void GL_Reframe2 (  ) 

void GL_Reframe1 (  ) 

void GL_Translate (  ) 

void GL_Translate1 (  ) 

void GL_Transl_VertP ( Point pt1  ) 

int GL_ScalBack ( double  sc  ) 

int GL_Feedback ( GLint *  size,
GLfloat *  feedBuffer 
)

void GL_Redraw (  ) 

void GL_GetGLMat0 ( void   ) 

int GL_dump_Mat0 (  ) 

void GL_Uk2Sk ( double *  sx,
double *  sy,
double *  sz,
double  ux,
double  uy,
double  uz 
)

void GL_Sk2Uk ( double *  ux,
double *  uy,
double *  uz,
double  sx,
double  sy,
double  sz 
)

int GL_Query_siz ( int *  siz  ) 

void GL_Init0 (  ) 

void GL_Init1 (  ) 

void GL_Init_View (  ) 

void GL_DefineView ( int  mode  ) 

void GL_DefineDisp ( int  mode,
int  mode1 
)

int GL_Regen1 (  ) 

int GL_Del_om ( int  typ,
int  ind,
int  iatt 
)

void GL_Del0 ( long  ind  ) 

int GL_Del1 ( long  ind  ) 

void GL_Delete ( long  ind  ) 

void GL_last_del (  ) 

void GL_temp_Delete ( long  ind  ) 

void GL_temp_delete (  ) 

long GL_GetInd_temp (  ) 

void GL_Start_RubberBox (  ) 

void GL_Stop_RubberX ( double *  siz,
Point ptC 
)

void GL_Do_RubberBox (  ) 

void* GL_Print1 ( int *  iw,
int *  ih 
)

int GL_Select ( int  mode,
int *  typTab,
long *  indTab,
long *  dlTab 
)

int GL_Select2 ( int  mode,
int *  typTab,
long *  indTab,
long *  dlTab,
GLuint  hits,
GLuint *  selectBuf 
)

int GL_tstFuncs ( int  mode  ) 

long GL_GetActInd (  ) 

long GL_Get_DLind (  ) 

int GL_SetViewPln (  ) 

int GL_SetConstrPln (  ) 

int GL_DefColGet ( ColRGB nxtCol  ) 

int GL_DefColSet ( ColRGB nxtCol  ) 

Point GL_GetViewPt ( Point pti  ) 

int GL_GetCurPosSc ( int *  xpos,
int *  ypos 
)

int GL_GetEyeLn ( Point curPos,
Vector eyeVec 
)

Vector GL_GetEyeX (  ) 

int GL_set_viewPlnPos (  ) 

    GL_set_viewPlnPos     save screenCoords & userCoords of selectionPoint
      on viewPlane

int GL_GetActSelPos ( Point posUsr,
Point posScr 
)

    GL_GetActSelPos     Coords of last selectionPoint on viewPlane
      posUsr     userCoords
      posScr     screenCoords

Point GL_GetViewPos (  ) 

    compute cursorPosition in userCoords on GL_view_pln.
    GL_view_pln is the displayPlane; always parallel to X-Y.

Point GL_GetConstrPos (  ) 

    compute cursorPosition in userCoords on constructionPlane

void GL_Do_Idle ( int  x,
int  y 
)

Point GL_GetCen (  ) 

screencenter in userCoords

void GL_Do_CenRot ( double  zval  ) 

void GL_Do_Pan__ ( int  x,
int  y 
)

void GL_Do_Pan ( int  x,
int  y 
)

void GL_Do_Rot ( int  x,
int  y 
)

void GL_Do_Rot__ ( int  x,
int  y 
)

void GL_Do_Rot1 (  ) 

void GL_Do_Scale__ ( int  x,
int  y 
)

void GL_Do_Scale ( int  x,
int  y 
)

int GL_Get_View ( double  view[]  ) 

    get viewport
       0,1,2         GL_eyeX
       3,4,5         GL_cen
       6             GL_Scale
       7,8,9         GL_eyeZ

int GL_Set_View ( double  view[]  ) 

double GL_fix_Scale ( double  sci  ) 

void GL_Set_Scale ( double  Scale  ) 

void GL_Reshape ( int  width,
int  height 
)

int GL_Get_Cen ( Point cen  ) 

screencenter in userCoords

int GL_Set_Cen ( Point Ucen  ) 

int GL_Rescal1 ( Point pb1,
Point pb2,
float *  fa 
)

int GL_Rescal0 ( Point pb1,
Point pb2 
)

int GL_FeedGet ( int *  fsiz,
float **  feedBuffer 
)

void GL_Rescale ( double  Usiz,
Point Ucen 
)

int GL_fix_DL_base ( int  mode  ) 

int GL_DrawLn_Ini ( long *  ind,
int  attInd 
)

int GL_Surf_Ini ( long *  ind,
ColRGB col 
)

int GL_Tex_Ini ( long *  ind,
TexBas tb,
TexRef tr 
)

void GL_Draw_Ini ( long *  ind,
int  attInd 
)

int GL_Draw_Ini1 ( long *  ind,
int  attInd,
int  mode 
)

void GL_DrawPoint ( long *  ind,
int  attInd,
Point pt1 
)

void GL_DrawLine ( long *  ind,
int  attInd,
Line ln1 
)

void GL_Disp_ln ( Point p1,
Point p2 
)

void GL_Disp_ln2 ( Point2 p1,
Point2 p2 
)

void GL_DrawPoly2D ( long *  ind,
int  attInd,
int  ianz,
Point2  pta[],
double  zval 
)

int GL_DrawPolySc ( long *  ind,
int  attInd,
int  ianz,
Point pTab 
)

int GL_DrawCvIpTab ( long *  ind,
int  att,
int *  iba,
int  ibNr,
Point pTab,
int  mode 
)

void GL_DrawPoly ( long *  ind,
int  attInd,
int  ianz,
Point pTab 
)

void GL_DrawRSur ( long *  ind,
int  attInd,
int  ptAnz,
Point pa1,
Point pa2 
)

int GL_orient__ ( int  dir  ) 

int GL_DrawFace ( int  ptNr,
Point pta,
int  ptiNr,
short *  pti,
int  side 
)

int GL_DrawLStrip ( Point pTab,
int  ptAnz 
)

int GL_DrawStrip1 ( Point ps,
Point pa1,
Point pa2,
int  ptAnz 
)

int GL_DrawStrip2 ( Point pa1,
Point pa2,
int  ptAnz,
int  newS 
)

void GL_DrawFan ( Point pt1,
int  ptAnz,
Point pa1,
int  typ,
int  newS 
)

void GL_DrawFtab ( Point pTab,
Fac3 fTab,
int  fNr,
int  styl 
)

int GL_DrawSur ( long *  ind,
int  att,
ObjGX os 
)

int GL_Disp_sur ( ObjGX os  ) 

int GL_ColSet ( ColRGB pCol  ) 

int GL_Disp_face ( int  gTyp,
int  ptNr,
Point pa 
)

int GL_Draw_obj ( long *  dli,
int  att,
ObjGX oxi 
)

int GL_LoadBMP ( long *  ind,
Point p1,
Point p2,
int  ltyp,
double  scl,
char *  symNam 
)

void GL_DrawSymB ( long *  ind,
int  attInd,
int  symTyp,
Point pt1 
)

void GL_DrawSymV ( long *  ind,
int  symTyp,
int  att,
Point pt1,
double  scale 
)

void GL_DrawSymV2 ( long *  ind,
int  symTyp,
int  att,
Point pt1,
Point pt2,
double  scale 
)

int GL_DrawCirSc ( long *  ind,
int  att,
Point ptc,
Vector vc1,
double  ang1 
)

int GL_DrawVc1 ( long *  ind,
int  att,
Point pti,
Vector vc1 
)

void GL_DrawVec ( long *  ind,
int  att,
Point pt1,
Vector vc1 
)

int GL_Disp_vc ( Vector vc1,
Point pt1,
int  att 
)

int GL_Disp_vSym ( int  symTyp,
Point pt1,
Vector vc1,
double  scale,
int  att 
)

int GL_Disp_symV ( int  symTyp,
Point pt1,
double  az,
double  ay,
double  scale 
)

int GL_Disp_symB ( int  symTyp,
Point pt1 
)

int GL_Disp_2D_box1 ( Point p1,
int  sx,
int  sy,
int  dx,
int  dy 
)

int GL_Disp_ci2 ( Point2 pc,
Point2 p1,
double  ao 
)

int GL_Disp_cv2 ( int  pnr,
Point2 pta 
)

int GL_Disp_cv ( int  pnr,
Point pta 
)

int GL_DrawSymVX ( long *  ind,
int  att,
Plane pln1,
int  typ,
double  scale 
)

void GL_DrawSymV3 ( long *  ind,
int  symTyp,
int  att,
Point pt1,
Vector vc1,
double  scale 
)

int GL_Tex_Load ( TexBas tbAct,
char *  fNam 
)

int GL_DrawTxtsym ( long *  ind,
int  typ,
Point pts,
Vector vc1,
int  att,
double  scl 
)

int GL_DrawTag1 ( long *  ind,
Point pTxt,
Point pLdr,
char *  txt,
int  symTyp,
int  atta,
int  attl 
)

void GL_DrawTxtA ( long *  ind,
int  att,
Point P1,
char *  txt 
)

int GL_DrawDimrad ( long *  ind,
int  att,
Dimen dim1 
)

int GL_DrawDimdia ( long *  ind,
int  att,
Dimen dim1 
)

int GL_DrawDima ( long *  ind,
int  att,
Dimen dim1 
)

int GL_DrawLdr ( long *  ind,
int  att,
Dimen dim1 
)

int GL_DrawDim3 ( long *  ind,
int  att,
Dim3 dim3 
)

void GL_DrawDimen ( long *  ind,
int  att,
Dimen dim1 
)

int GL_txt__ ( int  dMod,
int  bMod,
Point ptx,
double  txAng,
double  ay,
double  az,
double  scale,
char *  txt 
)

int GL_Disp_sq1 ( Point p1,
Point p2 
)

int GL_txtss (  ) 

int GL_txt_ar2 ( int  hd,
Point2 ptx,
Vector2 vc 
)

int GL_txt_ar3 ( int  hd,
Point ptx,
Vector vcx,
Vector vcy 
)

int GL_DrawTxtLBG ( long *  ind,
Point pTxt,
Point pLdr,
char *  txt,
long  bNr 
)

int GL_DrawTxtLG ( long *  ind,
Point pTxt,
Point pLdr,
char *  txt 
)

void GL_DrawTxtG ( long *  ind,
int  att,
Point pt1,
float  size,
float  ang,
char *  txt 
)

int GL_DrawDitto ( long *  ind,
Point p1,
Point po,
long  dlNr,
long  dlInd 
)

int GL_DrawDitto1 ( long *  ind,
Point p1,
Point po,
double  az1,
double  ay,
double  az2,
double  scl,
long  dlNr,
long  dlInd 
)

void GL_DrawDitto2 ( long *  ind,
Point p1,
double  az,
char  mir,
Ditto di 
)

void GL_DrawModel ( long *  ind,
int  att,
ModelRef mdr,
ModelBas mdb 
)

void GL_Clear (  ) 

void GL_Resize ( int  w,
int  h 
)

void GL_InitModelSize ( double  NewModSiz,
int  mode 
)

int GL_InitCol ( int  ic  ) 

int GL_Col__ ( int  ic  ) 

void GL_InitPtAtt ( int  ithick  ) 

void GL_InitNewAtt ( int  mode,
long  Ind 
)

void GL_InitAttTab (  ) 

void GL_InitAFont (  ) 

void GL_InitGFont (  ) 

int GL_InitGF2 ( int  ind,
int  ianz,
char  mode[],
double  cx[],
double  cy[] 
)

void GL_InitSymb (  ) 

int GL_Exit__ (  ) 

int GL_InitInfo (  ) 

void GL_Init__ ( int  mode,
int  width,
int  height 
)

int GL_alloc__ ( long  Ind  ) 

int GL_MousePos ( Point pt1  ) 

int GL_SelVert__ ( Point pts  ) 

int GL_SelVert_scan ( int  size,
float *  buffer 
)

int GL_SelVert_aux ( int  mode,
float *  ptf 
)

int GL_GetColorBits (  ) 

GL_GetColorBits returns Nr of ColorBits (usually 24)

double GL_query_ViewZ (  ) 

double GL_get_Scale (  ) 

int GL_Tex_Del ( int  ii  ) 

GL_Tex_Del delete OpenGL-texture

int GL_config_test (  ) 

see also GL_GetColorBits Retcod: 0=no, hardware does not accept textures; 1=Yes, Ok.


Variable Documentation

long GR_TAB_IND

GR_Att GR_AttTab[GR_ATT_TAB_SIZ]

int GA_recNr

progress of Start

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

   1 starting
   2 voll initialisert.
  65 Batch, else interaktiv.

int WC_modnr

the Nr of the active submodel; -1 = main.

-1=primary Model is active;

die fuer Definition (zB P10=0,0) aktive Plane

die aktive Plane

double WC_sur_Z

active Z-value of WC_sur_sur;

Der Index auf die ActiveConstrPlane.

Index auf die ActiveConstrPlane.

TrMat of ActiveConstrPlane.

inverse TrMat of ActiveConstrPlane

ON OFF; Draw boundary of Flächen J/N.

double AP_txsiz

Notes-Defaultsize.

double AP_txdimsiz

Dimensions-Text-Defaultsize.

Dimensions-Text-size.

double GR_tx_ldExt

double GR_tx_ardx

double GR_tx_ardy

double GR_tx_ardp

double GR_tx_chw

double GR_tx_chh

int TSU_mode

unsigned long* GL_IndTab [static]

long GL_TAB_SIZ = 0

long GL_TAB_INC = 5000

int GL_modified = 0

GLfloat GL_light_2si[4] = {0.0f, 0.0f, 0.0f, 1.0f} [static]

GLfloat GL_light_amb[4] = {0.7f, 0.7f, 0.7f, 1.0f} [static]

GLfloat GL_light_dif[4] = {0.7f, 0.7f, 0.7f, 1.0f} [static]

GLfloat GL_light_spc[4] = {0.7f, 0.7f, 0.7f, 1.0f} [static]

GLfloat GL_mod_amb[] = {0.1f, 0.1f, 0.1f, 1.0f} [static]

GLfloat GL_mat_spec[4] = {0.3f, 0.3f, 0.3f, 1.0f} [static]

GLfloat GL_mat_hili[] = {0.8f, 0.8f, 0.8f, 1.0f} [static]

GLfloat GL_local_view[] = { 0.0f} [static]

GLfloat GL_light0_pos[4] = {0.0, 20.0, 0.0, 1.0} [static]

GLfloat GL_light1_pos[4] = { 0.3f, 0.3f, 0.3f, 0.5f} [static]

GLfloat GL_light0_spo[4] = { 0.3f, 0.3f, 0.3f, 0.0f} [static]

GLfloat GLcol_t1[] = {1.0, 1.0, 0.0, 1.0} [static]

GLfloat GLcol_black[] = {0.0, 0.0, 0.0, 0.0} [static]

GLfloat GL_diff1[] = {0.6, 0.6, 0.6, 1.0} [static]

GLfloat GL_amb1[] = {0.8, 0.8, 0.8, 1.0} [static]

GLint LtypTab1[] = { 1, 3, 1, 2} [static]

GLushort LtypTab2[] = {0xFFFF, 16377, 0x0FFF, 0x0FFF} [static]

GLfloat GL_col_tab[COL_ANZ][4] [static]

Initial value:

 {
  0.0,  0.0,  0.0, 1.0,     
  0.1,  0.1,  0.6, 1.0,     
  1.0,  0.0,  0.0, 1.0,     
  0.0,  1.0,  0.0, 1.0,     
  0.0,  0.0,  1.0, 1.0,     
  1.0,  1.0,  0.0, 1.0,     
  1.0,  0.0,  1.0, 1.0,     
  0.0,  1.0,  1.0, 1.0,     
  1.0,  1.0,  1.0, 1.0,     
  0.8,  0.2,  0.2, 1.0,     
  0.6,  0.7,  0.7, 1.0,     
  
  0.65, 0.5,  0.5, 1.0,     
  
  0.88, 0.88, 0.95,1.0,     
  0.65, 0.65, 0.65,1.0,     
  0.65, 0.15, 0.15,1.0}

GLfloat GL_col_bg[4] = {0.4, 0.4, 0.4, 1.0} [static]

GLfloat GL_col_be[4] = {0.6, 0.4, 0.4, 1.0} [static]

ColRGB GL_defCol [static]

unsigned char GL_transpTab[4] = { 254, 254, 32, 32} [static]

int GL_stat_blend = 0 [static]

double GL_Scr_Siz_X [static]

double GL_Scr_Siz_Y [static]

double GL_Svfakt [static]

double GL_Scale = 1.0 [static]

double GL_Scale_back = 1.0 [static]

Plane GL_constr_pln [static]

Plane GL_view_pln [static]

Viewplane (active displayplane with the GL-RotationCenterpoint GL_cen) Always parall. to X-Y-Plane.

Point GL_cen = {0., 0., 0.} [static]

GL_cen: centerpoint of the Viewport (in UserCoords).

Vector GL_eyeX = {-200.,-200.,200.} [static]

GL_eyeX=Sichtlinie Sichtstrahl; from screenCenter to eye;.

Vector GL_eyeZ = {0.,1.,0.} [static]

double GL_Siz_X

double GL_Siz_Y

double GL_Siz_Z

GLdouble GL_ModSiz = 500. [static]

GLdouble GL_ModScale [static]

double GL_SclNorm = 1. [static]

double GL_box_X1 [static]

double GL_box_X2 [static]

double GL_box_Y1 [static]

double GL_box_Y2 [static]

int GL_StatRubberBand [static]

int GL_StatRubberBox [static]

int GL_mouse_x_act = 0 [static]

int GL_mouse_y_act = 0 [static]

Point GL_actScrPos [static]

curPos in screenCoords

Point GL_actUsrPos [static]

curPos in userCoords on viewPlane

Point GL_Rubber_Ori [static]

int GL_Func_Act [static]

FUNC_Idle|FUNC_Pan|FUNC_RotCen|FUNC_Rot; aus base.

GLint GL_Viewp[4] [static]

GLdouble GL_MatMod[16] [static]

GLdouble GL_MatProj[16] [static]

int GL_actView = FUNC_ViewTop [static]

int GL_initMode = 0 [static]

int GL_pickSiz = 8 [static]

int GL_mode_draw_select = GR_MODE_DRAW [static]

int GL_mode_feed = 0 [static]

int GL_mode_wire_shade = GR_STATE_WIRE [static]

GLuint DL_Ind_tmp = 1 [static]

GLuint DL_base_font1 = 32 [static]

GLuint DL_Ind_ScBack = 129 [static]

GLuint DL_base_LnAtt = 150 [static]

GLuint DL_base_font2 = 200 [static]

GLuint DL_base_PtAtt = 298 [static]

GLuint DL_Img_ScBack = 299 [static]

GLuint DL_base_mod = 300 [static]

GLuint DL_base__ [static]

int DL_FontOff [static]


Generated on Sat May 30 09:31:55 2009 for gCAD3D by  doxygen 1.5.6