aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/resourcemanager.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-12-31 18:00:01 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-12-31 18:00:01 +0000
commit34908f108ad7c2ee6cff96491a0bc40381477424 (patch)
treef58c6bdde485d07a7136f78055240bab923bd4a6 /yage/core/resourcemanager.h
parent943e3a5bc98ebcc2aa1b1d576700f7c4010c143c (diff)
downloadYAGE-34908f108ad7c2ee6cff96491a0bc40381477424.tar.gz
YAGE-34908f108ad7c2ee6cff96491a0bc40381477424.zip
[Test] Benchmarking the engine and trying to optimize.
Diffstat (limited to 'yage/core/resourcemanager.h')
-rw-r--r--yage/core/resourcemanager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/yage/core/resourcemanager.h b/yage/core/resourcemanager.h
index a0249436..11a16f63 100644
--- a/yage/core/resourcemanager.h
+++ b/yage/core/resourcemanager.h
@@ -24,7 +24,7 @@
namespace yage
{
-class Texture;
+struct Texture;
class ResourceManager
{
@@ -32,7 +32,8 @@ private:
static TextureCache texture_cache_;
public:
- static Texture getTexture(const std::string &texture_path);
+ static Texture getTexture(const std::string &texture_path, int x = 1,
+ int y = 1);
};
} // namespace yage