IrrDelphi (Irrlicht183, irrKlang130b) Delphi\Pascal headers
I tried to test this, but it just won't work. All the precompiled examples crash and same happens in Delphi too.
I have Win7 x64 and Delphi 2010, I fixed the PChar<>PAnsiChar issues in the header, but I guess that's not enough...
The precompiled original 32bit SDK examples work just fine.
...
Tested it again with Delphi 2010, this time on WinXP x86 and after replacing all PChar with PAnsiChar in the header I can compile and run the examples. I just can't figure out why it won't work on Win7 x64...
I have Win7 x64 and Delphi 2010, I fixed the PChar<>PAnsiChar issues in the header, but I guess that's not enough...
The precompiled original 32bit SDK examples work just fine.
...
Tested it again with Delphi 2010, this time on WinXP x86 and after replacing all PChar with PAnsiChar in the header I can compile and run the examples. I just can't figure out why it won't work on Win7 x64...
great work on the header files
noticed a small issue though. when using the classes from multiple functions, crashes would occur. this seems to be related to the thiscall function. i used the backup 'thiscall' function you still had there which is working fine.
hope you haven't given up on continuing with irrdelphi
noticed a small issue though. when using the classes from multiple functions, crashes would occur. this seems to be related to the thiscall function. i used the backup 'thiscall' function you still had there which is working fine.
hope you haven't given up on continuing with irrdelphi
Hello,
first, thank you very much for your effort, its running very well.
But i ran into one problem here
IMeshBuffer.GetVertices returns a PPointer, thats a Pointer to an Array of S3DVertex2TCoords
Does anybody here have a short sample of how to use that in Delphi? I mean how to access a specific entry of the returned array.
I have always avoided pointer-programming and now i am lost at this point.
Thank you very much in advance
first, thank you very much for your effort, its running very well.
But i ran into one problem here
IMeshBuffer.GetVertices returns a PPointer, thats a Pointer to an Array of S3DVertex2TCoords
Does anybody here have a short sample of how to use that in Delphi? I mean how to access a specific entry of the returned array.
I have always avoided pointer-programming and now i am lost at this point.
Thank you very much in advance
Like this:
Code: Select all
....
var
mb: IMeshBuffer; // assigned meshbuffer
mb_arr: Pointer;
v: vector3df;
....
mb_arr := mb.getVertices;
case mb.getVertexType of
EVT_STANDARD:
v := PArrS3DVertex(mb_arr)[ index ].Pos;
EVT_2TCOORDS:
v := PArrS3DVertex2TCoords(mb_arr)[ index ].Vertex.Pos;
end;
EVT_TANGENTS:
v := PArrS3DVertexTangents(mb_arr)[ index ].Vertex.Pos;
end;
....
Good JOB, from a Hong Kong User
Nice to see the first Gaming Engineer I felt at lease satisfied with the demo so far. Is that possible add my email william_tseng@yahoo.com, and keep me posted, and I will be willing to be part of the member.
For recent release of 4.0,
I tried to complies under Delphi 7 Enterprise, but there has some code error there, so the header cannot install into packages.
If someone figure this out would be appreciated.
Complier Stops here:
... procedure getAs4Values(out vArray: dVector);
// operators
{$IFNDEF FPC}
class operator Positive(a: vector3df): vector3df;
class operator Negative(a: vector3df): vector3df;....
----------saids procedure/function expected.
For recent release of 4.0,
I tried to complies under Delphi 7 Enterprise, but there has some code error there, so the header cannot install into packages.
If someone figure this out would be appreciated.
Complier Stops here:
... procedure getAs4Values(out vArray: dVector);
// operators
{$IFNDEF FPC}
class operator Positive(a: vector3df): vector3df;
class operator Negative(a: vector3df): vector3df;....
----------saids procedure/function expected.
Re: Good JOB, from a Hong Kong User
Thanks . But i some do not understood about mail.. Minimal required version is Delphi 2005 (Turbo Delphi recommended). Delphi 7 not support "class operator" and etc.william wrote:Nice to see the first Gaming Engineer I felt at lease satisfied with the demo so far. Is that possible add my email william_tseng@yahoo.com, and keep me posted, and I will be willing to be part of the member.
For recent release of 4.0,
I tried to complies under Delphi 7 Enterprise, but there has some code error there, so the header cannot install into packages.
If someone figure this out would be appreciated.
Complier Stops here:
... procedure getAs4Values(out vArray: dVector);
// operators
{$IFNDEF FPC}
class operator Positive(a: vector3df): vector3df;
class operator Negative(a: vector3df): vector3df;....
----------saids procedure/function expected.
Thank IrrDelphi
gree bitplane
hope quick
thank IrrDelphi!
hope quick
thank IrrDelphi!
Good Job!! Thanks to IrrDelphi.
But there still bugs in this port !
such as : not suport software rending when added cammera、cannot remove a custom SceneNode & Animator ( didn't implemented)、and also memory leak in Custom SceneNode.
holping for next update!!
About Memory Leak In Custom SceneNode:
May be you forgot to release memory while destroy the custom sceneNode:
But there still bugs in this port !
such as : not suport software rending when added cammera、cannot remove a custom SceneNode & Animator ( didn't implemented)、and also memory leak in Custom SceneNode.
holping for next update!!
About Memory Leak In Custom SceneNode:
May be you forgot to release memory while destroy the custom sceneNode:
Code: Select all
FreeAndNil(VParent.FVParent.FIReferenceCounted);
System.Dispose(VParent.FVParent);
System.Dispose(VParent);