Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
OpenGLArea.h File Reference
#include <X11/Intrinsic.h>

Go to the source code of this file.

Classes

struct  XoAnyCallbackStruct
 

Macros

#define XoNdoubleBufferOn   "doubleBufferOn"
 
#define XoNpaintCallback   "paintCallback"
 
#define XoNeventCallback   "eventCallback"
 
#define XoCR_PAINT   1
 
#define XoCR_EVENT   2
 

Typedefs

typedef struct _OpenGLAreaClassRecOpenGLAreaWidgetClass
 
typedef struct _OpenGLAreaRecOpenGLAreaWidget
 

Functions

void OpenGLAreaPaint (Widget)
 
int OpenGLAreaWrite_gl2ps (Widget, const char *, const char *)
 

Variables

WidgetClass openGLAreaWidgetClass
 

Macro Definition Documentation

◆ XoCR_EVENT

#define XoCR_EVENT   2

Definition at line 20 of file OpenGLArea.h.

◆ XoCR_PAINT

#define XoCR_PAINT   1

Definition at line 19 of file OpenGLArea.h.

◆ XoNdoubleBufferOn

#define XoNdoubleBufferOn   "doubleBufferOn"

Definition at line 15 of file OpenGLArea.h.

◆ XoNeventCallback

#define XoNeventCallback   "eventCallback"

Definition at line 17 of file OpenGLArea.h.

◆ XoNpaintCallback

#define XoNpaintCallback   "paintCallback"

Definition at line 16 of file OpenGLArea.h.

Typedef Documentation

◆ OpenGLAreaWidget

Definition at line 7 of file OpenGLArea.h.

◆ OpenGLAreaWidgetClass

Definition at line 6 of file OpenGLArea.h.

Function Documentation

◆ OpenGLAreaPaint()

void OpenGLAreaPaint ( Widget  This)

Definition at line 317 of file OpenGLArea.c.

317 {
318 if(!XtIsRealized(This)) return;
319 if(MakeCurrent(This)==1) {
321 value.reason = XoCR_PAINT;
322 value.event = 0;
323 XtCallCallbacks(This,XoNpaintCallback,(XtPointer)&value);
324 glXSwapBuffers(XtDisplay(This),XtWindow(This));
325 glXMakeCurrent(XtDisplay(This),None,NULL);
326 }
327}
#define XoCR_PAINT
Definition: OpenGLArea.h:19
#define XoNpaintCallback
Definition: OpenGLArea.h:16

◆ OpenGLAreaWrite_gl2ps()

int OpenGLAreaWrite_gl2ps ( Widget  w,
const char *  f,
const char *  o 
)

Definition at line 392 of file OpenGLArea.c.

392{return 1;}

Variable Documentation

◆ openGLAreaWidgetClass

WidgetClass openGLAreaWidgetClass
extern

Definition at line 100 of file OpenGLArea.c.