Changeset 534 for trunk/nv/gfx/image.hh


Ignore:
Timestamp:
01/12/17 14:41:17 (8 years ago)
Author:
epyon
Message:

CONTINUED:

  • getting rid of size_t
  • datatypes now restricted to uint32 size
  • 64-bit compatibility
  • copyright updates where modified
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/gfx/image.hh

    r395 r534  
    1 // Copyright (C) 2012-2015 ChaosForge Ltd
     1// Copyright (C) 2012-2017 ChaosForge Ltd
    22// http://chaosforge.org/
    33//
     
    4242                 * @arg[in] depth :  Depth of the image.
    4343                 */
    44                 image( ivec2 size, size_t depth );
     44                image( ivec2 size, uint32 depth );
    4545                /**
    4646                 * Constructor
     
    6161                 *      reversed or not.
    6262                 */
    63                 image( ivec2 size, size_t depth, const uint8 * data, bool reversed = false );
     63                image( ivec2 size, uint32 depth, const uint8 * data, bool reversed = false );
    6464                /**
    6565                 * Fills the image with a given value.
     
    114114                 * @return Returns depth of the image.
    115115                 */
    116                 size_t get_depth() const { return m_depth; }
     116                uint32 get_depth() const { return m_depth; }
    117117        protected:
    118118                ivec2  m_size;  //!< Defines the size of the image as a vector.
    119                 size_t m_depth; //!< Defines the depth of the image
     119                uint32 m_depth; //!< Defines the depth of the image
    120120                uint8* m_data;  //!< Holder for data
    121121        };
Note: See TracChangeset for help on using the changeset viewer.