|
-
Feb 6th, 2007, 09:22 PM
#1
Thread Starter
Fanatic Member
OpenGL glLightfv parameters
Having a few problems with OpenGL's glLightfv function,
I sent:
Code:
glLightfv(GL_LIGHT1, GL_AMBIENT, LightAmbient)
with LightAmbient being an array of float containing { 0.5, 0.5, 0.5, 1.0 }
(edit: these values correspond to x,y,z, alpha)
and I receive error message:
"Error 1 Overloaded method 'CsGL.OpenGL.OpenGL.glLightfv(uint, uint, float*)' has invalid arguments"
using csgl.dll from Lloyd Dupont <[email protected]>, 2001
ver 1.4.1.0
All samples over the internet make the use of the array fine... so I'm having a hard time find the problem on my arguments...
thanks for helping... 
(edit: sry if not appropriate for this topic, please move to Games and Graphics Programming)
Last edited by Ruku; Feb 7th, 2007 at 10:03 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|