Direct2D Geometry Realization SampleThis sample shows how to use opacity masks and A8 targets to enhance performance for anti-aliased geometries. It also shows how to use meshes to enhance performance for aliased geometries.
FilesGeometryRealization.asm: Implements the IGeometryRealization interface.
GeometryRealization.inc: Defines the IGeometryRealization interface and related types.
GeometryRealizationSample.asm: Implements the DemoApp class, which creates a window and demonstrates the IGeometryRealization interface.
GeometryRealizationSample.inc: Defines the the DemoApp class.
RingBuffer.inc: The header file for the RingBuffer class. RingBuffer works like a standard array, except that when it fills up, data at the beginning is overwritten.
stdafx.inc: Defines standard system include files, or project specific include files that are used frequently, but are changed infrequently.
Building the SampleGenerate PE binary file:
asmc64 -pe -Cs -ws -gui GeometryRealizationSample.asmUsing LINKW:
asmc64 -q -ws -Cs GeometryRealization.asm asmc64 -q -ws -Cs GeometryRealizationSample.asm linkw system gui_64W file GeometryRealizationSample, GeometryRealizationRunning the SampleThis sample uses the following controls:
Up Arrow: Increases the number of primitives rendered
Down Arrow: Decreases the number of primitives rendered
Spacebar: Pauses/resumes the animation.
Mouse Wheel: Zooms in and out.
'T' key: Toggles between hardware and software rendering.
'R' key: Toggles between rendering geometry with and without realizations.
'A' key: Toggles between rendering modes.
'S' key: Toggles Draw Stroke (outlines).