|
-
December 10th, 2008, 05:50 PM
#1
Drawing a cube
Okay so I'm reading a book about the win32 api and were on the chapter where we learn to add menus and shapes and the whole chapter ends with making a simple PaintProgram that can draw shapes, it has brushs, pens, and colors for those pens/brushes, and diffrent styles for those pens. Then theres exercises you do to extend upon that program. This is the exercise I'm stuck on:
"As you can see, a cube is made up of twelve lines. Write a function that
draws a cube to the client area of a window. Then add a new “cube” primitive to Program 15.5 that the
user can select from the menu and draw."
So my question to you is where do I even begin to learn how to write a function that can draw a cube. I tried seeing if it was a trick exercise and there is already a cube function in the library. But I don't see any cube functions on msdn.
Can anyone help?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|