使用我的新类Texture
时出现奇怪的错误#include <ImageMagick/Magick++.h>
class Texture
{
public:
Texture(GLenum TextureTarget, const std::string& FileName);
Texture(GLenum TextureTarget,const Magick::Image* img);
当我尝试使用它时
Magick::Image* image_small =
new Magick::Image( Magick::Geometry(pCodecCtx->width/8,
pCodecCtx->height/8),
Magick::Color(0, 0, 0, 0));
/*135*/ Texture* txtr = new Texture(GL_TEXTURE_2D,
(const Magick::Image*)image_small);
我得到了
P.cpp|135|error: no matching function for call to ‘Texture::Texture(int, const Magick::Image*)’|