Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - opengl code
Search - opengl code - List
COde shows how to draw basic geometric figures using Opengl & C-COde shows how to draw basic geometric figures using Opengl & C++
Date : 2026-01-08 Size : 8kb User : nider

draw cube using OPENGL by code project C#
Date : 2026-01-08 Size : 29kb User : MeuMik

As you may understand with the name of project, there is two triangle and they are rotating. We have used the simple code for developing this project. Let start doing it. First we have defined a global variable for angle. The whole program is divided into three parts - Display, Timer and Main. We will code each of them one by one. First We will define the Display Function, where we are going to use simple primitive opengl function for drawing triangle GL_TRIANGLE. We use the global GAngle variable to rotate the drawn triangle. You can experiment with the angle and try how it turn out to be. You can also experiments with the vertices coordinate which draw triangles.
Date : 2026-01-08 Size : 1kb User : Manjunath
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.