René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
Lines [Ming wrapper example] | ||
This example just draws a few lines.
This flash movie was created with the following program. Lines.cpp
#include "SWFMovie.h" int main() { Movie movie("Lines.swf", 256, 256); for (int i=0; i<=255; i+=8) { Shape line_h; line_h.LineStyle(4, 0, 0, i, 255); line_h.MoveTo( 0, i); line_h.LineTo(255, i); movie.Add(line_h); } movie.NextFrame(); return 0; } This is one of a series of examples that demonstrates the C++ ming wrapper classes. Other examples can be found here.
|