This function can be used to enable or disable 3D mode for the MapView.



bool fsMapViewSet3D(
    FsContext ctx,
    FsTextureId id,
    bool bEnable



Parameters Description
ctx A value of type FsContext provided as an argument of the gauge callback.
id The MapView render ID as returned by the function fsMapViewCreate.
bEnable Set to true to enable 3D mode, or false to disable it.



Return Values

Returns false if:

  • no texture matches the given MapView ID
  • the ctx is invalid

Otherwise it will return true.




The image below shows the difference between the 2D and 3D views:

Examples Of The Different Map Views


See Also