X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=include%2FGL%2Ffreeglut_internal.h;h=8c46ee0433ef77cbb268e5642b01eeb912a28bb5;hb=3ee42232404c505950f2d616a983a304582e15a7;hp=12a8d37024ee6f15104cd7b6f973e466990312d1;hpb=1813c258e8c562af91e2d823c818e3c1b3ad3c6a;p=freeglut diff --git a/include/GL/freeglut_internal.h b/include/GL/freeglut_internal.h index 12a8d37..8c46ee0 100644 --- a/include/GL/freeglut_internal.h +++ b/include/GL/freeglut_internal.h @@ -212,6 +212,9 @@ struct tagSFG_State FGCBidle IdleCallback; /* The global idle callback */ + FGCBmenuState MenuStateCallback; /* Menu callbacks are global */ + FGCBmenuStatus MenuStatusCallback; + SFG_XYUse GameModeSize; /* The game mode screen's dimensions */ int GameModeDepth; /* The pixel depth for game mode */ int GameModeRefresh; /* The refresh rate for game mode */ @@ -320,27 +323,21 @@ struct tagSFG_WindowCallbacks FGCBdisplay Display; FGCBreshape Reshape; FGCBkeyboard Keyboard; + FGCBkeyboardUp KeyboardUp; FGCBspecial Special; + FGCBspecialUp SpecialUp; FGCBmouse Mouse; FGCBmotion Motion; FGCBpassive Passive; FGCBentry Entry; FGCBvisibility Visibility; FGCBwindowStatus WindowStatus; - - /* - * Those callbacks are required for the initial version - */ - FGCBmenuState MenuState; - FGCBmenuStatus MenuStatus; - FGCBselect Select; FGCBjoystick Joystick; - FGCBkeyboardUp KeyboardUp; - FGCBspecialUp SpecialUp; /* * Those callbacks are being ignored for the moment */ + FGCBselect Select; FGCBoverlayDisplay OverlayDisplay; FGCBspaceMotion SpaceMotion; FGCBspaceRotate SpaceRotation; @@ -446,6 +443,39 @@ struct tagSFG_Font const GLubyte** Characters; /* The characters mapping */ }; +/* + * The stroke font structures + */ + +typedef struct tagSFG_StrokeVertex SFG_StrokeVertex; +struct tagSFG_StrokeVertex +{ + GLfloat X, Y; +}; + +typedef struct tagSFG_StrokeStrip SFG_StrokeStrip; +struct tagSFG_StrokeStrip +{ + int Number; + const SFG_StrokeVertex* Vertices; +}; + +typedef struct tagSFG_StrokeChar SFG_StrokeChar; +struct tagSFG_StrokeChar +{ + GLfloat Right; + int Number; + const SFG_StrokeStrip* Strips; +}; + +typedef struct tagSFG_StrokeFont SFG_StrokeFont; +struct tagSFG_StrokeFont +{ + char* Name; /* The source font name */ + int Quantity; /* Number of chars in font */ + GLfloat Height; /* Height of the characters */ + const SFG_StrokeChar** Characters; /* The characters mapping */ +}; /* -- GLOBAL VARIABLES EXPORTS --------------------------------------------- */