ManualObject

rosenkro

12-11-2006 13:05:15

Hi,

I create a manualObject with


Dim mObj As New ManualObject("terrainPatch")
mObj.Begin("Examples/GrassFloor")

mObj.Position(...)
mObj.Normal(...)
mObj.TextureCord(...)

mObj.Index(...)
mObj.Index(...)
mObj.Index(...)

mObj.End()


Everything works fine. But if I try to use the ManualObject with a different renderOperation like this


Dim mObj As New ManualObject("terrainPatch")
mObj.Begin("Examples/GrassFloor", RenderOperation.OperationType.OT_TRIANGLE_STRIP)


I'll get a error, that is saying

"operationType" is not unique. "Mogre.RenderOperation" has more than one Type of Members with this name. (It's not the exact error message, it's just a translation because the error message is in german)

Roland

Bekas

12-11-2006 16:17:29

There's a 'operationType' property as instance member of RenderOperation. I'll rename OperationType enum to OperationTypes to avoid the name clash.

Shouldn't VB.NET be able to tell the difference between instance members and static members ? :?