Ticket #29: patch
| File patch, 1.3 kB (added by naryl, 9 months ago) |
|---|
-
dsss.conf
old new 14 14 buildflags+=-lladvapi32 15 15 } 16 16 17 [SimpleGL.d] 18 type = binary 19 target = simpleGL 20 buildflags = -I../ -no-export-dynamic 21 version(linux) { 22 buildflags += -L-lGL -L-lGLU -L-ldl 23 } 24 version(Windows){ 25 prebuild=warn Windows support is untested. 26 buildflags+=-lladvapi32 27 } 28 -
SimpleGL.d
old new 66 66 * put any gl initializations here 67 67 * returns true to consume the event 68 68 */ 69 b itinitGL()69 bool initGL() 70 70 { 71 71 resizeGL(null); 72 72 return true; … … 79 79 * to force redrawing of the scene. 80 80 * returns true to consume the event 81 81 */ 82 b itdrawGL(GdkEventExpose* event = null)82 bool drawGL(GdkEventExpose* event = null) 83 83 { 84 84 glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 85 85 glLoadIdentity (); … … 103 103 * This method is called when the window is resized 104 104 * returns true to consume the event 105 105 */ 106 b itresizeGL(GdkEventConfigure* event = null)106 bool resizeGL(GdkEventConfigure* event = null) 107 107 { 108 108 GLfloat w; 109 109 GLfloat h;
