zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Zeni::Vertex2f_Texture Class Reference

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_Textureinterpolate_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 Materialget_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...
 
Renderableoperator= (const Renderable &rhs)
 
virtual void post_render () const
 
virtual void pre_render () const
 
- Public Member Functions inherited from Zeni::Vertex2f
virtual ~Vertex2f ()
 
voidget_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)
 

Detailed Description

An Abstraction of a Vertex in 2-space, textured.

Author
bazald

Contact: bazal.nosp@m.d@ze.nosp@m.nipex.nosp@m..com

Definition at line 115 of file Vertex2f.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

Vertex2f_Texture * Zeni::Vertex2f_Texture::interpolate_to ( const float &  rhs_part,
const Vertex2f_Texture rhs 
) const
bool Zeni::Vertex2f_Texture::is_3d ( ) const
virtual

Tell the rendering system if we're using 3D coordinates.

Implements Zeni::Renderable.

Definition at line 208 of file Vertex2f.cpp.

void Zeni::Vertex2f_Texture::render_to ( Video_GL_Fixed screen) const
virtual

Overridden for OpenGL rendering.

Implements Zeni::Renderable.

Definition at line 213 of file Vertex2f.cpp.

References assert.

void Zeni::Vertex2f_Texture::render_to ( Video_GL_Shader screen) const
virtual

Overridden for OpenGL rendering.

Implements Zeni::Renderable.

Definition at line 263 of file Vertex2f.cpp.

References assert.

void Zeni::Vertex2f_Texture::render_to ( Video_DX9 screen) const
virtual

Overridden for Direct3D9 rendering.

Implements Zeni::Renderable.

Definition at line 275 of file Vertex2f.cpp.

References assert.

void Zeni::Vertex2f_Texture::subrender_to ( Video_GL_Fixed screen) const
virtual
void Zeni::Vertex2f_Texture::subrender_to ( Video_GL_Shader screen) const
virtual

Member Data Documentation

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().


The documentation for this class was generated from the following files: