Skip to content

Commit 60f59ee

Browse files
committed
Added possibility to pass surface attribute list. This allows e.g. to
create a single buffered windows surface.
1 parent ca9300e commit 60f59ee

File tree

51 files changed

+88
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+88
-51
lines changed

Example01/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ int main(int argc, char* argv[])
8686

8787
glusWindowSetTerminateFunc(terminate);
8888

89-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
89+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
9090
{
9191
printf("Could not create window!\n");
9292
return -1;

Example02/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ int main(int argc, char* argv[])
155155

156156
glusWindowSetTerminateFunc(terminate);
157157

158-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
158+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
159159
{
160160
printf("Could not create window!\n");
161161
return -1;

Example03/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ int main(int argc, char* argv[])
284284

285285
glusWindowSetTerminateFunc(terminate);
286286

287-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
287+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
288288
{
289289
printf("Could not create window!\n");
290290
return -1;

Example04/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ int main(int argc, char* argv[])
262262

263263
glusWindowSetTerminateFunc(terminate);
264264

265-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
265+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
266266
{
267267
printf("Could not create window!\n");
268268
return -1;

Example05/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ int main(int argc, char* argv[])
311311

312312
glusWindowSetTerminateFunc(terminate);
313313

314-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
314+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
315315
{
316316
printf("Could not create window!\n");
317317
return -1;

Example06/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ int main(int argc, char* argv[])
309309

310310
glusWindowSetTerminateFunc(terminate);
311311

312-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
312+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
313313
{
314314
printf("Could not create window!\n");
315315
return -1;

Example07/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ int main(int argc, char* argv[])
388388

389389
glusWindowSetTerminateFunc(terminate);
390390

391-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
391+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
392392
{
393393
printf("Could not create window!\n");
394394
return -1;

Example08/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ int main(int argc, char* argv[])
327327

328328
glusWindowSetTerminateFunc(terminate);
329329

330-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
330+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
331331
{
332332
printf("Could not create window!\n");
333333
return -1;

Example09/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ int main(int argc, char* argv[])
441441

442442
glusWindowSetTerminateFunc(terminate);
443443

444-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
444+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
445445
{
446446
printf("Could not create window!\n");
447447
return -1;

Example10/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ int main(int argc, char* argv[])
233233

234234
glusWindowSetTerminateFunc(terminate);
235235

236-
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes))
236+
if (!glusWindowCreate("GLUS Example Window", 640, 480, GLUS_FALSE, GLUS_FALSE, eglConfigAttributes, eglContextAttributes, 0))
237237
{
238238
printf("Could not create window!\n");
239239
return -1;

0 commit comments

Comments
 (0)