|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::IVertexBufferHard Class ReferenceThis a vertex buffer created by Driver.
More...
#include <vertex_buffer_hard.h>
Inheritance diagram for NL3D::IVertexBufferHard:
List of all members.
Detailed Description
This a vertex buffer created by Driver.
His pointer may be allocated on AGP Ram or VRAM. see CVertexBuffer, because it use the same flags for vertex format. IVertexBufferHard are created / deleted by IDriver. -
Author:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 46 of file vertex_buffer_hard.h.
Constructor & Destructor Documentation
NL3D::IVertexBufferHard::IVertexBufferHard |
( |
|
) |
[inline, protected] |
|
virtual NL3D::IVertexBufferHard::~IVertexBufferHard |
( |
|
) |
[inline, protected, virtual] |
|
Member Function Documentation
uint32 NL3D::IVertexBufferHard::getNumVertices |
( |
void |
|
) |
const [inline] |
|
uint8 NL3D::IVertexBufferHard::getNumWeight |
( |
|
) |
const |
|
sint NL3D::IVertexBufferHard::getValueOff |
( |
uint |
value |
) |
const [inline] |
|
uint16 NL3D::IVertexBufferHard::getVertexFormat |
( |
void |
|
) |
const [inline] |
|
uint16 NL3D::IVertexBufferHard::getVertexSize |
( |
void |
|
) |
const [inline] |
|
void NL3D::IVertexBufferHard::initFormat |
( |
uint16 |
vertexFormat, |
|
|
const uint8 * |
typeArray, |
|
|
uint32 |
numVertices |
|
) |
[protected] |
|
virtual void* NL3D::IVertexBufferHard::lock |
( |
|
) |
[pure virtual] |
|
|
Lock the entire VertexBuffer.
The returned buffer is a write only buffer. (undefined result if you read it). Write note:
- for VRAM VertexBufferHard, you should write only one time, to init.
- for AGP VertexBufferHard, you should write sequentially to take full advantage of the write combiners.
-
Returns:
-
the adress of the vertex 0. Use getVertexSize(), get*Off() ... to access any part of this VertexBuffer.
Implemented in NL3D::CVertexBufferHardGLNVidia. |
virtual void NL3D::IVertexBufferHard::unlock |
( |
uint |
startVert, |
|
|
uint |
endVert |
|
) |
[pure virtual] |
|
|
Same as unlock() but give hints to driver on vertices that have changed.
Used by ATI-OpenGL drivers. NB: driver may still ignore this information, and so take into acount all vertices -
Parameters:
-
startVert |
the fisrt vertex to update |
endVert |
the last vertex (not included) to update => numVertices= vertEnd-vertBegin. Hence unlock() as the same effect as unlock(0, getNumVertices()); |
Implemented in NL3D::CVertexBufferHardGLNVidia. |
virtual void NL3D::IVertexBufferHard::unlock |
( |
|
) |
[pure virtual] |
|
Member Data Documentation
uint16 NL3D::IVertexBufferHard::_Flags [protected]
|
|
uint16 NL3D::IVertexBufferHard::_InternalFlags [protected]
|
|
uint32 NL3D::IVertexBufferHard::_NbVerts [protected]
|
|
uint16 NL3D::IVertexBufferHard::_Offset[CVertexBuffer::NumValue] [protected]
|
|
uint8 NL3D::IVertexBufferHard::_Pad [protected]
|
|
uint8 NL3D::IVertexBufferHard::_Type[CVertexBuffer::NumValue] [protected]
|
|
uint16 NL3D::IVertexBufferHard::_VertexSize [protected]
|
|
The documentation for this class was generated from the following files:
|
|