Skip to main content
gamedev.net
🔒 Locked 🤖 Godot

GetTransform not compiling

Started by purpleprogrammer 0 replies 350+ views
Original Post
purpleprogrammer
purpleprogrammer
This was discussed on another thread, and no conclusion was found. There is a good chance that this is a Visual Studio bug. I'm getting this error: 'GetTransform' has a return type that is not supported or parameter types that are not supported. Here's my code: Dim OldTransform As Microsoft.DirectX.Matrix = iEngine.Device.GetTransform(TransformType.World) When typing this out, the quick-help pops up and says the return type is a Microsoft.DirectX.Matrix, however, as I'm typing the parameter, the TransformTypes don't pop up. I have several other calls to TransformTypes (such as with SetTransform), but GetTransform is the one with a problem. I also ran into another problem elsewhere that has mysteriously disappeared: Value of type 'Microsoft.DirectX.Direct3D.Device' cannot be converted to 'Microsoft.DirectX.Direct3D.Device'. Has Microsoft gone insane? You know, it's only $1225 for a 5-pack of support tickets...
purpleprogrammer
purpleprogrammer
Found a workaround!

Device.Transform.World is the functional equivalent to Device.GetTransform(TransformType.World)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.