School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,096 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,040 people online right now. Registration is fast and FREE... Join Now!




opengl progrming

 

opengl progrming, how to use linked lists in opengl programs rather than array to store

Rating  4
raghav.ck@rediffmail.com

2 Nov, 2009 - 01:46 AM
Post #1

New D.I.C Head
*

Joined: 2 Nov, 2009
Posts: 1

QUOTE(Quantify @ 14 Apr, 2009 - 02:04 PM) *

Great job introducing the basics of setting up the window etc. The only thing I noticed that is wrong is that the first code snippet you have is missing 3 semi-colons at the beginning here:
CODE
void myInit (void)
{
     glClearColor(1.0,1.0,1.0,0.0); // sets background color to white
     glColor3f(0.0f,0.0f,0.0f); // setsthe drawing colour
     glPointSize(4.0); // sets a point to be 4x4 pixels
     glMatrixMode(GL_PROJECTION);
     glLoadIdentity();
     gluOrtho2D(0.0, 500.0, 0.0, 400.0); // the display area in world coordinates.
}


glClearColor, glColor3f(0.0f,0.0f,0.0f); and glPointSize(4.0) needed the semicolons.

Thanks a ton!



User is offlineProfile CardPM
+Quote Post


Core

RE: Opengl Progrming

2 Nov, 2009 - 03:14 AM
Post #2

The .NET Dude
Group Icon

Joined: 8 Dec, 2008
Posts: 3,039



Thanked: 217 times
Dream Kudos: 900
Expert In: C#, VB.NET, WPF, .NET Framework

My Contributions
So, what is your exact question?
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 11:56AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month