Help needed (opengl and cocoa)
Help needed (opengl and cocoa)
- Subject: Help needed (opengl and cocoa)
- From: kubernan <email@hidden>
- Date: Sat, 2 Feb 2002 15:22:38 +0100
Hello,
With my OpenGL 1.2 book and a code sample taken from the Net i tried to
write a coca app.
What i decided is to download the NSGL Teapot from the dev. sample code
Apple site and replace the
code inside drawRect() by the code i took on the Net.
And of course, it doesn't work. I have a black view. I really don't
understand why. The sample code is from here :
(
http://www.sulaco.co.za/opengl2.htm) ; this is a winamp visualization
plugin (named 3D Vu meters).
Written in Pascal is easy to port in a cocoa app...well not so easy for
me cause it doesn't work.
This plugin displays 3D bars moving in real time depending on the audio
wave.
Cause i have no audio source in my app, i decided to replace it with
arbitrary values. The fact is the display is always in black. drawRect()
is called but i don't know if 3D bars are really displayed.
Can anyboby could help me ?
Thx a lot.
Kub.