Ticket #29: patch

File patch, 1.3 kB (added by naryl, 9 months ago)

patch to dsss.conf and SimpleGL.d to make it buildable

  • dsss.conf

    old new  
    1414        buildflags+=-lladvapi32 
    1515} 
    1616 
     17[SimpleGL.d] 
     18type = binary 
     19target = simpleGL 
     20buildflags = -I../ -no-export-dynamic 
     21version(linux) { 
     22buildflags += -L-lGL -L-lGLU -L-ldl 
     23} 
     24version(Windows){ 
     25        prebuild=warn Windows support is untested. 
     26        buildflags+=-lladvapi32 
     27} 
     28 
  • SimpleGL.d

    old new  
    6666     * put any gl initializations here 
    6767     * returns true to consume the event 
    6868     */ 
    69     bit initGL() 
     69    bool initGL() 
    7070    { 
    7171        resizeGL(null); 
    7272        return true; 
     
    7979     * to force redrawing of the scene. 
    8080     * returns true to consume the event 
    8181     */ 
    82     bit drawGL(GdkEventExpose* event = null) 
     82    bool drawGL(GdkEventExpose* event = null) 
    8383    { 
    8484        glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
    8585        glLoadIdentity (); 
     
    103103     * This method is called when the window is resized 
    104104     * returns true to consume the event 
    105105     */ 
    106     bit resizeGL(GdkEventConfigure* event = null) 
     106    bool resizeGL(GdkEventConfigure* event = null) 
    107107    { 
    108108        GLfloat w; 
    109109        GLfloat h;