vrchess

diff src/texture.cc @ 7:bd8202d6d28d

some progress...
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 22 Aug 2014 16:55:16 +0300
parents 3c36bc28c6c2
children
line diff
     1.1 --- a/src/texture.cc	Thu Aug 21 01:08:03 2014 +0300
     1.2 +++ b/src/texture.cc	Fri Aug 22 16:55:16 2014 +0300
     1.3 @@ -12,6 +12,16 @@
     1.4  	destroy();
     1.5  }
     1.6  
     1.7 +int Texture::get_width() const
     1.8 +{
     1.9 +	return img.get_width();
    1.10 +}
    1.11 +
    1.12 +int Texture::get_height() const
    1.13 +{
    1.14 +	return img.get_height();
    1.15 +}
    1.16 +
    1.17  void Texture::create2d(int xsz, int ysz)
    1.18  {
    1.19  	destroy();