game.setOption

Sets a game-specific option.

Prototype

  1. bOk = game.setOption ( hGame, kOption, nValue )

Description

Sets options like shadow buffers size and network parameters, please check the constants section for more info.


Parameters

hGame - valid Game handle
kOption - predefined option constant like kOptionDynamicShadowsBufferCount etc.
nValue - option-dependent info value, either a string or a number


Return values

bOk - true on success


Sample

  1. if ( hGame ) then
  2. game.setOption ( hGame, game.kOptionSwapInterval, nValue )
  3. end

Available since ShiVa 2.0