DXA.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- #import "danim.dll"
- exclude( "_RemotableHandle", "IMoniker", "IPersist", "ISequentialStream",
- "IParseDisplayName", "IOleClientSite", "_FILETIME", "tagSTATSTG" )
- rename( "GUID", "DAGUID" )
- rename_namespace( "DAnim" )
- #include <stdio.h>
- #include <systimeb.h>
- #include <tchar.h>
- #define WINDOW_WIDTH 300
- #define WINDOW_HEIGHT 300
- using namespace DAnim;
- // Create the DirectAnimation class that will render to the primary DirectDraw
- // surface.
- class DXA {
- public:
- BOOL initDXAViewObj(IUnknown *ddsurf);
- BOOL resetDXASurfaces(IUnknown *ddsurf);
- void tick();
- protected:
- static IDAViewPtr _view;
- IDAEventPtr PICKEVENT; // Hack for now until picking works.
- IDANumberPtr SPEED;
- IDATransform3Ptr SIZE;
- double PI;
- IDAImagePtr geometryImage(IDAGeometryPtr geo, IDAStaticsPtr e);
- IDAGeometryPtr activate(IDAGeometryPtr unpickedGeo, IDAColorPtr col, IDAStaticsPtr e);
- };