#include <driver_opengl_vertex_buffer_hard.h>
Inheritance diagram for NL3D::IVertexBufferHardGL:
Definition at line 78 of file driver_opengl_vertex_buffer_hard.h.
Public Types | |
enum | TVBType { NVidiaVB, ATIVB, ATIMapObjectVB, UnknownVB } |
Public Member Functions | |
virtual void | disable ()=0 |
virtual void | enable ()=0 |
const sint & | getRefCount () const |
void | initFormat (uint16 vertexFormat, const uint8 *typeArray, uint32 numVertices, const uint8 *uvRouting) |
IVertexBufferHardGL (CDriverGL *drv) | |
virtual | ~IVertexBufferHardGL () |
Vertex access. | |
virtual void * | lock ()=0 |
virtual void | lockHintStatic (bool staticLock)=0 |
virtual void | unlock (uint startVert, uint endVert)=0 |
virtual void | unlock ()=0 |
Vertex access. | |
virtual void * | lock ()=0 |
virtual void | lockHintStatic (bool staticLock)=0 |
virtual void | unlock (uint startVert, uint endVert)=0 |
virtual void | unlock ()=0 |
Data Fields | |
sint | crefs |
bool | GPURenderingAfterFence |
CPtrInfo * | pinfo |
TVBType | VBType |
Static Public Attributes | |
CPtrInfo | NullPtrInfo |
Protected Attributes | |
CDriverGL * | _Driver |
uint16 | _Flags |
uint16 | _InternalFlags |
std::string | _Name |
uint32 | _NbVerts |
uint16 | _Offset [CVertexBuffer::NumValue] |
uint8 | _Pad |
uint8 | _Type [CVertexBuffer::NumValue] |
uint8 | _UVRouting [CVertexBuffer::MaxStage] |
uint16 | _VertexSize |
Friends | |
struct | CPtrInfo |
|
Definition at line 95 of file driver_opengl_vertex_buffer_hard.h.
00095 { NVidiaVB, ATIVB, ATIMapObjectVB, UnknownVB }; |
|
Definition at line 62 of file driver_opengl_vertex_buffer_hard.cpp. References GPURenderingAfterFence, UnknownVB, and VBType.
00063 { 00064 _Driver= drv; 00065 GPURenderingAfterFence= false; 00066 VBType = UnknownVB; 00067 } |
|
Definition at line 69 of file driver_opengl_vertex_buffer_hard.cpp.
00070 { 00071 } |
|
|
Implemented in NL3D::CVertexBufferHardGLNVidia, NL3D::CVertexBufferHardGLATI, and NL3D::CVertexBufferHardGLMapObjectATI. Referenced by NL3D::CDriverGL::activeVertexBufferHard(). |
|
Definition at line 120 of file vertex_buffer_hard.h. Referenced by NL3D::CDriverGL::profileVBHardAllocation().
00120 {return _Name;} |
|
|
Definition at line 76 of file vertex_buffer_hard.cpp. References uint8. Referenced by NL3D::CVertexBufferInfo::setupVertexBufferHard().
00077 { 00078 // Num weight 00079 switch (_Type[CVertexBuffer::Weight]) 00080 { 00081 case CVertexBuffer::Float1: 00082 return 1; 00083 case CVertexBuffer::Float2: 00084 return 2; 00085 case CVertexBuffer::Float3: 00086 return 3; 00087 case CVertexBuffer::Float4: 00088 return 4; 00089 } 00090 00091 // No weight 00092 return 0; 00093 } |
|
Definition at line 70 of file smart_ptr.h. References NLMISC::CRefCount::crefs, and sint.
00071 { 00072 return crefs; 00073 } |
|
Definition at line 57 of file vertex_buffer_hard.h. References uint8. Referenced by NL3D::CVertexBufferInfo::setupVertexBufferHard().
00057 { return _UVRouting; } |
|
NB: the order of those methods follow the order in memory of the elements:
Definition at line 82 of file vertex_buffer_hard.h. References nlassert, sint, uint, and value. Referenced by NL3D::CVertexBufferHardGLMapObjectATI::getATIValueOffset(), NL3D::CVertexBufferHardGLATI::getATIValueOffset(), NL3D::CVertexBufferHardGLNVidia::getNVidiaValueEx(), NL3D::CNearVertexBufferInfo::setupVertexBufferHard(), and NL3D::CFarVertexBufferInfo::setupVertexBufferHard().
|
|
Definition at line 55 of file vertex_buffer_hard.h. References nlassert, uint, and value. Referenced by NL3D::CVertexBufferInfo::setupVertexBufferHard().
|
|
Definition at line 52 of file vertex_buffer_hard.h. References uint16. Referenced by NL3D::CDriverGL::activeVertexBufferHard(), NL3D::CNearVertexBufferInfo::setupVertexBufferHard(), NL3D::CFarVertexBufferInfo::setupVertexBufferHard(), and NL3D::CVertexBufferInfo::setupVertexBufferHard().
00052 { return(_Flags); } |
|
|
Reimplemented from NL3D::IVertexBufferHard. Definition at line 104 of file driver_opengl_vertex_buffer_hard.h. References uint16, uint32, and uint8. Referenced by NL3D::CVertexArrayRangeMapObjectATI::createVBHardGL(), NL3D::CVertexArrayRangeATI::createVBHardGL(), and NL3D::CVertexArrayRangeNVidia::createVBHardGL().
00105 { 00106 IVertexBufferHard::initFormat(vertexFormat, typeArray, numVertices, uvRouting); 00107 } |
|
Lock the entire VertexBuffer. The returned buffer is a write only buffer. (undefined result if you read it). Write note:
Implemented in NL3D::CVertexBufferHardGLNVidia, NL3D::CVertexBufferHardGLATI, and NL3D::CVertexBufferHardGLMapObjectATI. Referenced by NL3D::CMeshMRMGeom::applyGeomorph(), NL3D::CDriverGL::deleteVertexBufferHard(), NL3D::CDriverGL::resetVertexArrayRange(), NL3D::CMeshMorpher::update(), and NL3D::CMeshMorpher::updateSkinned(). |
|
Indicate what kind of lock to be done on this VertexBuffer (whatever AGP or VRAM buffer) User should set to true if the VBHard is static: nevers change or very rarely. NVidia OpenGL implementation: "Static lock" are slower, but no fences are inserted after a render with this VVBHard, hence, no slowdown because 1/ of fence overhead insertion 2/ of NVidia swapBuffers() and fence issues on GeForce2 cards. Default is false Implemented in NL3D::CVertexBufferHardGLNVidia, NL3D::CVertexBufferHardGLATI, and NL3D::CVertexBufferHardGLMapObjectATI. |
|
Definition at line 96 of file vertex_buffer_hard.cpp.
00097 { 00098 _Name= name; 00099 } |
|
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
Implemented in NL3D::CVertexBufferHardGLNVidia, NL3D::CVertexBufferHardGLATI, and NL3D::CVertexBufferHardGLMapObjectATI. |
|
UnLock the VertexBuffer so the Gfx card can now use it. Implemented in NL3D::CVertexBufferHardGLNVidia, NL3D::CVertexBufferHardGLATI, and NL3D::CVertexBufferHardGLMapObjectATI. Referenced by NL3D::CMeshMRMGeom::applyGeomorph(), NL3D::CDriverGL::deleteVertexBufferHard(), NL3D::CDriverGL::resetVertexArrayRange(), NL3D::CMeshMorpher::update(), and NL3D::CMeshMorpher::updateSkinned(). |
|
Definition at line 67 of file smart_ptr.h. |
|
Definition at line 111 of file driver_opengl_vertex_buffer_hard.h. |
|
Definition at line 134 of file vertex_buffer_hard.h. |
|
Definition at line 137 of file vertex_buffer_hard.h. |
|
Definition at line 146 of file vertex_buffer_hard.h. |
|
Definition at line 140 of file vertex_buffer_hard.h. |
|
Definition at line 143 of file vertex_buffer_hard.h. |
|
Definition at line 128 of file vertex_buffer_hard.h. |
|
Definition at line 127 of file vertex_buffer_hard.h. |
|
Definition at line 153 of file vertex_buffer_hard.h. |
|
Definition at line 131 of file vertex_buffer_hard.h. |
|
Definition at line 79 of file smart_ptr.h. Referenced by NLMISC::CRefCount::CRefCount(), NLMISC::CRefCount::getRefCount(), and NLMISC::CRefCount::~CRefCount(). |
|
|
Referenced by NLMISC::CRefCount::CRefCount(). |
|
Definition at line 80 of file smart_ptr.h. Referenced by NLMISC::CRefCount::CRefCount(), and NLMISC::CRefCount::~CRefCount(). |
|
Definition at line 97 of file driver_opengl_vertex_buffer_hard.h. Referenced by NL3D::CDriverGL::fenceOnCurVBHardIfNeeded(), IVertexBufferHardGL(), and NL3D::CVertexBufferInfo::setupVertexBufferHard(). |