mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-20 16:08:44 +00:00
Backed out changeset: f665fcc42968 (except dru.cpp)
This commit is contained in:
parent
00528e1cd6
commit
8967f57fdf
11 changed files with 0 additions and 15 deletions
|
@ -103,7 +103,6 @@ void CDeform2d::doDeform(const TPoint2DVect &surf, IDriver *drv, IPerturbUV *uvp
|
|||
static CVertexBuffer vb;
|
||||
vb.setName("CDeform2d");
|
||||
vb.setVertexFormat(CVertexBuffer::PositionFlag | CVertexBuffer::TexCoord0Flag);
|
||||
vb.setPreferredMemory(CVertexBuffer::RAMVolatile, false);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -59,7 +59,6 @@ void CMotionBlur::performMotionBlur(IDriver *driver, float motionBlurAmount)
|
|||
static CVertexBuffer vb ;
|
||||
vb.setVertexFormat(CVertexBuffer::PositionFlag | CVertexBuffer::TexCoord0Flag ) ;
|
||||
vb.setNumVertices(4) ;
|
||||
vb.setPreferredMemory(CVertexBuffer::RAMVolatile, false);
|
||||
|
||||
uint32 width, height ;
|
||||
driver->getWindowSize(width, height) ;
|
||||
|
|
|
@ -519,7 +519,6 @@ void CPSFanLight::getVBnIB(CVertexBuffer *&retVb, CIndexBuffer *&retIb)
|
|||
vb.setName("CPSFanLight");
|
||||
ib.setFormat(NL_DEFAULT_INDEX_BUFFER_FORMAT);
|
||||
ib.setNumIndexes(size * _NbFans * 3);
|
||||
ib.setPreferredMemory(CIndexBuffer::AGPVolatile, false);
|
||||
// pointer on the current index to fill
|
||||
CIndexBufferReadWrite iba;
|
||||
ib.lock (iba);
|
||||
|
|
|
@ -421,7 +421,6 @@ void CPSGravity::show()
|
|||
|
||||
vb.setVertexFormat(CVertexBuffer::PositionFlag);
|
||||
vb.setNumVertices(6);
|
||||
vb.setPreferredMemory(CVertexBuffer::RAMVolatile, false);
|
||||
{
|
||||
CVertexBufferReadWrite vba;
|
||||
vb.lock (vba);
|
||||
|
@ -434,7 +433,6 @@ void CPSGravity::show()
|
|||
}
|
||||
pb.setFormat(NL_DEFAULT_INDEX_BUFFER_FORMAT);
|
||||
pb.setNumIndexes(2*4);
|
||||
pb.setPreferredMemory(CIndexBuffer::RAMVolatile, false);
|
||||
{
|
||||
CIndexBufferReadWrite ibaWrite;
|
||||
pb.lock (ibaWrite);
|
||||
|
|
|
@ -971,7 +971,6 @@ CPSRibbon::CVBnPB &CPSRibbon::getVBnPB()
|
|||
);
|
||||
vb.setNumVertices((_UsedNbSegs + 1) * numRibbonInVB * numVerticesInSlice); // 1 seg = 1 line + terminal vertices
|
||||
pb.setFormat(NL_DEFAULT_INDEX_BUFFER_FORMAT);
|
||||
pb.setPreferredMemory(CIndexBuffer::AGPVolatile, false);
|
||||
// set the primitive block size
|
||||
if (_BraceMode)
|
||||
{
|
||||
|
|
|
@ -582,7 +582,6 @@ CPSRibbonLookAt::CVBnPB &CPSRibbonLookAt::getVBnPB()
|
|||
CIndexBuffer &pb = VBnPB.PB;
|
||||
pb.setFormat(NL_DEFAULT_INDEX_BUFFER_FORMAT);
|
||||
pb.setNumIndexes((_UsedNbSegs << 1) * numRibbonInVB * 3);
|
||||
pb.setPreferredMemory(CIndexBuffer::AGPVolatile, false);
|
||||
CIndexBufferReadWrite iba;
|
||||
pb.lock (iba);
|
||||
/// Setup the pb and vb parts. Not very fast but executed only once
|
||||
|
|
|
@ -530,7 +530,6 @@ void CPSShockWave::getVBnPB(CVertexBuffer *&retVb, CIndexBuffer *&retPb)
|
|||
vb.lock (vba);
|
||||
pb.setFormat(NL_DEFAULT_INDEX_BUFFER_FORMAT);
|
||||
pb.setNumIndexes(2 * 3 * size * _NbSeg);
|
||||
pb.setPreferredMemory(CIndexBuffer::AGPVolatile, false);
|
||||
CIndexBufferReadWrite ibaWrite;
|
||||
pb.lock (ibaWrite);
|
||||
uint finalIndex = 0;
|
||||
|
|
|
@ -422,7 +422,6 @@ CPSTailDot::CVBnPB &CPSTailDot::getVBnPB()
|
|||
CIndexBuffer &pb = VBnPB.PB;
|
||||
pb.setFormat(NL_DEFAULT_INDEX_BUFFER_FORMAT);
|
||||
pb.setNumIndexes(2 * _UsedNbSegs * numRibbonInVB);
|
||||
pb.setPreferredMemory(CIndexBuffer::AGPVolatile, false);
|
||||
/// Setup the pb and vb parts. Not very fast but executed only once
|
||||
uint vbIndex = 0;
|
||||
uint pbIndex = 0;
|
||||
|
|
|
@ -117,7 +117,6 @@ void CPSUtil::displayBBox(NL3D::IDriver *driver, const NLMISC::CAABBox &box, NLM
|
|||
CVertexBuffer vb;
|
||||
vb.setVertexFormat(CVertexBuffer::PositionFlag);
|
||||
vb.setNumVertices(8);
|
||||
vb.setPreferredMemory(CVertexBuffer::AGPVolatile, false);
|
||||
|
||||
{
|
||||
CVertexBufferReadWrite vba;
|
||||
|
@ -146,7 +145,6 @@ void CPSUtil::displayBBox(NL3D::IDriver *driver, const NLMISC::CAABBox &box, NLM
|
|||
CIndexBuffer pb;
|
||||
pb.setFormat(NL_DEFAULT_INDEX_BUFFER_FORMAT);
|
||||
pb.setNumIndexes(2*12);
|
||||
pb.setPreferredMemory(CIndexBuffer::RAMVolatile, false);
|
||||
{
|
||||
CIndexBufferReadWrite ibaWrite;
|
||||
pb.lock (ibaWrite);
|
||||
|
@ -208,7 +206,6 @@ void CPSUtil::displayArrow(IDriver *driver, const CVector &start, const CVector
|
|||
CVertexBuffer vb;
|
||||
vb.setVertexFormat(CVertexBuffer::PositionFlag);
|
||||
vb.setNumVertices(5);
|
||||
vb.setPreferredMemory(CVertexBuffer::AGPVolatile, false);
|
||||
|
||||
|
||||
{
|
||||
|
|
|
@ -1307,7 +1307,6 @@ void CInstanceGroup::displayDebugClusters(IDriver *drv, class CTextContext *tx
|
|||
const uint maxVertices= 10000;
|
||||
vb.setVertexFormat(CVertexBuffer::PositionFlag);
|
||||
vb.setNumVertices(maxVertices);
|
||||
vb.setPreferredMemory(CVertexBuffer::RAMVolatile, false);
|
||||
CIndexBuffer clusterTriangles;
|
||||
CIndexBuffer clusterLines;
|
||||
CIndexBuffer portalTriangles;
|
||||
|
|
|
@ -396,7 +396,6 @@ void CLandscapePolyDrawer::buildShadowVolume(uint poly)
|
|||
// because they are calculated in camera location.
|
||||
vb.setVertexFormat(CVertexBuffer::PositionFlag);
|
||||
vb.setNumVertices(2*verticesNb + 2);
|
||||
vb.setPreferredMemory(CVertexBuffer::RAMVolatile, false);
|
||||
{
|
||||
CVertexBufferReadWrite vba;
|
||||
vb.lock(vba);
|
||||
|
@ -412,7 +411,6 @@ void CLandscapePolyDrawer::buildShadowVolume(uint poly)
|
|||
int index = 0;
|
||||
ib.setFormat(NL_DEFAULT_INDEX_BUFFER_FORMAT);
|
||||
ib.setNumIndexes(12*verticesNb);
|
||||
ib.setPreferredMemory(CIndexBuffer::RAMVolatile, false);
|
||||
{
|
||||
CIndexBufferReadWrite iba;
|
||||
ib.lock (iba);
|
||||
|
|
Loading…
Reference in a new issue