git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1187
7f0cb862-5218-0410-a997-
914c9d46530a
- fghChooseConfigEGL(&window->Window.pContext.egl.Config);
+ fghChooseConfig(&window->Window.pContext.egl.Config);
window->Window.Context = fghCreateNewContextEGL(window);
/* Wait until window is available and OpenGL context is created */
window->Window.Context = fghCreateNewContextEGL(window);
/* Wait until window is available and OpenGL context is created */
/* I do not know yet if there will be a fgChooseVisual() function for Win32 */
case GLUT_DISPLAY_MODE_POSSIBLE:
{
/* I do not know yet if there will be a fgChooseVisual() function for Win32 */
case GLUT_DISPLAY_MODE_POSSIBLE:
{
- /* We should not have to call fgPlatformChooseFBConfig again here. */
+ /* We should not have to call fghChooseConfig again here. */
- return fghChooseConfigEGL(&config);
+ return fghChooseConfig(&config);
}
/* This is system-dependant */
}
/* This is system-dependant */
#include <GL/freeglut.h>
#include "fg_internal.h"
#include <GL/freeglut.h>
#include "fg_internal.h"
-int fghChooseConfigEGL(EGLConfig* config) {
+int fghChooseConfig(EGLConfig* config) {
const EGLint attribs[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
#ifdef GL_ES_VERSION_2_0
const EGLint attribs[] = {
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
#ifdef GL_ES_VERSION_2_0
#ifndef __FG_WINDOW_EGL_H__
#define __FG_WINDOW_EGL_H__
#ifndef __FG_WINDOW_EGL_H__
#define __FG_WINDOW_EGL_H__
-extern int fghChooseConfigEGL(EGLConfig* config);
+extern int fghChooseConfig(EGLConfig* config);
extern void fghPlatformOpenWindowEGL( SFG_Window* window );
extern EGLConfig fghCreateNewContextEGL( SFG_Window* window );
extern void fghPlatformCloseWindowEGL( SFG_Window* window );
extern void fghPlatformOpenWindowEGL( SFG_Window* window );
extern EGLConfig fghCreateNewContextEGL( SFG_Window* window );
extern void fghPlatformCloseWindowEGL( SFG_Window* window );