Results 1 to 3 of 3

Thread: poor newbie

  1. #1
    Guest

    poor newbie

    hi everybody!!!
    i have 2 problems so far
    1)how can i continiously rotate an object without needing to press a certain button on the keyboard like in the red book?i want it to rotate by itself

    2)i've managed to make a project under which i run my openGL programs but when i try to make a new open gl project i get the message " unresolved external symbol _WinMain@16".the projects are made exactly the same way...
    i use microsoft vc ++ 6.0
    thanks

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: poor newbie

    Hi !

    The simplest way is to replace the key handler with a timer, it all depends on what you are using (win32,glut...).

    Setup a timer that modifies some variables (just like the key handler) and call some function that repaints the window (glutPostReDisplay,InvalidateRect...).

    Mikael

  3. #3
    Member Contributor
    Join Date
    Jul 2003
    Location
    Rhode Island
    Posts
    55

    Re: poor newbie

    As for number 2.. make sure you are including opengl32.lib and if you use it glu32.lib and glut32.lib

    Edit: Make sure you include windows.h before the opengl header files also

    -zix

Similar Threads

  1. Poor First Run Performance
    By ViolentHamster in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 09-03-2013, 02:53 PM
  2. UBO poor performance [GL 3.1]
    By Executor in forum OpenGL: Advanced Coding
    Replies: 23
    Last Post: 10-27-2009, 10:48 PM
  3. Poor performance
    By capedica in forum OpenGL: GLSL
    Replies: 0
    Last Post: 03-31-2005, 12:05 AM
  4. poor performance
    By Penance in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 05-15-2002, 12:40 PM
  5. Poor FPS GeForce2 GTS
    By chasliss in forum OpenGL: User Software
    Replies: 0
    Last Post: 12-06-2001, 07:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean