zenilib
0.5.3.0
|
An Abstraction of a Line. More...
#include <Line_Segment.h>
Inherits Zeni::Renderable.
Public Member Functions | |
Line_Segment () | |
Line_Segment (const VERTEX &vertex0, const VERTEX &vertex1) | |
Line_Segment (const Line_Segment< VERTEX > &rhs) | |
Line_Segment< VERTEX > * | get_duplicate () const |
Get a duplicate of the Line. More... | |
virtual bool | is_3d () const |
Tell the rendering system if we're using 3D coordinates. More... | |
Line_Segment< VERTEX > & | operator= (const Line_Segment< VERTEX > &rhs) |
const VERTEX & | operator[] (const int &index) const |
Get 'index'. More... | |
VERTEX & | operator[] (const int &index) |
Get 'index'. More... | |
virtual void | render_to (Video_GL_Fixed &screen) const |
Overridden for OpenGL rendering. More... | |
virtual void | render_to (Video_GL_Shader &screen) const |
Overridden for OpenGL rendering. More... | |
virtual void | render_to (Video_DX9 &screen) const |
Overridden for Direct3D9 rendering. More... | |
template<> | |
void | render_to (Video_GL_Shader &) const |
Overridden for OpenGL rendering. More... | |
template<> | |
void | render_to (Video_GL_Shader &) const |
Overridden for OpenGL rendering. More... | |
template<> | |
void | render_to (Video_GL_Shader &) const |
Overridden for OpenGL rendering. More... | |
template<> | |
void | render_to (Video_GL_Shader &) const |
Overridden for OpenGL rendering. More... | |
Public Member Functions inherited from Zeni::Renderable | |
Renderable () | |
Renderable (const Renderable &rhs) | |
virtual | ~Renderable () |
void | fax_Material (const Material *const &material) |
Set the Material, giving the Renderable a copy. More... | |
const Material * | get_Material () const |
Get the Material. More... | |
void | give_Material (Material *const &material) |
Set the Material, giving the Renderable ownership. More... | |
void | lend_Material (const Material *const &material) |
Set the Material, giving the Renderable no ownership. More... | |
Renderable & | operator= (const Renderable &rhs) |
virtual void | post_render () const |
virtual void | pre_render () const |
Public Attributes | |
VERTEX | a |
VERTEX | b |
An Abstraction of a Line.
Contact: bazal d@ze nipex .com
Definition at line 36 of file Line_Segment.h.
Zeni::Line_Segment< VERTEX >::Line_Segment | ( | ) |
Definition at line 38 of file Line_Segment.hxx.
Zeni::Line_Segment< VERTEX >::Line_Segment | ( | const VERTEX & | vertex0, |
const VERTEX & | vertex1 | ||
) |
Definition at line 45 of file Line_Segment.hxx.
Zeni::Line_Segment< VERTEX >::Line_Segment | ( | const Line_Segment< VERTEX > & | rhs | ) |
Definition at line 52 of file Line_Segment.hxx.
Line_Segment< VERTEX > * Zeni::Line_Segment< VERTEX >::get_duplicate | ( | ) | const |
Get a duplicate of the Line.
Definition at line 92 of file Line_Segment.hxx.
|
virtual |
Tell the rendering system if we're using 3D coordinates.
Implements Zeni::Renderable.
Definition at line 70 of file Line_Segment.hxx.
Line_Segment< VERTEX > & Zeni::Line_Segment< VERTEX >::operator= | ( | const Line_Segment< VERTEX > & | rhs | ) |
Definition at line 60 of file Line_Segment.hxx.
References Zeni::Line_Segment< VERTEX >::a, and Zeni::Line_Segment< VERTEX >::b.
const VERTEX & Zeni::Line_Segment< VERTEX >::operator[] | ( | const int & | index | ) | const |
VERTEX & Zeni::Line_Segment< VERTEX >::operator[] | ( | const int & | index | ) |
|
virtual |
Overridden for OpenGL rendering.
Implements Zeni::Renderable.
Definition at line 76 of file Line_Segment.hxx.
|
virtual |
Overridden for OpenGL rendering.
Implements Zeni::Renderable.
|
virtual |
Overridden for Direct3D9 rendering.
Implements Zeni::Renderable.
Definition at line 86 of file Line_Segment.hxx.
References D3DPT_LINELIST, and Zeni::Video_DX9::get_d3d_device().
|
virtual |
Overridden for OpenGL rendering.
Implements Zeni::Renderable.
Definition at line 112 of file Vertex2f.cpp.
References GL_COLOR_ARRAY, GL_FLOAT, GL_LINES, GL_UNSIGNED_BYTE, GL_VERTEX_ARRAY, glColorPointer, glDisableClientState, glDrawArrays, glEnableClientState, and glVertexPointer.
|
virtual |
Overridden for OpenGL rendering.
Implements Zeni::Renderable.
Definition at line 126 of file Vertex3f.cpp.
References GL_COLOR_ARRAY, GL_FLOAT, GL_LINES, GL_UNSIGNED_BYTE, GL_VERTEX_ARRAY, glColorPointer, glDisableClientState, glDrawArrays, glEnableClientState, and glVertexPointer.
|
virtual |
Overridden for OpenGL rendering.
Implements Zeni::Renderable.
Definition at line 225 of file Vertex2f.cpp.
References GL_FLOAT, GL_LINES, GL_TEXTURE_COORD_ARRAY, GL_VERTEX_ARRAY, glDisableClientState, glDrawArrays, glEnableClientState, glTexCoordPointer, and glVertexPointer.
|
virtual |
Overridden for OpenGL rendering.
Implements Zeni::Renderable.
Definition at line 247 of file Vertex3f.cpp.
References GL_FLOAT, GL_LINES, GL_TEXTURE_COORD_ARRAY, GL_VERTEX_ARRAY, glDisableClientState, glDrawArrays, glEnableClientState, glTexCoordPointer, and glVertexPointer.
VERTEX Zeni::Line_Segment< VERTEX >::a |
Definition at line 66 of file Line_Segment.h.
Referenced by Zeni::Line_Segment< VERTEX >::operator=(), and Zeni::Widget_Renderer_Slider::render_to().
VERTEX Zeni::Line_Segment< VERTEX >::b |
Definition at line 67 of file Line_Segment.h.
Referenced by Zeni::Line_Segment< VERTEX >::operator=(), and Zeni::Widget_Renderer_Slider::render_to().