mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 12:08:16 +08:00
33 lines
451 B
C++
33 lines
451 B
C++
#pragma once
|
|
|
|
#include "agge/types.h"
|
|
#include "nanovg.h"
|
|
|
|
namespace agge {
|
|
class nanovg_vertex {
|
|
public:
|
|
class iterator;
|
|
|
|
public:
|
|
nanovg_vertex(NVGvertex* vertex, int n);
|
|
|
|
iterator iterate() const;
|
|
|
|
private:
|
|
int _n;
|
|
NVGvertex* _vertex;
|
|
};
|
|
|
|
class nanovg_vertex::iterator {
|
|
public:
|
|
iterator(NVGvertex* vertex, int n);
|
|
|
|
int vertex(real_t* x, real_t* y);
|
|
|
|
private:
|
|
int _n;
|
|
int _index;
|
|
NVGvertex* _vertex;
|
|
};
|
|
} // namespace agge
|