35 explicit LineSegs(
const std::string &name =
"lines");
39 INLINE
void set_color(PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0f);
40 INLINE
void set_color(
const LColor &color);
41 INLINE
void set_thickness(PN_stdfloat thick);
43 INLINE
void move_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
44 void move_to(
const LVecBase3 &v);
46 INLINE
void draw_to(PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
47 void draw_to(
const LVecBase3 &v);
49 const LVertex &get_current_position();
52 INLINE
GeomNode *create(
bool dynamic =
false);
56 INLINE
int get_num_vertices()
const;
57 LVertex get_vertex(
int n)
const;
58 MAKE_SEQ(get_vertices, get_num_vertices, get_vertex);
59 void set_vertex(
int n,
const LVertex &vert);
60 INLINE
void set_vertex(
int vertex, PN_stdfloat x, PN_stdfloat y, PN_stdfloat z);
62 LColor get_vertex_color(
int vertex)
const;
63 MAKE_SEQ(get_vertex_colors, get_num_vertices, get_vertex_color);
64 void set_vertex_color(
int vertex,
const LColor &c);
65 INLINE
void set_vertex_color(
int vertex, PN_stdfloat r, PN_stdfloat g, PN_stdfloat b, PN_stdfloat a = 1.0f);
71 INLINE Point(
const LVecBase3 &point,
const LColor &color);
72 INLINE Point(
const Point ©);
73 INLINE
void operator = (
const Point ©);
76 UnalignedLVecBase4 _color;