-
Notifications
You must be signed in to change notification settings - Fork 262
ATF Using Direct2D Sample
Gary edited this page Mar 17, 2015
·
3 revisions
UsingDirect2D is a sample application that demonstrates how to use Direct2D and ATF classes that support Direct2D. It draws a sequence of graphics objects in a window. It does not use MEF.
- Use ATF Direct2D classes, such as D2dHwndGraphics, D2dTextFormat and D2dBitmapBrush.
- Demonstrate ATF vector math classes, such as Matrix3x2F.
- Double-click the UsingDirect2D.exe in \bin\wws_atf\Release.
- A dialog appears showing the first in a sequence of graphics drawings.
UsingDirect2D draws a sequence of graphics in a window to demonstrate various Direct2D capabilities. Each drawing shows a particular type of graphics object. For instance, the first drawing in the sequence contains 500 rectangles with a gradient. The window title indicates what type of graphics objects were drawn. Press the down or up cursor keys to go to the next or previous in the sequence. Press the "t" key to run a performance test for each drawing.
Modules perform these functions:
- Program.cs: Contains the Main program.
- Form1.cs: Draws a sequence of drawings using Direct2D and ATF helper classes.
- GdiCanvas.cs: Draws various graphics using GDI. This is currently unused.
- CircuitEditor: Editor for circuits, consisting of modules with input and output pins and connections between them.
- CodeEditor: Code editor that uses the ActiproSoftare SyntaxEditor to provide an editing Control.
- DiagramEditor: Combines the Circuit, Finite State Machine, and State Chart editors into a single application to show how multiple editors can share an application shell and editor components.
- DOMPropertyEditor: Demonstrates property editing, with a large variety of property editing controls and property descriptors.
- FileExplorer: Shows how to build a simple Windows® Explorer-like application to view the contents of a disk.
- FSMEditor: Finite state machine editor.
- ModelViewer: Shows how to use the ATF's ATGI and Collada file loaders and OpenGL® rendering.
- SimpleDOMEditor: Demonstrates the use of the DOM (Document Object Model) in WinForms, including defining a data model.
- SimpleDOMEditorWPF: Similar to ATF SimpleDOMEditor Sample, but implemented using ATF’s WPF framework.
- SimpleDOMNoXMLEditor: Very similar to the SimpleDOMEditor sample, but does not use XML.
- StateChartEditor: Editor for statecharts.
- TargetManager: Shows how to use the TargetEnumerationService to discover, add, configure and select targets, which are network endpoints, such as TCP/IP addresses, PS3™ DevKits or PlayStation®Vita DevKits.
- TimelineEditor: Relatively full-featured timeline editor whose components have been used in real production tools.
- TreeListControl: Demonstrates the usage of TreeListControl/TreeListItemRenderer classes to display and edit hierarchical data in a tree view with details in columns.
- TreeListEditor: Shows how to create and add entries to various kinds of Tree lists, including a hierarchical list to display selected folders' underlying folders and files.
- UsingDirect2D: Demonstrates how to use Direct2D and ATF classes that support Direct2D.
- UsingDom: Simple demo of basic DOM use.
- Home
- Getting Started
- Features & Benefits
- Requirements & Dependencies
- Gallery
- Technology & Samples
- Adoption
- News
- Release Notes
- ATF Community
- Searching Documentation
- Using Documentation
- Videos
- Tutorials
- How To
- Programmer's Guide
- Reference
- Code Samples
- Documentation Files
© 2014-2015, Sony Computer Entertainment America LLC