]> git.tdb.fi Git - libs/gl.git/blobdiff - source/resources/resource.h
Use size_t to store sizes of buffers and such
[libs/gl.git] / source / resources / resource.h
index 4efc082116eefcde6a1b3035b4ee354eea97f3a6..d763ac442bb528ea9e0af84e9acd056bb7673832 100644 (file)
@@ -25,10 +25,10 @@ public:
        };
 
 protected:
-       ResourceManager *manager;
-       void *manager_data;
+       ResourceManager *manager = 0;
+       void *manager_data = 0;
 
-       Resource();
+       Resource() = default;
 public:
        virtual ~Resource();
 
@@ -41,7 +41,7 @@ public:
 
        /** Returns the amount of graphics memory used by this resource.  The
        returned value must not change while the resource is loaded. */
-       virtual std::uint64_t get_data_size() const = 0;
+       virtual std::size_t get_data_size() const = 0;
 
        virtual void unload() = 0;
 };