RecordDraw
Calls Draw but instead of rendering to the canvas it records the results of the drawing. You can later output the record to the canvas by calling DrawRecord. Thus, if you need to render the primitive the same way many times in a row, it'll be faster to create a record once and draw the same record to the screen several times. Examples Shape *myShape = new Circle(...);
// Store the results of the Draw-function to a record // myShape->RecordDraw(); // Draw the record to the screen in black (outputs a black circle to the screen) // myShape->DrawRecord( Rgba::BLACK ); Other functions of the class Shape
Questions about RecordDraw? Click here. |