Changeset 38

Show
Ignore:
Timestamp:
07/09/07 23:07:58 (1 year ago)
Author:
JoeCoder
Message:

Added gui.style

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/yage/core/misc.d

    r32 r38  
    2424 
    2525/** 
    26  * Allow for easy bool-by-bool conversion from one two-byte type to another. 
     26 * Allow for easy bit-by-bit conversion from one two-byte type to another. 
    2727 * Example: 
    2828 * -------------------------------- 
     
    4747} 
    4848 
    49 /// Allow for easy bool-by-bool conversion from one four-byte type to another 
     49/// Allow for easy bit-by-bit conversion from one four-byte type to another 
    5050struct dword 
    5151{   union 
     
    6868} 
    6969 
    70 /// Allow for easy bool-by-bool conversion from one eight-byte type to another. 
     70/// Allow for easy bit-by-bit conversion from one eight-byte type to another. 
    7171union qword 
    7272{   long l;         /// Union of various types. 
  • trunk/src/yage/gui/all.d

    r36 r38  
    11module yage.gui.all; 
    22 
    3 public{ 
     3public { 
     4    import yage.gui.style; 
    45    import yage.gui.surface; 
    56}  
  • trunk/src/yage/gui/surface.d

    r36 r38  
    1111 
    1212class Surface{ 
     13     
     14     
    1315    GPUTexture texture; 
    1416     
     
    6062    void recalculateTexture(){ 
    6163        portion.x = texture.requested_width/cast(float)texture.getWidth(); 
    62  
    6364        portion.y = texture.requested_height/cast(float)texture.getHeight(); 
    6465    } 
  • trunk/src/yage/system/device.d

    r36 r38  
    295295         
    296296        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 
    297         foreach(sub; this.subs) sub.draw(); 
     297        foreach(sub; this.subs) 
     298            sub.draw(); 
    298299 
    299300        SDL_GL_SwapBuffers();