Scanline.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
9 #include <etk/math/Vector2D.hpp>
10 
11 namespace esvg {
12  namespace render {
13  class Scanline {
14  private:
15  std::vector<float> m_data;
16  public:
17  // constructor :
18  Scanline(size_t _size=32);
19  // destructor
20  ~Scanline() { };
21  public:
22  size_t size() const;
23  void clear(float _fill);
24  float get(int32_t _pos) const;
25  void set(int32_t _pos, float _newColor);
26  };
27  }
28 }
29 
Main esvg namespace.
Definition: Base.hpp:24
Definition: Scanline.hpp:13