471,330 Members | 1,080 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

How much logic to put into OnPaint?

I have started writing a small DirectX application to render 3D shapes
(mostly boxes).

I am planning on putting OnPaint into a separate thread with a timer, and
just using single buffering (one screen).

How much of the geometry should I put into the shared object(s)? For
example, if I construct a box, should I store it as series of triangles in
the main thread and pass these to OnPaint, or should I just pass the box
corner co-ordinates and let OnPaint break it into triangles?
Jun 27 '08 #1
0 881

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Sagaert Johan | last post: by
4 posts views Thread by dominique | last post: by
reply views Thread by SirThanxALot | last post: by
1 post views Thread by Kenneth Siewers Møller | last post: by
14 posts views Thread by raylopez99 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.