Lines Matching refs:conf
80 _EGLConfig *conf, void *native_window, const EGLint *attrib_list)
92 conf, attrib_list, native_window)) {
117 _EGLConfig *conf, void *native_pixmap, const EGLint *attrib_list)
125 _EGLConfig *conf, const EGLint *attrib_list)
147 struct haiku_egl_config* conf;
148 conf = (struct haiku_egl_config*) calloc(1, sizeof (*conf));
149 if (!conf)
152 _eglInitConfig(&conf->base, disp, 1);
155 conf->base.RedSize = 8;
156 conf->base.BlueSize = 8;
157 conf->base.GreenSize = 8;
158 conf->base.LuminanceSize = 0;
159 conf->base.AlphaSize = 8;
160 conf->base.ColorBufferType = EGL_RGB_BUFFER;
161 conf->base.BufferSize = conf->base.RedSize
162 + conf->base.GreenSize
163 + conf->base.BlueSize
164 + conf->base.AlphaSize;
165 conf->base.ConfigCaveat = EGL_NONE;
166 conf->base.ConfigID = 1;
167 conf->base.BindToTextureRGB = EGL_FALSE;
168 conf->base.BindToTextureRGBA = EGL_FALSE;
169 conf->base.StencilSize = 0;
170 conf->base.TransparentType = EGL_NONE;
171 conf->base.NativeRenderable = EGL_TRUE; // Let's say yes
172 conf->base.NativeVisualID = 0; // No visual
173 conf->base.NativeVisualType = EGL_NONE; // No visual
174 conf->base.RenderableType = 0x8;
175 conf->base.SampleBuffers = 0; // TODO: How to get the right value ?
176 conf->base.Samples = conf->base.SampleBuffers == 0 ? 0 : 0;
177 conf->base.DepthSize = 24; // TODO: How to get the right value ?
178 conf->base.Level = 0;
179 conf->base.MaxPbufferWidth = 0; // TODO: How to get the right value ?
180 conf->base.MaxPbufferHeight = 0; // TODO: How to get the right value ?
181 conf->base.MaxPbufferPixels = 0; // TODO: How to get the right value ?
182 conf->base.SurfaceType = EGL_WINDOW_BIT /*| EGL_PIXMAP_BIT | EGL_PBUFFER_BIT*/;
185 if (!_eglValidateConfig(&conf->base, EGL_FALSE)) {
191 _eglLinkConfig(&conf->base);
201 free(conf);
240 haiku_create_context(_EGLDisplay *disp, _EGLConfig *conf,
252 if (!_eglInitContext(&context->ctx, disp, conf, attrib_list))