Regular API function

simGetVisionSensorResolution / sim.getVisionSensorResolution

Description Retrieves the resolution at which the given vision sensor operates (this might be different from what is indicated in the vision sensor dialog: should your graphic card model be rather old, then only resolutions a 2n will be supported). Useful in combination with sim.getVisionSensorImage/sim.getVisionSensorDepthBuffer
C synopsis simInt simGetVisionSensorResolution(simInt sensorHandle,simInt* resolution)
C parameters
sensorHandle: handle of the vision sensor
resolution: 2 values for the x and y component
C return value
-1 if operation was not successful
Lua synopsis table[2] resolution=sim.getVisionSensorResolution(int sensorHandle)
Lua parameters
sensorHandle: handle of the vision sensor
Lua return values
resolution: table containing the x and y resolution