Monday, April 16, 2012

eglInitialize函数用法


eglInitialize():

Name

eglInitialize — initialize an EGL display connection
初始化一个EGL显示连接。


C Specification

EGLBoolean eglInitialize(
EGLDisplay display,

EGLint * major,

EGLint * minor);


Parameters

display
Specifies the EGL display connection to initialize.
指定要初始化的EGL显示连接。
major
Returns the major version number of the EGL implementation. May be NULL.
返回EGL实现的主版本号。可以设为NULL
minor
Returns the minor version number of the EGL implementation. May be NULL.
返回EGL实现的次版本号。可以设为NULL


Description

eglInitialize initialized the EGL display connection obtained with eglGetDisplay. Initializing an already initialized EGL display connection has no effect besides returning the version numbers.
函数初始化由eglGetDisplay()函数得到的EGL显示连接。初始化已经初始化过的EGL显示连接只会返回版本号,无其他操作。


major and minor do not return values if they are specified as NULL.
majorminor被设置为NULL,则不会返回值。


Use eglTerminate to release resources associated with an EGL display connection.
使用eglTerminate()来释放一个EGL显示连接关联的资源。


Errors

EGL_FALSE is returned if eglInitialize fails, EGL_TRUE otherwise. major and minor are not modified when EGL_FALSE is returned.
若初始化失败,则返回EGL_FALSE,否则返回EGL_TRUE。当返回EGL_FALSE时,不会修改majorminor的值。


EGL_BAD_DISPLAY is generated if display is not an EGL display connection.
display不是一个EGL显示连接,那么将会生成EGL_BAD_DISPLAY错误。


EGL_NOT_INITIALIZED is generated if display cannot be initialized.
display无法初始化,则会生成EGL_NOT_INITIALIZED错误。


See Also

eglGetDisplay, eglTerminate


Copyright

Copyright © 2003-2004 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, seehttp://oss.sgi.com/projects/FreeB/.

No comments:

Post a Comment