org.jocl.cloth.utils
Class CLClothConfig

java.lang.Object
  extended by org.jocl.cloth.utils.CLClothConfig

public class CLClothConfig
extends java.lang.Object

Summarizes the configuration parameters for the cloth simulation.


Constructor Summary
CLClothConfig()
          Creates a new, default CLClothConfig, with platform 0, all devices on that platform, and buffer sharing enabled.
CLClothConfig(org.jocl.cl_platform_id platform, java.util.List<org.jocl.cl_device_id> devices, boolean useSharedBuffers)
          Creates a new CLClothConfig with the given parameters
 
Method Summary
 java.util.List<org.jocl.cl_device_id> getDevices()
          Returns an unmodifiable list of the devices
 org.jocl.cl_platform_id getPlatform()
          Returns the platform
 boolean useSharedBuffers()
          Returns whether GL buffer sharing should be enabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLClothConfig

public CLClothConfig()
Creates a new, default CLClothConfig, with platform 0, all devices on that platform, and buffer sharing enabled.


CLClothConfig

public CLClothConfig(org.jocl.cl_platform_id platform,
                     java.util.List<org.jocl.cl_device_id> devices,
                     boolean useSharedBuffers)
Creates a new CLClothConfig with the given parameters

Parameters:
platform - The platform
devices - The list of devices
useSharedBuffers - Whether buffer sharing should be enabled
Method Detail

getPlatform

public org.jocl.cl_platform_id getPlatform()
Returns the platform

Returns:
The platform

getDevices

public java.util.List<org.jocl.cl_device_id> getDevices()
Returns an unmodifiable list of the devices

Returns:
The devices

useSharedBuffers

public boolean useSharedBuffers()
Returns whether GL buffer sharing should be enabled

Returns:
Whether GL buffer sharing should be enabled