Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Implemented multi-window OpenGL program with test framework.

  • Loading branch information
slouken committed Jul 19, 2006
1 parent 7a885aa commit b60e8d8c5ef8132b7d0202f0b59d11ba6dbff041
Showing with 233 additions and 679 deletions.
  1. +4 −0 src/events/SDL_windowevents.c
  2. +2 −2 test/Makefile.in
  3. +222 −672 test/testgl2.c
  4. +5 −5 test/testsprite2.c
@@ -60,6 +60,8 @@ SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
if (data1 == window->x && data2 == window->y) {
return 0;
}
window->x = data1;
window->y = data2;
break;
case SDL_WINDOWEVENT_RESIZED:
if (window->flags & SDL_WINDOW_FULLSCREEN) {
@@ -68,6 +70,8 @@ SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
if (data1 == window->w && data2 == window->h) {
return 0;
}
window->w = data1;
window->h = data2;
break;
case SDL_WINDOWEVENT_MINIMIZED:
if (window->flags & SDL_WINDOW_MINIMIZED) {
@@ -53,8 +53,8 @@ testgamma$(EXE): $(srcdir)/testgamma.c
testgl$(EXE): $(srcdir)/testgl.c
$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@

testgl2$(EXE): $(srcdir)/testgl2.c
$(CC) -o $@ $? $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@
testgl2$(EXE): $(srcdir)/testgl2.c $(srcdir)/common.c
$(CC) -o $@ $(srcdir)/testgl2.c $(srcdir)/common.c $(CFLAGS) $(LIBS) @GLLIB@ @MATHLIB@

testhread$(EXE): $(srcdir)/testhread.c
$(CC) -o $@ $? $(CFLAGS) $(LIBS)

0 comments on commit b60e8d8

Please sign in to comment.