1
Fork 0
This repository has been archived on 2025-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
awesome-attractor/canvae/libpng.hpp

35 lines
653 B
C++

//
// libpng.hpp
// AwesomeAttract0r
//
// Created by Joshua Moerman on 10/24/11.
// Copyright 2011 Vadovas. All rights reserved.
//
#ifndef AwesomeAttract0r_libpng_hpp
#define AwesomeAttract0r_libpng_hpp
#ifndef __APPLE__
#include <png++/png.hpp>
#else
#warning PNG++ is not yet supported
namespace png {
template <typename T>
struct image{
image(unsigned int, unsigned int){}
image& operator[](unsigned int){return *this;}
template <typename S>
image& operator=(S const &){return *this;}
void write(std::string const &){}
};
struct rgb_pixel{
rgb_pixel(unsigned int, unsigned int, unsigned int){}
};
}
#endif
#endif