mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-16 03:18:54 +00:00
33 lines
483 B
C++
33 lines
483 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
|