• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
starting a new thread with clearer question about openGL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

starting a new thread with clearer question about openGL


  • Subject: starting a new thread with clearer question about openGL
  • From: Gargi <email@hidden>
  • Date: Wed, 4 Oct 2006 17:00:31 -0700


ok guys, let me get more clear. I have NO IDEA where to type somethng like:-

#include <whateverYouNeed.h>
main() {
   InitializeAWindowPlease();
   glClearColor ( 0.0, 0.0, 0.0, 0.0);
   glClear (GL_COLOR_BUFFER_BIT);
   glColor3f (1.0, 1.0, 1.0);
   glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
   glBegin(GL_POLYGON);
      glVertex3f (0.25, 0.25, 0.0);
      glVertex3f (0.75, 0.25, 0.0);
      glVertex3f (0.75, 0.75 , 0.0);
      glVertex3f (0.25, 0.75, 0.0);
   glEnd();
   glFlush();
   UpdateTheWindowAndCheckForEvents();
}


I could not figure out much from the "examples" (in developr/examples) if that is what you mean by sample code.
I also have no idea wht Cocoa is (and have been trying since to learn how to "edit project files" from http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeQuickTour/index.html with certain glitches!!!!)


Just answer the basic questions:-

1. where do i find real samples with absolute step by step guide teaching me how to run stuff (like where to run the code shown above)? More definite web links shall be appreciated

2. HOW does cocoa fit into all tis?

thanks for the quick response, guys!






On 10/4/06, David A Rowland < email@hidden> wrote:
At 4:36 PM -0700 10/4/06, Gargi wrote:
>Hi,
>I am new to OpenGL as well as Mac OS.
>I want to learn OpenGL and I have been reading about it.
>

I did some OpenGL last year, and I found this book very helpful:

OpenGL - A Primer, by Edward Angel.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: starting a new thread with clearer question about openGL
      • From: "Shawn Erickson" <email@hidden>
    • Re: starting a new thread with clearer question about openGL
      • From: Alexander von Below <email@hidden>
  • Prev by Date: Re: beginner's doubts to OpenGL
  • Next by Date: Re: starting a new thread with clearer question about openGL
  • Previous by thread: Re: beginner's doubts to OpenGL
  • Next by thread: Re: starting a new thread with clearer question about openGL
  • Index(es):
    • Date
    • Thread