src/Types.hh
branchnew_graphics
changeset 410 41fd46cffc52
parent 393 5dd4d782cf3a
child 411 106aaf6eadfe
equal deleted inserted replaced
409:1a03ff151abc 410:41fd46cffc52
    28  * A Terrain/Pixel coordinate as a PixelDimension Vector
    28  * A Terrain/Pixel coordinate as a PixelDimension Vector
    29  */
    29  */
    30 typedef VectorType<PixelDimension> PixelCoordinate;
    30 typedef VectorType<PixelDimension> PixelCoordinate;
    31 
    31 
    32 /**
    32 /**
       
    33  * Dimensions of something in pixels
       
    34  */
       
    35 struct PixelDimensions {
       
    36     /** Item width/height */
       
    37     PixelDimension width, height;
       
    38     
       
    39     /** Simple constructor */
       
    40     PixelDimensions (PixelDimension width, PixelDimension height) :
       
    41         width(width), height(height)
       
    42     { }
       
    43 };
       
    44 
       
    45 /**
    33  * A rectangular area of pixels
    46  * A rectangular area of pixels
    34  */
    47  */
    35 struct PixelArea {
    48 struct PixelArea {
    36     PixelDimension left, top, right, bottom;
    49     PixelDimension left, top, right, bottom;
    37 
    50