Moving some function prototypes into the source files where they are found and out of the "freeglut_internal.h" file
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1001 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
d36338f9f1
commit
00b83f5488
@ -852,20 +852,6 @@ void fgDeinitialize( void );
|
||||
void fgCreateStructure( void );
|
||||
void fgDestroyStructure( void );
|
||||
|
||||
/* A helper function to check if a display mode is possible to use */
|
||||
#if TARGET_HOST_POSIX_X11
|
||||
GLXFBConfig* fgChooseFBConfig( int* numcfgs );
|
||||
#endif
|
||||
|
||||
/* The window procedure for Win32 events handling */
|
||||
#if TARGET_HOST_MS_WINDOWS
|
||||
LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg,
|
||||
WPARAM wParam, LPARAM lParam );
|
||||
void fgNewWGLCreateContext( SFG_Window* window );
|
||||
GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly,
|
||||
unsigned char layer_type );
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Window creation, opening, closing and destruction.
|
||||
* Also CallBack clearing/initialization.
|
||||
|
@ -45,6 +45,12 @@ extern int fgPlatformGlutGet ( GLenum eWhat );
|
||||
extern int fgPlatformGlutDeviceGet ( GLenum eWhat );
|
||||
extern int fgPlatformGlutLayerGet ( GLenum eWhat );
|
||||
|
||||
/* A helper function to check if a display mode is possible to use */
|
||||
#if TARGET_HOST_POSIX_X11
|
||||
GLXFBConfig* fgChooseFBConfig( int* numcfgs );
|
||||
#endif
|
||||
|
||||
|
||||
/* -- LOCAL DEFINITIONS ---------------------------------------------------- */
|
||||
|
||||
/* -- PRIVATE FUNCTIONS ---------------------------------------------------- */
|
||||
|
@ -29,6 +29,11 @@
|
||||
#include "freeglut_internal_mswin.h"
|
||||
|
||||
|
||||
|
||||
extern LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg,
|
||||
WPARAM wParam, LPARAM lParam );
|
||||
|
||||
|
||||
/*
|
||||
* A call to this function should initialize all the display stuff...
|
||||
*/
|
||||
|
@ -31,6 +31,11 @@
|
||||
|
||||
extern void fghRedrawWindow ( SFG_Window *window );
|
||||
|
||||
extern void fgNewWGLCreateContext( SFG_Window* window );
|
||||
extern GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly,
|
||||
unsigned char layer_type );
|
||||
|
||||
|
||||
|
||||
void fgPlatformReshapeWindow ( SFG_Window *window, int width, int height )
|
||||
{
|
||||
|
@ -29,6 +29,9 @@
|
||||
#include "freeglut_internal_mswin.h"
|
||||
|
||||
|
||||
extern GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly,
|
||||
unsigned char layer_type );
|
||||
|
||||
|
||||
/* The following include file is available from SGI but is not standard:
|
||||
* #include <GL/wglext.h>
|
||||
|
Reference in New Issue
Block a user