 This is C++vpID); int GetXDim(ViewPortID vpID); …struct ViewPort { ViewPort(/**/): vpID_(CreateViewPt(/**/)) {/*RAII*/} ~ViewPort(){if (vpID_) FreeViewPt(vpID_);} opera6ons?struct ViewPort { ~~~~ ViewPort(ViewPort&& vp): vpID_(vp.vpID_) {vp.vpID_ = 0;} ~~~~ };struct ViewPort { ~~~~ ViewPort(ViewPort&& vp): vpID_(vp {vp.vpID_ = 0; /* Call OS to make a new ViewPort */} ~~~~ };struct ViewPort { ~~~~ ViewPort(ViewPort&& vp): vpID_(vp.vpID_) {vp.vpID_ = 0;}0 码力 | 67 页 | 8.25 MB | 6 月前3 This is C++vpID); int GetXDim(ViewPortID vpID); …struct ViewPort { ViewPort(/**/): vpID_(CreateViewPt(/**/)) {/*RAII*/} ~ViewPort(){if (vpID_) FreeViewPt(vpID_);} opera6ons?struct ViewPort { ~~~~ ViewPort(ViewPort&& vp): vpID_(vp.vpID_) {vp.vpID_ = 0;} ~~~~ };struct ViewPort { ~~~~ ViewPort(ViewPort&& vp): vpID_(vp {vp.vpID_ = 0; /* Call OS to make a new ViewPort */} ~~~~ };struct ViewPort { ~~~~ ViewPort(ViewPort&& vp): vpID_(vp.vpID_) {vp.vpID_ = 0;}0 码力 | 67 页 | 8.25 MB | 6 月前3
 Tracy: A Profiler You Don't Want to MissInstrument expensive destructors • or explicitly release smart objects at the end of a scope bool Viewport::load_scene(const char* filename) { ZoneScoped; // ... std::shared_ptr Tracy: A Profiler You Don't Want to MissInstrument expensive destructors • or explicitly release smart objects at the end of a scope bool Viewport::load_scene(const char* filename) { ZoneScoped; // ... std::shared_ptr- new_scene; Instrument expensive destructors • or explicitly release smart objects at the end of a scope bool Viewport::load_scene(const char* filename) { ZoneScoped; // ... std::shared_ptr - new_scene; 0 码力 | 85 页 | 6.51 MB | 6 月前3
 3D Graphics for Dummies0, 0, 0 }, { 0, 1, 0 }); Matrix fov = FieldOfView(45, rect.AspectRatio(), 1, 100); Matrix view = Viewport(rect, 0, 100); Screen screen = world * (pov * fov * view); screen.PerspectiveDivide(); return0 码力 | 79 页 | 4.61 MB | 6 月前3 3D Graphics for Dummies0, 0, 0 }, { 0, 1, 0 }); Matrix fov = FieldOfView(45, rect.AspectRatio(), 1, 100); Matrix view = Viewport(rect, 0, 100); Screen screen = world * (pov * fov * view); screen.PerspectiveDivide(); return0 码力 | 79 页 | 4.61 MB | 6 月前3
 Tracy: A Profiler You Don't Want to MissInstrument expensive destructors • or explicitly release smart objects at the end of a scope bool Viewport::load_scene(const char* filename) { ZoneScoped; // ... std::shared_ptr Tracy: A Profiler You Don't Want to MissInstrument expensive destructors • or explicitly release smart objects at the end of a scope bool Viewport::load_scene(const char* filename) { ZoneScoped; // ... std::shared_ptr- new_scene; 0 码力 | 84 页 | 8.70 MB | 6 月前3
 《深入浅出MFC》2/e设定Document 长度。调用CView::DoPreparePrinting 以显示 【Print】对话框并产生打印机DC。 设定以DC 为准的Document 长度;配置GDI 资源 改变viewport 原点、剪截区、以及其它DC 属性。 列打印头、页尾等等 GDI 绘图动作 释放GDI 资源 图12-5 MFC 打印流程与我们的着力点 第 12 章 列印與預覽 683 以下是图12-5 rounding to nothing // Note: CScrollView::OnPaint() will have already adjusted the // viewport origin before calling OnDraw(), to reflect the // currently scrolled position. #0067 // Note: CScrollView::OnPaint() will have already adjusted the #0068 // viewport origin before calling OnDraw(), to reflect the #0069 // currently scrolled position. #00700 码力 | 1009 页 | 11.08 MB | 1 年前3 《深入浅出MFC》2/e设定Document 长度。调用CView::DoPreparePrinting 以显示 【Print】对话框并产生打印机DC。 设定以DC 为准的Document 长度;配置GDI 资源 改变viewport 原点、剪截区、以及其它DC 属性。 列打印头、页尾等等 GDI 绘图动作 释放GDI 资源 图12-5 MFC 打印流程与我们的着力点 第 12 章 列印與預覽 683 以下是图12-5 rounding to nothing // Note: CScrollView::OnPaint() will have already adjusted the // viewport origin before calling OnDraw(), to reflect the // currently scrolled position. #0067 // Note: CScrollView::OnPaint() will have already adjusted the #0068 // viewport origin before calling OnDraw(), to reflect the #0069 // currently scrolled position. #00700 码力 | 1009 页 | 11.08 MB | 1 年前3
共 5 条
- 1













