Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want the sample file about rubik cube 's rotation of plane

Status
Not open for further replies.

koeicjm

Programmer
Sep 12, 2001
73
0
0
JP
where can I find a open source code or an sample (c or c++ ,using opengl)
about rubik cube 's rotation of plane. any idea , thanks.
 
I'm not sure what you mean by rubik's cube rotation of a plane. To rotate a cube or a plane surface is easy in OpenGL, you have merely to set the rotation matrix and redraw the picture. Any book on OpenGL will show you how.

Try (Developer's section). There are zillions of example OpenGL programs which run on Unix, Linux and Windows. If you are running Linux and OpenGL under X-Windows, then your distribution should have come with lots of demo OpenGL programs. If you are really stuck in making a cube rotate, I'll write a little program for you, but do look at the examples first. Good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top