esvg/esvg/render/Scanline.hpp

30 lines
563 B
C++

/** @file
* @author Edouard DUPIN
* @copyright 2011, Edouard DUPIN, all right reserved
* @license MPL v2.0 (see license file)
*/
#pragma once
#include <etk/types.hpp>
#include <etk/math/Vector2D.hpp>
namespace esvg {
namespace render {
class Scanline {
private:
etk::Vector<float> m_data;
public:
// constructor :
Scanline(size_t _size=32);
// destructor
~Scanline() { };
public:
size_t size() const;
void clear(float _fill);
float get(int32_t _pos) const;
void set(int32_t _pos, float _newColor);
};
}
}