cubemapper

diff src/texture.cc @ 1:d7a29cb7ac8d

resize to the final cubemap face size
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 28 Jul 2017 07:44:35 +0300
parents 8fc9e1d3aad2
children e308561f9889
line diff
     1.1 --- a/src/texture.cc	Thu Jul 27 20:36:12 2017 +0300
     1.2 +++ b/src/texture.cc	Fri Jul 28 07:44:35 2017 +0300
     1.3 @@ -27,6 +27,16 @@
     1.4  	return x + 1;
     1.5  }
     1.6  
     1.7 +int Texture::get_width() const
     1.8 +{
     1.9 +	return width;
    1.10 +}
    1.11 +
    1.12 +int Texture::get_height() const
    1.13 +{
    1.14 +	return height;
    1.15 +}
    1.16 +
    1.17  bool Texture::load(const char *fname)
    1.18  {
    1.19  	img_pixmap img;