Query a 3D configuration
#include <gf3d.h>
int gf_3d_query_config( gf_3d_config_info_t* info,
gf_dev_t dev,
EGLDisplay display,
EGLConfig cfg );
- info
- A pointer to a gf_3d_config_info_t structure that the function fills with information about the attributes required to create a GF surface for a 3D configuration. See below.
- dev
- The handle for the graphics device to query. This is the handle acquired by gf_dev_attach().
- display
- The EGL display you want to query.
- cfg
- The EGLConfig ID you want to query. You can select the EGLConfig ID from a list returned by eglChooseConfig().
gf
This function lets you translate EGL configuration attributes into GF
attributes. This lets you create a GF surface that can render 3D content. For a given EGL configuration, you can find out:
- The gf_format_t of the color buffer: info->format.
- The flags you should OR into the flags
argument of gf_surface_create_*() to make sure the
allocated surface is 3D renderable: info->create_flags.
- GF_ERR_OK
- Success.
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
gf_3d_target_create(),
gf_3d_target_free()
“Pixmap surfaces” in the Using OpenGL ES and OpenVG chapter