VirtualMachine::InternalVertex Class Reference
[VirtualMachine 3D Render Methods]

#include <VirtualMachine.h>

List of all members.


Detailed Description

Nested class that defines a vertex for use with InternalObject3DBuffer::GetFirstVertex(). Note: this vertex definition should not change (no more member or virtual methods). It is sometimes used as a list element.

Definition at line 98 of file VirtualMachine.h.

Public Member Functions

void SetPosition (float _x, float _y, float _z)
 Set the x,y,z position of the vertex.
void SetUV (float _u, float _v)
 Set the UV coordinate for texture mapping for the vertex.
void SetPositionUV (float _x, float _y, float _z)
 set in the same time position of the vertex, and also apply to the UV texture coordinates.
void SetNormalVector (float _x, float _y, float _z)
 set Normal Vector for this vertex. It must be normalized.

Public Attributes

float m_x
 the vertex position. Always enabled.
float m_y
float m_z
float m_nx
 the vertex normal, norm must be 1.0.
float m_ny
float m_nz
float m_u
 the 2D texture coordinates if there are:
float m_v
float m_ColorRGBA [4]
 the color/alpha transluency of the vertex.


Member Function Documentation

void SetNormalVector float  _x,
float  _y,
float  _z
[inline]
 

set Normal Vector for this vertex. It must be normalized.

Definition at line 124 of file VirtualMachine.h.

References m_nx, m_ny, and m_nz.

void SetPosition float  _x,
float  _y,
float  _z
[inline]
 

Set the x,y,z position of the vertex.

Definition at line 111 of file VirtualMachine.h.

References m_x, m_y, and m_z.

void SetPositionUV float  _x,
float  _y,
float  _z
[inline]
 

set in the same time position of the vertex, and also apply to the UV texture coordinates.

Definition at line 119 of file VirtualMachine.h.

References m_u, m_v, m_x, m_y, and m_z.

void SetUV float  _u,
float  _v
[inline]
 

Set the UV coordinate for texture mapping for the vertex.

Definition at line 115 of file VirtualMachine.h.

References m_u, and m_v.


Member Data Documentation

float m_ColorRGBA[4]
 

the color/alpha transluency of the vertex.

Definition at line 107 of file VirtualMachine.h.

float m_nx
 

the vertex normal, norm must be 1.0.

Definition at line 103 of file VirtualMachine.h.

Referenced by SetNormalVector().

float m_u
 

the 2D texture coordinates if there are:

Definition at line 105 of file VirtualMachine.h.

Referenced by SetPositionUV(), and SetUV().

float m_x
 

the vertex position. Always enabled.

Definition at line 101 of file VirtualMachine.h.

Referenced by SetPosition(), and SetPositionUV().


The documentation for this class was generated from the following file:
      /\/\        4         N         k         !         N         D
                      _______  _ __ ___  _____            ___ _ _  ____
     ___________  __//___   /________  |/    / ___________\_______/    \
    /   _   _   \/   _     /    _   /      _/_/____/    _       __     /
   /    /   /       /     /    /    \      \/     /    /    \   \     /
  \\___/___/___/    ¯    _____/_____/       ______\___/_____/\________\\
               \________/_ ___ __ l____\      /elD!  
                 http://www.m4nkind.com \____/