VertexBuffer Struct Reference
[Rendering Services]

Inherits Geometry.

Inherited by VBImpl.

List of all members.

Public Methods

virtual bool initialize (int format, int count)=0
virtual void setPrimitiveType (int type)=0
virtual bool resize (int count)=0
virtual int size () const=0
virtual bool setPosition (int i, Float x, Float y, Float z)=0
virtual bool setNormal (int i, Float x, Float y, Float z)=0
virtual bool setTexCoord (int i, Float u, Float v)=0
virtual bool setColor (int i, Float r, Float g, Float b, Float a)=0
virtual const Vector3 getPosition (int i)=0
virtual const Vector3 getTexCoord (int i)=0


Detailed Description

A list of vertices.


Member Function Documentation

virtual const Vector3 VertexBuffer::getPosition int    i [pure virtual]
 

Get the position of a vertex.

virtual const Vector3 VertexBuffer::getTexCoord int    i [pure virtual]
 

Get the texture coordinates of a vertex.

virtual bool VertexBuffer::initialize int    format,
int    count
[pure virtual]
 

Allocate and prepare memory for a new vertex buffer.

Parameters:
format  One or more of these: NORMAL, TEXCOORD, COLOR3. POSITION may be specified but is always included.
count  The initial number of vertices in the buffer.

virtual bool VertexBuffer::resize int    count [pure virtual]
 

Resize the buffer. If the new size is smaller than the old one the renderer may release the excess memory, but is not required to do so.

virtual bool VertexBuffer::setColor int    i,
Float    r,
Float    g,
Float    b,
Float    a
[pure virtual]
 

Set the color at a vertex.

virtual bool VertexBuffer::setNormal int    i,
Float    x,
Float    y,
Float    z
[pure virtual]
 

Set the normal of a vertex.

virtual bool VertexBuffer::setPosition int    i,
Float    x,
Float    y,
Float    z
[pure virtual]
 

Set the position of a vertex.

virtual void VertexBuffer::setPrimitiveType int    type [pure virtual]
 

Set the type of primitive stored in the buffer, which is TRIANGLES by default.

Parameters:
type  One of TRIANGLES, QUADS.

virtual bool VertexBuffer::setTexCoord int    i,
Float    u,
Float    v
[pure virtual]
 

Set the texture coordinates of a vertex.

virtual int VertexBuffer::size   const [pure virtual]
 

Retrieve the number of vertices in the buffer.


The documentation for this struct was generated from the following file:


Flat Four Engine
Copyright (C) 2001 by 379, Inc.
This page generated by Doxygen