X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FTexture.cc;h=78dc0c8148b478c092f0375ac46c3ecff2d7f707;hp=fc50cfadeffcc62535faae1cf80cee6e24ec2576;hb=bffc879fc8ee8167bb123310d39fad4e2f426ffd;hpb=9619ed3cee0f9e465ad2747fcb4f1f6cb6d3d889 diff --git a/src/Moof/Texture.cc b/src/Moof/Texture.cc index fc50cfa..78dc0c8 100644 --- a/src/Moof/Texture.cc +++ b/src/Moof/Texture.cc @@ -34,8 +34,8 @@ #include #include "Dispatcher.hh" +#include "Library.hh" #include "Log.hh" -#include "Mippleton.hh" #include "OpenGL.hh" #include "Texture.hh" @@ -52,7 +52,7 @@ namespace Mf { * objects and avoid having duplicate textures loaded to GL. */ -class Texture::Impl : public Mippleton +class Texture::Impl : public Library { /** @@ -131,7 +131,7 @@ public: */ explicit Impl(const std::string& name) : - Mippleton(name), + Library(name), mContext(0), mWidth(0), mHeight(0), @@ -296,10 +296,12 @@ public: glBindTexture(GL_TEXTURE_2D, mObject); glTexImage2D + //gluBuild2DMipmaps ( GL_TEXTURE_2D, 0, mMode, + //3, mContext->w, mContext->h, 0,