Author Topic: Code Completion for OpenGL?  (Read 4433 times)

Offline rixarn

  • Single posting newcomer
  • *
  • Posts: 3
Code Completion for OpenGL?
« on: May 11, 2010, 02:33:01 am »
First of all, Hi :) I'm newb to this community and i have just installed c::b to start learning OpenGL.

I was amazed at how painless the OpenGL setup was with GLFW.

My only problem now is code completion... how can i make it work?

I've checked the 'parse preprocessor directives' from Editor>Code-Completition.. but still nothing..

Any advice?

Thanks!

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code Completion for OpenGL?
« Reply #1 on: May 11, 2010, 03:19:07 am »
please give more information: steps to reproduce, OS, version, CB version ......

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline rixarn

  • Single posting newcomer
  • *
  • Posts: 3
Re: Code Completion for OpenGL?
« Reply #2 on: May 11, 2010, 03:41:09 am »
Hi!

C::B version is 8.02,OS is Windows XP

Installed CodeBlocks at D:/Program Files/Code Blocks (i have 2 HD with separated XP installs) and Workspace in G:/Code Blocks Worskpace/GLFWapp

I used the template that comes with CB for my project and glfw-2.6 lib-mingw files

I've readed here at the forums that i can just include glew.h for the auto completion to work, but it shouldn't be the only way of doing it i think..

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Code Completion for OpenGL?
« Reply #3 on: May 11, 2010, 12:17:28 pm »
1. Use a nightly - CC there is better - quite a lot
2. Don't use whitespaces in your paths, some tools don't work well with such patchs
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline rixarn

  • Single posting newcomer
  • *
  • Posts: 3
Re: Code Completion for OpenGL?
« Reply #4 on: May 12, 2010, 04:20:28 am »
Thanks! Ill do that then... Download nightly and avoid whitespaces, hope that works :)