zenilib
0.5.3.0
|
An Abstraction of a Vertex in 2-space, textured. More...
#include <Vertex2f.h>
Inherits Zeni::Renderable, and Zeni::Vertex2f.
Public Member Functions | |
Vertex2f_Texture () | |
Initialize the Vertex2f_Texture. More... | |
Vertex2f_Texture (const Point2f &position, const Point2f &texture_coordinate) | |
Vertex2f_Texture * | interpolate_to (const float &rhs_part, const Vertex2f_Texture &rhs) const |
Get a Vertex2f_Texture between two vertices; rhs must be a Vertex2f_Texture. More... | |
virtual bool | is_3d () const |
Tell the rendering system if we're using 3D coordinates. 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... | |
virtual void | subrender_to (Video_GL_Fixed &screen) const |
virtual void | subrender_to (Video_GL_Shader &screen) const |
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 Member Functions inherited from Zeni::Vertex2f | |
virtual | ~Vertex2f () |
void * | get_address () const |
A bit of a hack, necessary to memcpy data into Vertex_Buffers. More... | |
unsigned long | get_offset () const |
A bit of a hack, necessary to memcpy data into Vertex_Buffers. More... | |
virtual Point3f | get_position () const |
Public Attributes | |
Point2f | texture_coordinate |
Public Attributes inherited from Zeni::Vertex2f | |
Point3f | position |
Additional Inherited Members | |
Protected Member Functions inherited from Zeni::Vertex2f | |
Vertex2f () | |
Vertex2f (const Point2f &position) | |
An Abstraction of a Vertex in 2-space, textured.
Contact: bazal d@ze nipex .com
Definition at line 115 of file Vertex2f.h.
Zeni::Vertex2f_Texture::Vertex2f_Texture | ( | ) |
Initialize the Vertex2f_Texture.
Definition at line 192 of file Vertex2f.cpp.
Referenced by interpolate_to().
Zeni::Vertex2f_Texture::Vertex2f_Texture | ( | const Point2f & | position, |
const Point2f & | texture_coordinate | ||
) |
Definition at line 196 of file Vertex2f.cpp.
Vertex2f_Texture * Zeni::Vertex2f_Texture::interpolate_to | ( | const float & | rhs_part, |
const Vertex2f_Texture & | rhs | ||
) | const |
Get a Vertex2f_Texture between two vertices; rhs must be a Vertex2f_Texture.
Definition at line 202 of file Vertex2f.cpp.
References Zeni::Point2f::interpolate_to(), Zeni::Point3f::interpolate_to(), Zeni::Vertex2f::position, texture_coordinate, Vertex2f_Texture(), Zeni::Point3f::x, and Zeni::Point3f::y.
|
virtual |
Tell the rendering system if we're using 3D coordinates.
Implements Zeni::Renderable.
Definition at line 208 of file Vertex2f.cpp.
|
virtual |
Overridden for OpenGL rendering.
Implements Zeni::Renderable.
Definition at line 213 of file Vertex2f.cpp.
References assert.
|
virtual |
Overridden for OpenGL rendering.
Implements Zeni::Renderable.
Definition at line 263 of file Vertex2f.cpp.
References assert.
Overridden for Direct3D9 rendering.
Implements Zeni::Renderable.
Definition at line 275 of file Vertex2f.cpp.
References assert.
|
virtual |
Definition at line 217 of file Vertex2f.cpp.
References glTexCoord2f, glVertex2f, Zeni::Vertex2f::position, texture_coordinate, Zeni::Point2f::x, Zeni::Point3f::x, Zeni::Point2f::y, and Zeni::Point3f::y.
|
virtual |
DEPRECATED
Definition at line 267 of file Vertex2f.cpp.
References glTexCoord2f, glVertex2f, Zeni::Vertex2f::position, texture_coordinate, Zeni::Point2f::x, Zeni::Point3f::x, Zeni::Point2f::y, and Zeni::Point3f::y.
Point2f Zeni::Vertex2f_Texture::texture_coordinate |
Definition at line 144 of file Vertex2f.h.
Referenced by Zeni::Vertex_Buffer::fax_Triangle(), interpolate_to(), and subrender_to().