nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nel] Fix for flare_model.cpp


From: David Castro
Subject: [Nel] Fix for flare_model.cpp
Date: Sun, 17 Oct 2004 00:04:37 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041004

Using gcc in Linux, nel/3d/flare_model.cpp has compilation errors (listed below). I have attached a patch that fixes the compilation error.

...
In file included from flare_model.cpp:35:
../../src/3d/occlusion_query.h:98:7: warning: no newline at end of file
flare_model.cpp: In member function `virtual void
  NL3D::CFlareModel::traverseRender()':
flare_model.cpp:499: error: no matching function for call to `vbWrite(uint8*&,
  NLMISC::CVector)'
flare_model.cpp:120: error: candidates are: void NL3D::vbWrite(uint8*&,
  NLMISC::CVector&)
flare_model.cpp:129: error: void NL3D::vbWrite(uint8*&, float,
  float)
flare_model.cpp:501: error: no matching function for call to `vbWrite(uint8*&,
  NLMISC::CVector)'
flare_model.cpp:120: error: candidates are: void NL3D::vbWrite(uint8*&,
  NLMISC::CVector&)
flare_model.cpp:129: error: void NL3D::vbWrite(uint8*&, float,
  float)
flare_model.cpp:503: error: no matching function for call to `vbWrite(uint8*&,
  NLMISC::CVector)'
flare_model.cpp:120: error: candidates are: void NL3D::vbWrite(uint8*&,
  NLMISC::CVector&)
flare_model.cpp:129: error: void NL3D::vbWrite(uint8*&, float,
  float)
...

Cheers,
David
--- src/3d/flare_model.cpp.orig 2004-10-16 15:26:12.574086104 -0700
+++ src/3d/flare_model.cpp      2004-10-16 15:25:50.160493488 -0700
@@ -108,6 +108,11 @@
        CScene::registerModel(FlareModelClassId, TransformShapeId, 
CFlareModel::creator);       
 }
 
+// write a vector in a vertex buffer
+static inline void vbWrite(uint8 *&dest, CVector v)
+{
+       vbWrite(dest, v);
+}
 
 // write a vector in a vertex buffer
 static inline void vbWrite(uint8 *&dest, CVector &v)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]