GLUT question <please help!>

This is a discussion on GLUT question <please help!> within the Game Programming forums, part of the General Programming Boards category; was wondering.....when using GLUT, does the program have to be based around glut / do i have to call the ...

  1. #1
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070

    GLUT question <please help!>

    was wondering.....when using GLUT, does the program have to be based around glut / do i have to call the glutInit(); function, for me to be able to for example call the glutSolidSphere(); fuction, or could i call glutSolidSphere(); where ever I want, with out calling glutInit();???

    ahh...hope that made sence!!!

    -psychopath

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    why not write a program that calls glutSolidSphere() without calling glutInit() first and see what happens?

    Im pretty sure you nee to call glutInit() and glutMainLoop() (or whatever its called) in order to use the rest of the library functions.

  3. #3
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    hmm...no matter what i do, i get errors such as:

    c:\dev-c++\main.o(.text+0x17):main.cpp: undefined reference to `__glutInitWithExit@12'

    i beleive it's because I can't quite figure out where to put the .dll file (or how to use it for that matter :P)
    i looked at a tutorial, and it says to put it in C:\windows\command
    but that directory dosn't exist...and it still dosn't work when I create it!?
    can anyone help??

  4. #4
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    hmmm...i think i have it working now........as I put in glutSolidSphere();
    and got no undefined refrence errors...but I still don't see the sphere...so can i safely assume that I need glutInit(); and stuff to get glut functions to work???

  5. #5
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    omg!!!
    i have to learn to try before i post
    got everything working now
    thanx!

    -psychopath

  6. #6
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    Quote Originally Posted by psychopath
    omg!!!
    i have to learn to try before i post
    got everything working now
    thanx!

    -psychopath
    theres no better way to learn than tryin stuff out. good luck!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. glut question
    By Thantos in forum Game Programming
    Replies: 3
    Last Post: 12-27-2004, 11:52 AM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 06:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 01:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  5. Math Question, hard
    By Yoshi in forum A Brief History of Cprogramming.com
    Replies: 34
    Last Post: 12-08-2001, 11:58 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21