Import "openb3d/src/entity.h"
Import "openb3d/src/camera.h"
Extern
Class Entity = "Entity"
Method PositionEntity:Void(x:Float,y:Float,z:Float,glob:Int=False)
Method MoveEntity:Void(mx:Float,my:Float,mz:Float)
Method TranslateEntity:Void(tx:Float,ty:Float,tz:Float,glob:Int=False)
Method ScaleEntity:Void(x:Float,y:Float,z:Float,glob:Int=False)
Method RotateEntity:Void(x:Float,y:Float,z:Float,glob:Int=False)
Method TurnEntity:Void(x:Float,y:Float,z:Float,glob:Int=False)
Method PointEntity:Void(target_ent:Entity, roll:Float=0.0)
End
Extern
Class Camera Extends Entity = "Camera"
Function CreateCamera:Camera(parent:Entity = Null)
End
gives error: error: ISO C++ forbids declaration of 'Camera' with no type
Any ideas? Should I make a work-around?
The problem is that it's a function, but even:
Public
Function CreateCamera:Camera(parent:Entity = Null)
Local c:Camera = New Camera
c.CreateCamera(parent)
Return c
End
causes the same error...
|