2013-08-03 23:24:22 +02:00
|
|
|
|
2013-11-11 10:00:37 +01:00
|
|
|
// STL includes
|
|
|
|
#include <iostream>
|
|
|
|
|
2013-08-03 23:24:22 +02:00
|
|
|
// Utils includes
|
2013-11-11 10:00:37 +01:00
|
|
|
#include <utils/Image.h>
|
|
|
|
#include <utils/ColorRgb.h>
|
2013-08-03 23:24:22 +02:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
std::cout << "Constructing image" << std::endl;
|
2013-11-11 10:00:37 +01:00
|
|
|
Image<ColorRgb> image(64, 64, ColorRgb::BLACK);
|
2013-08-03 23:24:22 +02:00
|
|
|
|
|
|
|
std::cout << "Writing image" << std::endl;
|
|
|
|
for (unsigned y=0; y<64; ++y)
|
|
|
|
{
|
|
|
|
for (unsigned x=0; x<64; ++x)
|
|
|
|
{
|
2013-11-11 10:00:37 +01:00
|
|
|
image(x,y) = ColorRgb::RED;
|
2013-08-03 23:24:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
std::cout << "Finished (destruction will be performed)" << std::endl;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|