Page 1 of 1

Help with ImageMagick

Posted: 2019-06-25T03:54:25-07:00
by Kion
Im going to use Magick++ to load textures into my application but Magick++.h cant seem to find <Magick++/Include.h>.

Im useing Code::Blocks and im on Ubuntu.

Code: Select all

#ifndef TEXTURE_H
#define	TEXTURE_H

#include <string>
#include <GL/glew.h>
#include <ImageMagick/Magick++.h>

class Texture
    Texture(GLenum TextureTarget, const std::string& FileName);

    bool Load();

    void Bind(GLenum TextureUnit);

    std::string m_fileName;
    GLenum m_textureTarget;
    GLuint m_textureObj;
    Magick::Image* m_pImage;
    Magick::Blob m_blob;

#endif	/* TEXTURE_H */

I installed useing ‘sudo apt-get install libmagick+±dev’ is that the correct way to do it? Ive only been useing linux for a few weeks.