Defines | Functions | Variables

xgledit.h File Reference

#include <limits.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include "pkvaria.h"
#include "pknum.h"
#include "pkgeom.h"
#include "camera.h"
#include "xgedit.h"
#include "xglergb.h"
Include dependency graph for xgledit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define xgleCopyGLRect(w, h, x, y)   XCopyArea(xgedisplay,xglepixmap,xgepixmap,xgegc,0,xge_MAX_HEIGHT-h,w,h,x,y)
#define xgleClearColor3fv(rgb)   glClearColor(rgb[0],rgb[1],rgb[2],1.0)

Functions

void xgle_Init (int argc, char *argv[], int(*callback)(xge_widget *, int, int, short, short), char *title, boolean depth, boolean accum, boolean stencil)
void xgle_Cleanup (void)
void xgle_SetIdentMapping (xge_widget *er)
boolean xgle_SetGLCameraf (CameraRecf *CPos)
boolean xgle_SetGLCamerad (CameraRecd *CPos)
boolean xgle_SetGLaccCameraf (CameraRecf *CPos, float pixdx, float pixdy, float eyedx, float eyedy, float focus)
boolean xgle_SetGLaccCamerad (CameraRecd *CPos, double pixdx, double pixdy, double eyedx, double eyedy, double focus)
void xgle_MultMatrix3f (trans3f *tr)
void xgle_MultMatrix3d (trans3d *tr)
void xgleDrawPoint (int x, int y)
void xgleDrawPoints (int n, XPoint *p)
void xgleDrawLine (int x0, int y0, int x1, int y1)
void xgleDrawRectangle (int w, int h, int x, int y)
void xgleDrawString (char *string, int x, int y)
void xgle_DrawGeomWinBackground (xge_widget *er, GLbitfield mask)
void xgle_2DwinfDrawCursorPos (xge_2Dwinf *_2Dwin, short x, short y)
void xgle_2DwinfDrawAxes (xge_2Dwinf *_2Dwin)
void xgle_2DwindDrawCursorPos (xge_2Dwind *_2Dwin, short x, short y)
void xgle_2DwindDrawAxes (xge_2Dwind *_2Dwin)
void xgle_3DwinfDrawCursorPos (xge_3Dwinf *_3Dwin, int id, short x, short y)
void xgle_3DwindDrawCursorPos (xge_3Dwind *_3Dwin, int id, short x, short y)
void xgle_T2KnotWinfDrawCursorPos (xge_T2KnotWinf *T2win, short x, short y)
void xgle_T2KnotWindDrawCursorPos (xge_T2KnotWind *T2win, short x, short y)

Variables

Pixmap xglepixmap
XID _xglepixmap
void * xglecontext
GLfloat xgle_palette [XGLE_PALETTE_LENGTH][3]

Define Documentation

#define xgleClearColor3fv (   rgb  )     glClearColor(rgb[0],rgb[1],rgb[2],1.0)
#define xgleCopyGLRect (   w,
  h,
  x,
  y 
)    XCopyArea(xgedisplay,xglepixmap,xgepixmap,xgegc,0,xge_MAX_HEIGHT-h,w,h,x,y)

Function Documentation

void xgle_2DwindDrawAxes ( xge_2Dwind _2Dwin  ) 
void xgle_2DwindDrawCursorPos ( xge_2Dwind _2Dwin,
short  x,
short  y 
)
void xgle_2DwinfDrawAxes ( xge_2Dwinf _2Dwin  ) 
void xgle_2DwinfDrawCursorPos ( xge_2Dwinf _2Dwin,
short  x,
short  y 
)
void xgle_3DwindDrawCursorPos ( xge_3Dwind _3Dwin,
int  id,
short  x,
short  y 
)
void xgle_3DwinfDrawCursorPos ( xge_3Dwinf _3Dwin,
int  id,
short  x,
short  y 
)
void xgle_Cleanup ( void   ) 
void xgle_DrawGeomWinBackground ( xge_widget er,
GLbitfield  mask 
)
void xgle_Init ( int  argc,
char *  argv[],
int(*)(xge_widget *, int, int, short, short)  callback,
char *  title,
boolean  depth,
boolean  accum,
boolean  stencil 
)
void xgle_MultMatrix3d ( trans3d tr  ) 
void xgle_MultMatrix3f ( trans3f tr  ) 
boolean xgle_SetGLaccCamerad ( CameraRecd CPos,
double  pixdx,
double  pixdy,
double  eyedx,
double  eyedy,
double  focus 
)
boolean xgle_SetGLaccCameraf ( CameraRecf CPos,
float  pixdx,
float  pixdy,
float  eyedx,
float  eyedy,
float  focus 
)
boolean xgle_SetGLCamerad ( CameraRecd CPos  ) 
boolean xgle_SetGLCameraf ( CameraRecf CPos  ) 
void xgle_SetIdentMapping ( xge_widget er  ) 
void xgle_T2KnotWindDrawCursorPos ( xge_T2KnotWind T2win,
short  x,
short  y 
)
void xgle_T2KnotWinfDrawCursorPos ( xge_T2KnotWinf T2win,
short  x,
short  y 
)
void xgleDrawLine ( int  x0,
int  y0,
int  x1,
int  y1 
)
void xgleDrawPoint ( int  x,
int  y 
)
void xgleDrawPoints ( int  n,
XPoint *  p 
)
void xgleDrawRectangle ( int  w,
int  h,
int  x,
int  y 
)
void xgleDrawString ( char *  string,
int  x,
int  y 
)

Variable Documentation

GLfloat xgle_palette[XGLE_PALETTE_LENGTH][3]
void* xglecontext
Pixmap xglepixmap