Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define PBLOCK_REF 0
- ////////
- // ClassDesc2 defined below
- ////////
- class CyclesCameraPanoramaClassDesc : public ClassDesc2
- {
- public:
- virtual int IsPublic() { return 1; }
- virtual const TCHAR* ClassName() { return _T("Cycles Pano Camera"); }
- virtual SClass_ID SuperClassID() { return CAMERA_CLASS_ID; }
- virtual Class_ID ClassID() { return CYCLES_CAMERA_PANORAMIC_CLASS; }
- virtual const TCHAR* Category() { return _T("Cycles"); }
- virtual const TCHAR* InternalName() { return _T("camera_cycles_panorama"); }
- virtual void* Create(BOOL loading = FALSE);
- };
- CyclesCameraPanoramaClassDesc* GetCyclesCameraPanoramaClassDesc()
- {
- static CyclesCameraPanoramaClassDesc panoramic_camera_desc;
- return &panoramic_camera_desc;
- }
- ////////
- // ParamBlockDesc2 defined below
- ////////
- // Pblock enum
- enum { cam_pano_pblock };
- // Pblock params
- enum { param_dummy };
- static ParamBlockDesc2 pano_cam_pblock_desc(
- // Pblock data
- cam_pano_pblock,
- _T("pblock"),
- 0,
- GetCyclesCameraPanoramaClassDesc(),
- P_AUTO_CONSTRUCT + P_AUTO_UI,
- PBLOCK_REF,
- // Interface stuff
- IDD_PANEL_CAM_PANO_PARAM,
- _T("test panel"),
- 0,
- 0,
- NULL,
- // Dummy float
- param_dummy,
- _T("dummy"),
- TYPE_FLOAT,
- P_ANIMATABLE,
- IDS_ROUGHNESS,
- p_default, 0.0f,
- p_range, 0.0f, 1.0f,
- p_end,
- p_end
- );
- ////////
- // Functions to make rollouts appear/disappear
- ////////
- void CyclesPanoramaCamera::BeginEditParams(IObjParam* ip, ULONG flags, Animatable* prev)
- {
- GetCyclesCameraPanoramaClassDesc()->BeginEditParams(ip, this, flags, prev);
- }
- void CyclesPanoramaCamera::EndEditParams(IObjParam* ip, ULONG flags, Animatable* next)
- {
- GetCyclesCameraPanoramaClassDesc()->EndEditParams(ip, this, flags, next);
- }
Advertisement
Add Comment
Please, Sign In to add comment