3 ms·
What happens if you add a second camera? The actor/CSP model makes each device a separate process, which can be hooked together with processing nodes works won
by wnoise 12y ago
What happens if you add a second camera?
The actor/CSP model makes each device a separate process, which can be hooked together with processing nodes works wonderfully.
- meepmorp 12y ago> What happens if you add a second camera? You call it TheSecondCamera, duh.
- sp332 12y agoTheCameraArray[1]
- ryanthejuggler 12y agoIf there's the potential for multiples then I'll have a CameraManager (TheCameraManager) that finds out what's connected to the system and provides enumeration and access. I'll generally try to make the cameras look like a singleton and hide the Camera class. Sort of like a factory, except you'll only ever get N instances of your Camera class for N cameras.