From 5e6067f74e7ac072656f11ead0f22ec7f8e9c525 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Mon, 25 Sep 2017 17:46:30 +0100 Subject: Testing spritesheet --- yage/base/imageloader.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'yage/base/imageloader.cpp') diff --git a/yage/base/imageloader.cpp b/yage/base/imageloader.cpp index 0d7d5df9..e1d54dc1 100644 --- a/yage/base/imageloader.cpp +++ b/yage/base/imageloader.cpp @@ -6,10 +6,16 @@ * ---------------------------------------------------------------------------- */ -#include +#include "imageloader.h" + +#ifndef UNIT_TESTS +#include +#endif + #include #include +#include #include namespace yage @@ -33,7 +39,8 @@ Texture ImageLoader::loadPng(const std::string &file_path) std::to_string(error_code)); } - Texture texture{0, (int)width, (int)height}; + Texture texture(0, static_cast(width), static_cast(height)); + std::cout << "Geometry: " << texture.width << "x" << texture.height << "\n"; glGenTextures(1, &texture.id); -- cgit