mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
dd16af0df5
Former-commit-id: ef02f164eaf3c2f9dd552c1c17b525cf6eed499c
27 lines
460 B
C++
27 lines
460 B
C++
|
|
// STL includes
|
|
#include <iostream>
|
|
|
|
// Utils includes
|
|
#include <utils/Image.h>
|
|
#include <utils/ColorRgb.h>
|
|
|
|
int main()
|
|
{
|
|
std::cout << "Constructing image" << std::endl;
|
|
Image<ColorRgb> image(64, 64, ColorRgb::BLACK);
|
|
|
|
std::cout << "Writing image" << std::endl;
|
|
for (unsigned y=0; y<64; ++y)
|
|
{
|
|
for (unsigned x=0; x<64; ++x)
|
|
{
|
|
image(x,y) = ColorRgb::RED;
|
|
}
|
|
}
|
|
|
|
std::cout << "Finished (destruction will be performed)" << std::endl;
|
|
|
|
return 0;
|
|
}
|